次の方法で共有


PineconeServiceCollectionExtensions.AddPineconeVectorStore Method

Definition

Overloads

AddPineconeVectorStore(IServiceCollection, PineconeVectorStoreOptions, String)

Register a Pinecone IVectorStore with the specified service ID and where Pinecone.PineconeClient is retrieved from the dependency injection container.

AddPineconeVectorStore(IServiceCollection, String, PineconeVectorStoreOptions, String)

Register a Pinecone IVectorStore with the specified service ID and where Pinecone.PineconeClient is constructed using the provided apikey.

AddPineconeVectorStore(IServiceCollection, PineconeVectorStoreOptions, String)

Register a Pinecone IVectorStore with the specified service ID and where Pinecone.PineconeClient is retrieved from the dependency injection container.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddPineconeVectorStore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.SemanticKernel.Connectors.Pinecone.PineconeVectorStoreOptions? options = default, string? serviceId = default);
static member AddPineconeVectorStore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.SemanticKernel.Connectors.Pinecone.PineconeVectorStoreOptions * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddPineconeVectorStore (services As IServiceCollection, Optional options As PineconeVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection to register the IVectorStore on.

options
PineconeVectorStoreOptions

Optional options to further configure the IVectorStore.

serviceId
String

An optional service id to use as the service key.

Returns

The service collection.

Applies to

AddPineconeVectorStore(IServiceCollection, String, PineconeVectorStoreOptions, String)

Register a Pinecone IVectorStore with the specified service ID and where Pinecone.PineconeClient is constructed using the provided apikey.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddPineconeVectorStore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string apiKey, Microsoft.SemanticKernel.Connectors.Pinecone.PineconeVectorStoreOptions? options = default, string? serviceId = default);
static member AddPineconeVectorStore : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Microsoft.SemanticKernel.Connectors.Pinecone.PineconeVectorStoreOptions * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddPineconeVectorStore (services As IServiceCollection, apiKey As String, Optional options As PineconeVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection to register the IVectorStore on.

apiKey
String

The api key for Pinecone.

options
PineconeVectorStoreOptions

Optional options to further configure the IVectorStore.

serviceId
String

An optional service id to use as the service key.

Returns

The service collection.

Applies to