Database search configuration
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| Enabled | Boolean | No | Whether to enable |
Document search configuration
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| Confidence | Float | No | Confidence threshold |
| Enabled | Boolean | No | Whether to enable |
| TopN | Integer | No | Return the top N entries |
Timeliness retrieval enhancement configuration
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| Enabled | Boolean | No | Whether to enable timeliness retrieval. Once enabled, retrieval results will be sorted based on the validity time of the knowledge |
Final rerank configuration
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| ModelName | String | No | Model name |
GraphRAG configuration
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| Enabled | Boolean | No | Whether to enable |
Search configuration of each knowledge base
Used by actions: SearchKnowledge.
| Name | Type | Required | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DbRetrievalConfig | DBRetrievalConfig | No | Database search configuration |
||||||||||||||||||
| DocRetrievalConfig | DocRetrievalConfig | No | Document retrieval configuration. |
||||||||||||||||||
| KbId | String | No | Knowledge base ID |
||||||||||||||||||
| OptionConfig | RetrievalOption | No | Retrieval optional configuration |
||||||||||||||||||
| QaRetrievalConfig | QARetrievalConfig | No | QA search configuration |
||||||||||||||||||
| RerankConfig | RerankConfig | No | ReRank configuration |
||||||||||||||||||
| SearchFilterConfig | SearchFilterConfig | No | Search filter configuration |
||||||||||||||||||
| StrategyType | Integer | No | Retrieval strategy: 1=hybrid, 2=semantic, 3=keyword, 4=none
|
||||||||||||||||||
| TextToSqlModel | ModelDetailInfo | No | Text2SQL model |
Common key-value pair
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| Key | String | No | Key |
| Value | String | No | Value |
A single retrieval result
Used by actions: SearchKnowledge.
| Name | Type | Required | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Confidence | Float | No | Confidence degree |
||||||||||||||||||
| KnowledgeType | Integer | No | Hit knowledge type: 1=QA, 2=document fragment, 3=database, 4=map
|
||||||||||||||||||
| RecallTypeList | Array of Integer | No | Recall type list |
||||||||||||||||||
| ResultPayload | SearchResultPayload | No | Result payload |
||||||||||||||||||
| ResultType | Integer | No | Result type
|
||||||||||||||||||
| SimilarQuestionExtra | SimilarQuestionExtra | No | Additional information for similar questions. |
||||||||||||||||||
| SnippetProfile | KnowledgeSnippetProfile | No | Basic information of knowledge fragment |
||||||||||||||||||
| SourceInfo | KnowledgeSource | No | Knowledge source information |
Basic information of knowledge fragment
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| Content | String | No | Content |
| DocId | String | No | Associated document ID |
| DocName | String | No | Document name |
| KbId | String | No | Knowledge base ID |
| KnowledgeId | String | No | Knowledge ID |
| Question | String | No | Query |
| Title | String | No | Document title |
Knowledge source information
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| IsBigData | Boolean | No | Whether it is big data |
| IsShared | Boolean | No | Whether it is a shared knowledge base |
| KbName | String | No | Knowledge base name |
Model details
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| Alias | String | No | Model alias. |
| HistoryLimit | Integer | No | Limit on number of historical conversations |
| ModelId | String | No | Unique model ID |
| ModelParams | ModelParams | No | Model parameters |
Model parameters
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| DeepThinking | String | No | Whether deep thinking is enabled |
| FrequencyPenalty | Float | No | Frequency penalty |
| MaxTokens | Integer | No | Maximum output length |
| PresencePenalty | Float | No | Existence penalty |
| ReasoningEffort | String | No | Deep thinking effect |
| RepetitionPenalty | Float | No | Repetition penalty |
| ReplyFormat | String | No | Output format (text, json_object) |
| Seed | Integer | No | Random seed |
| StopSequenceList | Array of String | No | Stop sequence |
| Temperature | Float | No | Temperature |
| TopP | Float | No | top_p |
| TopK | Integer | No | top_k |
QA search configuration
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| Confidence | Float | No | Confidence threshold |
| Enabled | Boolean | No | Whether to enable |
| TopN | Integer | No | Return the top N entries |
Rearrange the configuration
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| Enabled | Boolean | No | Whether to enable |
| ModelName | String | No | Model name |
Optional retrieval configuration
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| ExpirationAwareness | ExpirationAwareness | No | Timeliness retrieval enhancement configuration |
| GraphRag | GraphRAG | No | GraphRAG Configuration |
| TableEnhancement | TableEnhancement | No | Spreadsheet enhancement configuration |
Retrieve advanced configuration
Used by actions: SearchKnowledge.
| Name | Type | Required | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FinalRerankConfig | FinalRerankConfig | No | Final ReRank Configuration |
||||||||||||
| KbRetrievalList | Array of KBRetrievalConfig | No | Search configuration of each knowledge base |
||||||||||||
| KnowledgeType | Integer | No | Retrieve knowledge type: 1=document and QA, 2=rejected question
|
||||||||||||
| RecallCount | Integer | No | Number of final returned results |
Retrieval billing information
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| BillingTagList | Array of KVPair | No | Billing tag list |
| FinanceSubBusinessType | String | No | Billing sub-business type |
Retrieval request context info
Used by actions: SearchKnowledge.
| Name | Type | Required | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CallSource | Integer | No | Request source
|
||||||||||||||||||||||||
| Domain | Integer | No | adp DOMAIN: 1=development DOMAIN, 2=production DOMAIN
|
||||||||||||||||||||||||
| VisitorId | String | No | Visitor ID |
Search filter
Used by actions: SearchKnowledge.
| Name | Type | Required | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FilterType | Integer | No | Search filter type
|
||||||||||||||||||||||||
| FilterValueList | Array of String | No | Filter value list. According to SearchFilterType, take value 1: pass a custom tag value; 2: pass a custom tag value ID; 3: pass a document ID; 4: pass a category ID |
||||||||||||||||||||||||
| LabelId | String | No | User-customized tag ID |
||||||||||||||||||||||||
| LogicOp | Integer | No | Logical operator: AND or OR
|
||||||||||||||||||||||||
| SearchFilterList | Array of SearchFilter | No | Nested search filter |
Search filter configuration
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| OnlyRetrievalSelectedLabel | Boolean | No | Whether to retrieve only selected tags. true: retrieve only knowledge with selected tags; false: simultaneous retrieval of knowledge with selected tags and knowledge without any tags |
| SearchFilter | SearchFilter | No | Search filter |
Retrieval input
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| ImageUrlList | Array of String | No | List of image URLs |
| Question | String | No | Query |
| SubQuestionList | Array of String | No | Deconstructed sub-problem list |
Result payload
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| GraphData | String | No | Additional information of knowledge graph (JSON string) |
| ImageUrlList | Array of String | No | List of hit image URLs |
| SheetInfo | String | No | Table additional information (JSON string) |
Additional information of the similar question
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| Content | String | No | Text content of the similar question |
| SimilarQuestionId | String | No | Similar question ID |
Table enhancement configuration
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| Enabled | Boolean | No | Whether to enable |
Token usage statistics
Used by actions: SearchKnowledge.
| Name | Type | Required | Description |
|---|---|---|---|
| CompletionTokens | Integer | No | Number of completion tokens |
| ModelName | String | No | Model name |
| PromptTokens | Integer | No | prompt token count |
| TotalTokens | Integer | No | Total token count |
フィードバック