WeaviateKernelBuilderExtensions.AddWeaviateVectorStore 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.
Register a Weaviate IVectorStore with the specified service ID.
public static Microsoft.SemanticKernel.IKernelBuilder AddWeaviateVectorStore (this Microsoft.SemanticKernel.IKernelBuilder builder, System.Net.Http.HttpClient? httpClient = default, Microsoft.SemanticKernel.Connectors.Weaviate.WeaviateVectorStoreOptions? options = default, string? serviceId = default);
static member AddWeaviateVectorStore : Microsoft.SemanticKernel.IKernelBuilder * System.Net.Http.HttpClient * Microsoft.SemanticKernel.Connectors.Weaviate.WeaviateVectorStoreOptions * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddWeaviateVectorStore (builder As IKernelBuilder, Optional httpClient As HttpClient = Nothing, Optional options As WeaviateVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder
Parameters
- builder
- IKernelBuilder
The builder to register the IVectorStore on.
- httpClient
- HttpClient
HttpClient that is used to interact with Weaviate API. BaseAddress should point to remote or local cluster and API key can be configured via DefaultRequestHeaders. It's also possible to provide these parameters via WeaviateVectorStoreOptions.
- options
- WeaviateVectorStoreOptions
Optional options to further configure the IVectorStore.
- serviceId
- String
An optional service id to use as the service key.
Returns
The kernel builder.