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.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
config: AzureAISearchConfig,
options: AzureAISearchAddDocumentsOptions
): Promise<AzureAISearchVectorStore>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | List of documents to be converted to vectors. |
embeddings* | EmbeddingsInterface | Embeddings to be used for conversion. |
config* | AzureAISearchConfig | Database configuration for Azure AI Search. |
options | AzureAISearchAddDocumentsOptions |