Comparisons and migrationIn-depth scenario content6 min readmatrix

Knowledge Retrieval and Business APIs in FastGPT

Choose knowledge retrieval or a business API in FastGPT by the information needed, keeping document versions, query times and response fields.

Identify the kind of fact being requested

A question about using a feature usually needs product documentation. A question about whether a customer has activated it needs a current business record. Both can appear in one conversation, but their sources are maintained differently. FastGPT knowledge search returns document references, while HTTP requests can call existing business APIs. Separate documented explanation from current state before choosing a source.

Compare update patterns and business objects

Manuals change with products or policies, while records change with transactions or service state. Retrieval suits documented explanations and conditions; APIs suit current fields defined by the business system. When combining them, align both results with the same question and object. The table organizes this division without removing the need to check API authorization, document applicability or processing state.

QuestionPrimary sourceEvidence to inspect
Explain a feature or policyApplicable document retrievalVersion, conditions and reference
Current customer or order stateAuthorized business APIObject, fields and query time
Does this customer meet a condition?Documents combined with API resultsAlignment of stated conditions and current fields

Keep document versions and references

Knowledge search can combine knowledge bases sharing an embedding model and returns references as an array. Keep versions, applicable conditions and source access so the answer can be traced to a passage. An empty array means this search returned no usable material. Clarify the request or check the source next. Use the business API result to determine whether a customer record exists.

Keep the object and time with API results

Before reading records through an HTTP request, define the object identifier, caller identity, query conditions and fields. Structured response values can be used directly, with explanatory text organized around them. Null values, no matching record and request failure have different meanings under the API contract. Retain query time to explain why a later lookup may show a changed state.

Preserve both evidence types in a combined answer

If documentation requires a configuration that the customer record does not contain, preserve the difference and identify what needs confirmation. Inspect the document passage and API response side by side, checking product conditions and customer state separately. Send unresolved differences to the business owner with the original passage and fields. Support or sales staff then have evidence to inspect and can locate the document or record needing maintenance.