KnowledgeBaseToolKnowledgeSourceReference interface
A reference to an existing knowledge source and a selected subset of persisted retrieval defaults, not the complete request-time parameter model. The referenced source determines the kind; incompatible defaults are rejected when the knowledge base is saved. Explicit retrieve-request values take precedence, except filters are combined with AND.
Properties
| always |
Whether the source must be queried. Not supported for MCP server sources. An explicit request exclusion takes precedence. |
| fail |
Whether retrieval should fail if this source encounters an error. |
| filter |
An additional OData filter for search index sources. Rejected for unsupported source kinds when the knowledge base is saved. Combined with source and request filters using AND. |
| max |
The maximum number of documents retrieved from this source, between 50 and 200. |
| name | The name of a knowledge source in the knowledge base. |
| reranker |
The minimum reranker score for returned documents. Requires reranking to be enabled. |
Property Details
alwaysQuerySource
Whether the source must be queried. Not supported for MCP server sources. An explicit request exclusion takes precedence.
alwaysQuerySource?: boolean
Property Value
boolean
failOnError
Whether retrieval should fail if this source encounters an error.
failOnError?: boolean
Property Value
boolean
filterAddOn
An additional OData filter for search index sources. Rejected for unsupported source kinds when the knowledge base is saved. Combined with source and request filters using AND.
filterAddOn?: string
Property Value
string
maxOutputDocuments
The maximum number of documents retrieved from this source, between 50 and 200.
maxOutputDocuments?: number
Property Value
number
name
The name of a knowledge source in the knowledge base.
name: string
Property Value
string
rerankerThreshold
The minimum reranker score for returned documents. Requires reranking to be enabled.
rerankerThreshold?: number
Property Value
number