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

BaseKnowledgeSourceParams interface

知识源运行时参数的基础类型。

属性

alwaysQuerySource

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

enableImageServing

指示在检索时是否应启用该知识源的图像服务。 当为真时,在导入过程中提取的图像会传递给下游模型。

failOnError

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

includeReferences

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

includeReferenceSourceData

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

kind

判别器可能的值:searchIndex、azureBlob、indexedSharePoint、indexedOneLake、web、remoteSharePoint、workIQ、fabricDataAgent、fabricOntology、mcpServer、file、indexedSQL

knowledgeSourceName

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

maxOutputDocuments

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

neverQuerySource

表示该知识源应从请求的候选集中排除,且检索时绝不查询。 该排除是请求本地的,不会修改知识库成员资格。 不能在同一知识源上与 alwaysQuerySource 合并使用。

rerankerThreshold

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

resultsProcessing

覆盖知识源存储的结果,仅处理此检索调用。 省略时,存储的知识源值适用。

属性详细信息

alwaysQuerySource

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

alwaysQuerySource?: boolean

属性值

boolean

enableImageServing

指示在检索时是否应启用该知识源的图像服务。 当为真时,在导入过程中提取的图像会传递给下游模型。

enableImageServing?: boolean

属性值

boolean

failOnError

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

failOnError?: boolean

属性值

boolean

includeReferences

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

includeReferences?: boolean

属性值

boolean

includeReferenceSourceData

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

includeReferenceSourceData?: boolean

属性值

boolean

kind

判别器可能的值:searchIndex、azureBlob、indexedSharePoint、indexedOneLake、web、remoteSharePoint、workIQ、fabricDataAgent、fabricOntology、mcpServer、file、indexedSQL

kind: string

属性值

string

knowledgeSourceName

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

knowledgeSourceName: string

属性值

string

maxOutputDocuments

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

maxOutputDocuments?: number

属性值

number

neverQuerySource

表示该知识源应从请求的候选集中排除,且检索时绝不查询。 该排除是请求本地的,不会修改知识库成员资格。 不能在同一知识源上与 alwaysQuerySource 合并使用。

neverQuerySource?: boolean

属性值

boolean

rerankerThreshold

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

rerankerThreshold?: number

属性值

number

resultsProcessing

覆盖知识源存储的结果,仅处理此检索调用。 省略时,存储的知识源值适用。

resultsProcessing?: string

属性值

string