QdrantKernelBuilderExtensions.AddQdrantVectorStoreRecordCollection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| AddQdrantVectorStoreRecordCollection<TKey,TRecord>(IKernelBuilder, String, QdrantVectorStoreRecordCollectionOptions<TRecord>, String) |
Register a Qdrant Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID and where the Qdrant Qdrant.Client.QdrantClient is retrieved from the dependency injection container. |
| AddQdrantVectorStoreRecordCollection<TKey,TRecord>(IKernelBuilder, String, String, Int32, Boolean, String, QdrantVectorStoreRecordCollectionOptions<TRecord>, String) |
Register a Qdrant Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID and where the Qdrant Qdrant.Client.QdrantClient is constructed using the provided parameters. |
AddQdrantVectorStoreRecordCollection<TKey,TRecord>(IKernelBuilder, String, QdrantVectorStoreRecordCollectionOptions<TRecord>, String)
Register a Qdrant Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID and where the Qdrant Qdrant.Client.QdrantClient is retrieved from the dependency injection container.
public static Microsoft.SemanticKernel.IKernelBuilder AddQdrantVectorStoreRecordCollection<TKey,TRecord>(this Microsoft.SemanticKernel.IKernelBuilder builder, string collectionName, Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddQdrantVectorStoreRecordCollection : Microsoft.SemanticKernel.IKernelBuilder * string * Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddQdrantVectorStoreRecordCollection(Of TKey, TRecord) (builder As IKernelBuilder, collectionName As String, Optional options As QdrantVectorStoreRecordCollectionOptions(Of TRecord) = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder
Type Parameters
- TKey
The type of the key.
- TRecord
The type of the record.
Parameters
- builder
- IKernelBuilder
The builder to register the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 on.
- collectionName
- String
The name of the collection.
Optional options to further configure the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.
- serviceId
- String
An optional service id to use as the service key.
Returns
The kernel builder.
Applies to
AddQdrantVectorStoreRecordCollection<TKey,TRecord>(IKernelBuilder, String, String, Int32, Boolean, String, QdrantVectorStoreRecordCollectionOptions<TRecord>, String)
Register a Qdrant Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID and where the Qdrant Qdrant.Client.QdrantClient is constructed using the provided parameters.
public static Microsoft.SemanticKernel.IKernelBuilder AddQdrantVectorStoreRecordCollection<TKey,TRecord>(this Microsoft.SemanticKernel.IKernelBuilder builder, string collectionName, string host, int port = 6334, bool https = false, string? apiKey = default, Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddQdrantVectorStoreRecordCollection : Microsoft.SemanticKernel.IKernelBuilder * string * string * int * bool * string * Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddQdrantVectorStoreRecordCollection(Of TKey, TRecord) (builder As IKernelBuilder, collectionName As String, host As String, Optional port As Integer = 6334, Optional https As Boolean = false, Optional apiKey As String = Nothing, Optional options As QdrantVectorStoreRecordCollectionOptions(Of TRecord) = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder
Type Parameters
- TKey
The type of the key.
- TRecord
The type of the record.
Parameters
- builder
- IKernelBuilder
The builder to register the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 on.
- collectionName
- String
The name of the collection.
- host
- String
The Qdrant service host name.
- port
- Int32
The Qdrant service port.
- https
- Boolean
A value indicating whether to use HTTPS for communicating with Qdrant.
- apiKey
- String
The Qdrant service API key.
Optional options to further configure the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.
- serviceId
- String
An optional service id to use as the service key.
Returns
The kernel builder.