AzureAISearchServiceCollectionExtensions.AddAzureAISearchVectorStore 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
AddAzureAISearchVectorStore(IServiceCollection, AzureAISearchVectorStoreOptions, String) |
Register an Azure AI Search IVectorStore with the specified service ID and where SearchIndexClient is retrieved from the dependency injection container. |
AddAzureAISearchVectorStore(IServiceCollection, Uri, AzureKeyCredential, AzureAISearchVectorStoreOptions, String) |
Register an Azure AI Search IVectorStore with the provided Uri and AzureKeyCredential and the specified service ID. |
AddAzureAISearchVectorStore(IServiceCollection, Uri, TokenCredential, AzureAISearchVectorStoreOptions, String) |
Register an Azure AI Search IVectorStore with the provided Uri and TokenCredential and the specified service ID. |
AddAzureAISearchVectorStore(IServiceCollection, AzureAISearchVectorStoreOptions, String)
Register an Azure AI Search IVectorStore with the specified service ID and where SearchIndexClient is retrieved from the dependency injection container.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAzureAISearchVectorStore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.SemanticKernel.Connectors.AzureAISearch.AzureAISearchVectorStoreOptions? options = default, string? serviceId = default);
static member AddAzureAISearchVectorStore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.SemanticKernel.Connectors.AzureAISearch.AzureAISearchVectorStoreOptions * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAzureAISearchVectorStore (services As IServiceCollection, Optional options As AzureAISearchVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection to register the IVectorStore on.
- options
- AzureAISearchVectorStoreOptions
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
AddAzureAISearchVectorStore(IServiceCollection, Uri, AzureKeyCredential, AzureAISearchVectorStoreOptions, String)
Register an Azure AI Search IVectorStore with the provided Uri and AzureKeyCredential and the specified service ID.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAzureAISearchVectorStore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Uri endpoint, Azure.AzureKeyCredential credential, Microsoft.SemanticKernel.Connectors.AzureAISearch.AzureAISearchVectorStoreOptions? options = default, string? serviceId = default);
static member AddAzureAISearchVectorStore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Uri * Azure.AzureKeyCredential * Microsoft.SemanticKernel.Connectors.AzureAISearch.AzureAISearchVectorStoreOptions * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAzureAISearchVectorStore (services As IServiceCollection, endpoint As Uri, credential As AzureKeyCredential, Optional options As AzureAISearchVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection to register the IVectorStore on.
- endpoint
- Uri
The service endpoint for Azure AI Search.
- credential
- AzureKeyCredential
The credential to authenticate to Azure AI Search with.
- options
- AzureAISearchVectorStoreOptions
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
AddAzureAISearchVectorStore(IServiceCollection, Uri, TokenCredential, AzureAISearchVectorStoreOptions, String)
Register an Azure AI Search IVectorStore with the provided Uri and TokenCredential and the specified service ID.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAzureAISearchVectorStore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Uri endpoint, Azure.Core.TokenCredential tokenCredential, Microsoft.SemanticKernel.Connectors.AzureAISearch.AzureAISearchVectorStoreOptions? options = default, string? serviceId = default);
static member AddAzureAISearchVectorStore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Uri * Azure.Core.TokenCredential * Microsoft.SemanticKernel.Connectors.AzureAISearch.AzureAISearchVectorStoreOptions * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAzureAISearchVectorStore (services As IServiceCollection, endpoint As Uri, tokenCredential As TokenCredential, Optional options As AzureAISearchVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection to register the IVectorStore on.
- endpoint
- Uri
The service endpoint for Azure AI Search.
- tokenCredential
- TokenCredential
The credential to authenticate to Azure AI Search with.
- options
- AzureAISearchVectorStoreOptions
Optional options to further configure the IVectorStore.
- serviceId
- String
An optional service id to use as the service key.
Returns
The service collection.