Share via


PineconeServiceCollectionExtensions.AddPineconeVectorStoreRecordCollection Method

Definition

Overloads

AddPineconeVectorStoreRecordCollection<TRecord>(IServiceCollection, String, PineconeVectorStoreRecordCollectionOptions<TRecord>, String)

Register a Pinecone Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID and where Pinecone.PineconeClient is retrieved from the dependency injection container.

AddPineconeVectorStoreRecordCollection<TRecord>(IServiceCollection, String, String, PineconeVectorStoreRecordCollectionOptions<TRecord>, String)

Register a Pinecone Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the provided Pinecone.PineconeClient and the specified service ID.

AddPineconeVectorStoreRecordCollection<TRecord>(IServiceCollection, String, PineconeVectorStoreRecordCollectionOptions<TRecord>, String)

Register a Pinecone Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID and where Pinecone.PineconeClient is retrieved from the dependency injection container.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddPineconeVectorStoreRecordCollection<TRecord>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string collectionName, Microsoft.SemanticKernel.Connectors.Pinecone.PineconeVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddPineconeVectorStoreRecordCollection : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Microsoft.SemanticKernel.Connectors.Pinecone.PineconeVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddPineconeVectorStoreRecordCollection(Of TRecord) (services As IServiceCollection, collectionName As String, Optional options As PineconeVectorStoreRecordCollectionOptions(Of TRecord) = Nothing, Optional serviceId As String = Nothing) As IServiceCollection

Type Parameters

TRecord

The type of the data model that the collection should contain.

Parameters

services
IServiceCollection

The IServiceCollection to register the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 on.

collectionName
String

The name of the collection that this PineconeVectorStoreRecordCollection<TRecord> will access.

serviceId
String

An optional service id to use as the service key.

Returns

The service collection.

Applies to

AddPineconeVectorStoreRecordCollection<TRecord>(IServiceCollection, String, String, PineconeVectorStoreRecordCollectionOptions<TRecord>, String)

Register a Pinecone Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the provided Pinecone.PineconeClient and the specified service ID.

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

Type Parameters

TRecord

The type of the data model that the collection should contain.

Parameters

services
IServiceCollection

The IServiceCollection to register the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 on.

collectionName
String

The name of the collection that this PineconeVectorStoreRecordCollection<TRecord> will access.

apiKey
String

The api key for Pinecone.

serviceId
String

An optional service id to use as the service key.

Returns

The service collection.

Applies to