SearchModelFactory.KnowledgeSourceReference Method

Definition

Reference to a knowledge source.

public static Azure.Search.Documents.Indexes.Models.KnowledgeSourceReference KnowledgeSourceReference(string name = default, bool? enableImageServing = default, bool? enableFreshness = default);
static member KnowledgeSourceReference : string * Nullable<bool> * Nullable<bool> -> Azure.Search.Documents.Indexes.Models.KnowledgeSourceReference
Public Shared Function KnowledgeSourceReference (Optional name As String = Nothing, Optional enableImageServing As Nullable(Of Boolean) = Nothing, Optional enableFreshness As Nullable(Of Boolean) = Nothing) As KnowledgeSourceReference

Parameters

name
String

The name of the knowledge source.

enableImageServing
Nullable<Boolean>

Indicates whether image serving should be enabled for this knowledge source. When true, images extracted during ingestion are delivered to downstream models at query time.

enableFreshness
Nullable<Boolean>

Indicates whether freshness-aware retrieval should be enabled for this knowledge source. When true, a freshness scoring profile is applied during retrieval to bias results toward newer documents.

Returns

A new KnowledgeSourceReference instance for mocking.

Applies to