你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

FileKnowledgeSourceParams interface

指定文件知识源的运行时参数

扩展

属性

kind

判别值。

继承属性

alwaysQuerySource

指示此知识源应绕过源选择,并始终在检索时进行查询。

failOnError

表示如果从该知识源的检索遇到错误,整个检索请求应当失败。 默认值为 false。

includeReferences

指示是否应为从此源检索的数据包含引用。

includeReferenceSourceData

指示引用是否应在其有效负载中包含检索期间获得的结构化数据。

knowledgeSourceName

参数应用到的索引的名称。

maxOutputDocuments

限制从该知识源返回的最大文档数量。

rerankerThreshold

所有检索到的文档必须满足重新排序器阈值才能包含在响应中。

属性详细信息

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