FileKnowledgeSourceParams interface
指定文件知识源的运行时参数
属性
| kind | 判别值。 |
继承属性
| always |
指示此知识源应绕过源选择,并始终在检索时进行查询。 |
| fail |
表示如果从该知识源的检索遇到错误,整个检索请求应当失败。 默认值为 false。 |
| include |
指示是否应为从此源检索的数据包含引用。 |
| include |
指示引用是否应在其有效负载中包含检索期间获得的结构化数据。 |
| knowledge |
参数应用到的索引的名称。 |
| max |
限制从该知识源返回的最大文档数量。 |
| reranker |
所有检索到的文档必须满足重新排序器阈值才能包含在响应中。 |
属性详细信息
kind
判别值。
kind: "file"
属性值
"file"
继承属性详细信息
alwaysQuerySource
指示此知识源应绕过源选择,并始终在检索时进行查询。
alwaysQuerySource?: boolean
属性值
boolean
继承自 KnowledgeSourceParams.alwaysQuerySource
failOnError
表示如果从该知识源的检索遇到错误,整个检索请求应当失败。 默认值为 false。
failOnError?: boolean
属性值
boolean
继承自 KnowledgeSourceParams.failOnError
includeReferences
指示是否应为从此源检索的数据包含引用。
includeReferences?: boolean
属性值
boolean
继承自 KnowledgeSourceParams.include参考文献
includeReferenceSourceData
指示引用是否应在其有效负载中包含检索期间获得的结构化数据。
includeReferenceSourceData?: boolean
属性值
boolean
继承自 KnowledgeSourceParams.includeReferenceSourceData
knowledgeSourceName
参数应用到的索引的名称。
knowledgeSourceName: string
属性值
string
继承自 KnowledgeSourceParams.knowledgeSourceName
maxOutputDocuments
限制从该知识源返回的最大文档数量。
maxOutputDocuments?: number
属性值
number
继承自 KnowledgeSourceParams.maxOutputDocuments
rerankerThreshold
所有检索到的文档必须满足重新排序器阈值才能包含在响应中。
rerankerThreshold?: number
属性值
number
继承自 KnowledgeSourceParams.rerankerThreshold