SearchModelFactory.KnowledgeSourceParams Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base type for knowledge source runtime parameters. Please note this is the abstract base class. The derived classes available for instantiation are: SearchIndexKnowledgeSourceParams, AzureBlobKnowledgeSourceParams, IndexedSharePointKnowledgeSourceParams, IndexedOneLakeKnowledgeSourceParams, WebKnowledgeSourceParams, RemoteSharePointKnowledgeSourceParams, WorkIQKnowledgeSourceParams, FabricDataAgentKnowledgeSourceParams, FabricOntologyKnowledgeSourceParams, McpServerKnowledgeSourceParams, FileKnowledgeSourceParams, and IndexedSqlKnowledgeSourceParams.
public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams KnowledgeSourceParams(string knowledgeSourceName = default, bool? includeReferences = default, bool? includeReferenceSourceData = default, bool? alwaysQuerySource = default, bool? failOnError = default, float? rerankerThreshold = default, int? maxOutputDocuments = default, string kind = default, bool? enableImageServing = default);
static member KnowledgeSourceParams : string * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<single> * Nullable<int> * string * Nullable<bool> -> Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams
Public Shared Function KnowledgeSourceParams (Optional knowledgeSourceName As String = Nothing, Optional includeReferences As Nullable(Of Boolean) = Nothing, Optional includeReferenceSourceData As Nullable(Of Boolean) = Nothing, Optional alwaysQuerySource As Nullable(Of Boolean) = Nothing, Optional failOnError As Nullable(Of Boolean) = Nothing, Optional rerankerThreshold As Nullable(Of Single) = Nothing, Optional maxOutputDocuments As Nullable(Of Integer) = Nothing, Optional kind As String = Nothing, Optional enableImageServing As Nullable(Of Boolean) = Nothing) As KnowledgeSourceParams
Parameters
- knowledgeSourceName
- String
The name of the index the params apply to.
Indicates whether references should be included for data retrieved from this source.
Indicates whether references should include the structured data obtained during retrieval in their payload.
Indicates that this knowledge source should bypass source selection and always be queried at retrieval time.
Indicates that the entire retrieval request should fail if retrieval from this knowledge source encounters an error. Defaults to false.
The reranker threshold all retrieved documents must meet to be included in the response.
Limits the maximum number of documents returned from this knowledge source.
- kind
- String
The type of the knowledge source.
Indicates whether image serving should be enabled for this knowledge source at retrieval time. When true, images extracted during ingestion are delivered to downstream models.
Returns
A new KnowledgeSourceParams instance for mocking.