What this category's data looks like
Typical entities involved in garment cutting and sewing processes include garment OEM/ODM factories, brand supply chain teams, and professional cutting and sewing workshops. Daily generated documents cover process sheets, CAD patterns, layout plans, cutting orders, first sample sealing records, process quality tables, and packaging size matching lists. Data mainly comes from order and size charts, CAD design files, surface and auxiliary material inspection reports, hanging production system data, needle detector records, and customer sealed samples. Document update frequency is typically once per order, per style, or per batch. Given the large number of styles, strong seasonality, irreversible fabric cut pieces, and labor-intensive manual processes, the fields and detail requirements for single-style documents must be precise.
What constraints do these characteristics impose on knowledge base retrieval and recall
The mixed document types, frequent updates, and binding to single orders or styles create multiple constraints for knowledge base retrieval and recall. First, multi-type documents include both text process requirements and visual patterns and layout plans. This requires retrieval to support recall of both text and image content. Second, the practice of updating per order or style means retrieval scope must be strictly limited to the dataset for the target style, to avoid interference from cross-style documents. Third, process terms are highly specialized and process steps are finely split. This requires retrieval to have precise semantic matching and keyword recall capabilities, while also controlling the number of recall results to fit the model context window.
How to set the configuration
This configuration is formulated for FastGPT v4.17.0.
| Configuration Item | Recommended Value | Rationale |
|---|---|---|
similarity | 0.78–0.82 | Garment process terms are highly specialized. Low-match irrelevant documents must be filtered. Adjust the threshold based on on-site testing. |
limit | Top 6 entries | The total number of process documents for a single garment style is limited. Excessive results will occupy the model's context token count and reduce understanding accuracy. |
searchMode | mixedRecall | Balances semantic matching and precise keyword matching to meet the retrieval needs of multi-type documents such as process sheets and layout plans. |
usingReRank | Enabled | Performs secondary ranking on initial recall results to correct deviations in semantic matching, suitable for sorting process documents with multiple steps. |
datasetSearchUsingExtensionQuery | Enabled | Automatically expands question keywords. For example, expands "cutting" to "fabric cutting, piece layout" to cover synonymous expressions of process terms. |
collectionIds | Bound by style/order | Limits the retrieval scope to only the process documents of the current order or style, avoiding interference from irrelevant cross-style content. |
Three common configuration errors
- Knowledge base search configuration reverts to default values after saving. This occurs when the
collectionIdsparameter is not correctly bound, or when complete dataset identifiers are not included when submitting the configuration, causing the system to fail to retain custom configurations. - Only text content is recalled, not images. This occurs when multi-modal document parsing configuration is not enabled, or when OCR recognition is not turned on during upload of PDFs or pattern images, resulting in image content not being added to the retrieval library.
- The number of retrieval results does not match expectations. This occurs when the
similaritythreshold is set too high, filtering out some valid matching results, or when thelimitparameter is set incorrectly, resulting in too many or too few recalled results.
How to verify correct configuration
- Upload documents such as process sheets and layout plans for a single garment style, bind the specified
collectionIds, and initiate a test query of "What are the cutting process requirements for this style". Check whether returned results only include bound documents for this style. - View the retrieval result preview interface, confirm that both text content and images (such as CAD patterns, layout plans) are recalled normally, to verify that multi-modal retrieval configuration is active.
- Adjust the
similarityparameter to 0.75 or 0.85, initiate the same test query, and check whether the number of retrieval results changes with the threshold. Confirm that the configuration can be saved and takes effect normally. - Initiate a query containing process terms, such as "First sample sealing inspection standards", and check whether returned results cover matching documents with relevant expanded keywords, to verify that the
datasetSearchUsingExtensionQueryfunction is active.
The values provided here are common starting points and should be evaluated against the reader's own samples.