ภาษา

SearchModelFactory.VectorSearchTopicGraphProfile Method

Definition

Defines a topic graph profile for a single vector field.

public static Azure.Search.Documents.Indexes.Models.VectorSearchTopicGraphProfile VectorSearchTopicGraphProfile(string name = default, string indexName = default, Azure.Search.Documents.Models.VectorSearchTopicGraphKind defaultKind = default, float? defaultDiversityFactor = default, int? defaultMinDiversityPoolSize = default);
static member VectorSearchTopicGraphProfile : string * string * Azure.Search.Documents.Models.VectorSearchTopicGraphKind * Nullable<single> * Nullable<int> -> Azure.Search.Documents.Indexes.Models.VectorSearchTopicGraphProfile
Public Shared Function VectorSearchTopicGraphProfile (Optional name As String = Nothing, Optional indexName As String = Nothing, Optional defaultKind As VectorSearchTopicGraphKind = Nothing, Optional defaultDiversityFactor As Nullable(Of Single) = Nothing, Optional defaultMinDiversityPoolSize As Nullable(Of Integer) = Nothing) As VectorSearchTopicGraphProfile

Parameters

name
String

The name to associate with this topic graph profile.

indexName
String

The name of the index that stores the topics for the associated vector field.

defaultKind
VectorSearchTopicGraphKind

Default kind of topic graph vector search to use.

defaultDiversityFactor
Nullable<Single>

Default diversity factor for topic graph vector searches. This property can only be used when defaultKind is diverse. Default is 0.2.

defaultMinDiversityPoolSize
Nullable<Int32>

Default minimum number of vector candidates to retrieve before topic graph sampling. This property can only be used when defaultKind is diverse or balanced. The default is 1,000.

Returns

A new VectorSearchTopicGraphProfile instance for mocking.

Applies to