Language

CosmosIndexBuilderExtensions.ForVectors メソッド

定義

オーバーロード

Name 説明
ForVectors(IndexBuilder, Nullable<VectorIndexType>)

"flat"、"diskANN"、"quantizedFlat" など、指定されたベクター インデックスの種類を持つベクター インデックスとしてインデックスを構成します。 詳細については、「NoSQLのAzure Cosmos DBでのベクター検索」を参照してください。

ForVectors(IConventionIndexBuilder, Nullable<VectorIndexType>, Boolean)

"flat"、"diskANN"、"quantizedFlat" など、指定されたベクター インデックスの種類を持つベクトル インデックスとしてインデックスを構成します。 詳細については、「NoSQLのAzure Cosmos DBでのベクター検索」を参照してください。

ForVectors<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>)

"flat"、"diskANN"、"quantizedFlat" など、指定されたベクター インデックスの種類を持つベクトル インデックスとしてインデックスを構成します。 詳細については、「NoSQLのAzure Cosmos DBでのベクター検索」を参照してください。

ForVectors(IndexBuilder, Nullable<VectorIndexType>)

ソース:
CosmosIndexBuilderExtensions.cs

"flat"、"diskANN"、"quantizedFlat" など、指定されたベクター インデックスの種類を持つベクター インデックスとしてインデックスを構成します。 詳細については、「NoSQLのAzure Cosmos DBでのベクター検索」を参照してください。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder ForVectors(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType);
static member ForVectors : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
<Extension()>
Public Function ForVectors (indexBuilder As IndexBuilder, indexType As Nullable(Of VectorIndexType)) As IndexBuilder

パラメーター

indexBuilder
IndexBuilder

構成されているインデックスのビルダー。

indexType
Nullable<VectorIndexType>

作成するベクター インデックスの型。

戻り値

インデックスをさらに構成するためのビルダー。

注釈

詳細と例については、「エンティティの型とリレーションシップのモデル化」および「EF Core を使用したAzure Cosmos DBへのアクセス」を参照してください。

適用対象

ForVectors(IConventionIndexBuilder, Nullable<VectorIndexType>, Boolean)

ソース:
CosmosIndexBuilderExtensions.cs

"flat"、"diskANN"、"quantizedFlat" など、指定されたベクター インデックスの種類を持つベクトル インデックスとしてインデックスを構成します。 詳細については、「NoSQLのAzure Cosmos DBでのベクター検索」を参照してください。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder? ForVectors(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType, bool fromDataAnnotation = false);
static member ForVectors : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder
<Extension()>
Public Function ForVectors (indexBuilder As IConventionIndexBuilder, indexType As Nullable(Of VectorIndexType), Optional fromDataAnnotation As Boolean = false) As IConventionIndexBuilder

パラメーター

indexBuilder
IConventionIndexBuilder

構成されているインデックスのビルダー。

indexType
Nullable<VectorIndexType>

作成するベクター インデックスの型。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

構成が適用された場合は同じビルダー インスタンス。それ以外の場合 null 。

注釈

詳細と例については、「エンティティの型とリレーションシップのモデル化」および「EF Core を使用したAzure Cosmos DBへのアクセス」を参照してください。

適用対象

ForVectors<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>)

ソース:
CosmosIndexBuilderExtensions.cs

"flat"、"diskANN"、"quantizedFlat" など、指定されたベクター インデックスの種類を持つベクトル インデックスとしてインデックスを構成します。 詳細については、「NoSQLのAzure Cosmos DBでのベクター検索」を参照してください。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> ForVectors<TEntity>(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType);
static member ForVectors : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
<Extension()>
Public Function ForVectors(Of TEntity) (indexBuilder As IndexBuilder(Of TEntity), indexType As Nullable(Of VectorIndexType)) As IndexBuilder(Of TEntity)

型パラメーター

TEntity

パラメーター

indexBuilder
IndexBuilder<TEntity>

構成されているインデックスのビルダー。

indexType
Nullable<VectorIndexType>

作成するベクター インデックスの型。

戻り値

IndexBuilder<TEntity>

インデックスをさらに構成するためのビルダー。

注釈

詳細と例については、「エンティティの型とリレーションシップのモデル化」および「EF Core を使用したAzure Cosmos DBへのアクセス」を参照してください。

適用対象