FileKnowledgeSourceParams interface
Specifies runtime parameters for a File knowledge source
- Extends
Properties
| kind | The discriminator value. |
Inherited Properties
| always |
Indicates that this knowledge source should bypass source selection and always be queried at retrieval time. |
| fail |
Indicates that the entire retrieval request should fail if retrieval from this knowledge source encounters an error. Defaults to false. |
| include |
Indicates whether references should be included for data retrieved from this source. |
| include |
Indicates whether references should include the structured data obtained during retrieval in their payload. |
| knowledge |
The name of the index the params apply to. |
| max |
Limits the maximum number of documents returned from this knowledge source. |
| reranker |
The reranker threshold all retrieved documents must meet to be included in the response. |
Property Details
kind
The discriminator value.
kind: "file"
Property Value
"file"
Inherited Property Details
alwaysQuerySource
Indicates that this knowledge source should bypass source selection and always be queried at retrieval time.
alwaysQuerySource?: boolean
Property Value
boolean
Inherited From KnowledgeSourceParams.alwaysQuerySource
failOnError
Indicates that the entire retrieval request should fail if retrieval from this knowledge source encounters an error. Defaults to false.
failOnError?: boolean
Property Value
boolean
Inherited From KnowledgeSourceParams.failOnError
includeReferences
Indicates whether references should be included for data retrieved from this source.
includeReferences?: boolean
Property Value
boolean
Inherited From KnowledgeSourceParams.includeReferences
includeReferenceSourceData
Indicates whether references should include the structured data obtained during retrieval in their payload.
includeReferenceSourceData?: boolean
Property Value
boolean
Inherited From KnowledgeSourceParams.includeReferenceSourceData
knowledgeSourceName
The name of the index the params apply to.
knowledgeSourceName: string
Property Value
string
Inherited From KnowledgeSourceParams.knowledgeSourceName
maxOutputDocuments
Limits the maximum number of documents returned from this knowledge source.
maxOutputDocuments?: number
Property Value
number
Inherited From KnowledgeSourceParams.maxOutputDocuments
rerankerThreshold
The reranker threshold all retrieved documents must meet to be included in the response.
rerankerThreshold?: number
Property Value
number
Inherited From KnowledgeSourceParams.rerankerThreshold