Class AzureAiSearchEmbeddingStore.Builder
java.lang.Object
dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore.Builder
- Enclosing class:
- AzureAiSearchEmbeddingStore
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionSets the Azure AI Search API key.build()createOrUpdateIndex(boolean createOrUpdateIndex) Whether to create or update the search index.dimensions(int dimensions) If using the ready-made index, sets the number of dimensions of the embeddings.Sets the Azure AI Search endpoint.filterMapper(AzureAiSearchFilterMapper filterMapper) Sets the filter mapper to be used.index(com.azure.search.documents.indexes.models.SearchIndex index) If using a custom index, sets the index to be used.If no index is provided, set the name of the default index to be used.tokenCredential(com.azure.core.credential.TokenCredential tokenCredential) Used to authenticate to Azure OpenAI with Azure Active Directory credentials.
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
endpointSets the Azure AI Search endpoint. This is a mandatory parameter.- Parameters:
- endpoint- The Azure AI Search endpoint in the format: https://{resource}.search.windows.net
- Returns:
- builder
 
- 
apiKeySets the Azure AI Search API key.- Parameters:
- apiKey- The Azure AI Search API key.
- Returns:
- builder
 
- 
tokenCredentialpublic AzureAiSearchEmbeddingStore.Builder tokenCredential(com.azure.core.credential.TokenCredential tokenCredential) Used to authenticate to Azure OpenAI with Azure Active Directory credentials.- Parameters:
- tokenCredential- the credentials to authenticate with Azure Active Directory
- Returns:
- builder
 
- 
createOrUpdateIndexWhether to create or update the search index.- Parameters:
- createOrUpdateIndex- Whether to create or update the index.
- Returns:
- builder
 
- 
dimensionsIf using the ready-made index, sets the number of dimensions of the embeddings. This parameter is exclusive of the index parameter.- Parameters:
- dimensions- The number of dimensions of the embeddings.
- Returns:
- builder
 
- 
indexpublic AzureAiSearchEmbeddingStore.Builder index(com.azure.search.documents.indexes.models.SearchIndex index) If using a custom index, sets the index to be used. This parameter is exclusive of the dimensions parameter.- Parameters:
- index- The index to be used.
- Returns:
- builder
 
- 
indexNameIf no index is provided, set the name of the default index to be used.- Parameters:
- indexName- The name of the index to be used.
- Returns:
- builder
 
- 
filterMapperSets the filter mapper to be used.- Parameters:
- filterMapper- The filter mapper to be used.
- Returns:
- builder
 
- 
build
 
-