class AzureAISearchVectorStoreAzure AI Search vector store. To use this, you should have:
@azure/search-documents NPM package installedIf you directly provide a SearchClient instance, you need to ensure that
an index has been created. When using and endpoint and key, the index will
be created automatically if it does not exist.
Embeddings interface for generating vector embeddings from text queries, enabling vector-based similarity searches.
Returns a string representing the type of vector store, which subclasses must implement to identify their specific vector storage type.
Adds documents to the AzureAISearchVectorStore.
Adds vectors to the AzureAISearchVectorStore.
Creates a VectorStoreRetriever instance with flexible configuration options.
Prepares the search index definition for Azure AI Search.
Removes specified documents from the AzureAISearchVectorStore using IDs or a filter.
Ensures that an index exists on the AzureAISearchVectorStore.
Performs a hybrid search using query text.
Return documents selected using the maximal marginal relevance. Maximal marginal relevance optimizes for similarity to the query AND diversity among selected documents.
Performs a hybrid search with semantic reranker using query text.
Performs a similarity search using query type specified in configuration. If the query type is not specified, it defaults to similarity search.
Performs a similarity search on the vectors stored in the collection.
Performs a similarity search using query type specified in configuration. If the query type is not specified, it defaults to similarity hybrid search.
Static method to create an instance of AzureAISearchVectorStore from a list of documents. It first converts the documents to vectors and then adds them to the database.
Static method to create an instance of AzureAISearchVectorStore from a list of texts. It first converts the texts to vectors and then adds them to the collection.
The name of the serializable. Override to provide an alias or to preserve the serialized module name in minified environments.
Implemented as a static method to support loading logic.