fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | |
embeddings* | EmbeddingsInterface | |
dbConfig* | AzureDocumentDBConfig |
Static method to create an instance of AzureDocumentDBVectorStore from a list of documents. It first converts the documents to vectors and then adds them to the collection.
List of documents to be converted to vectors.
Embeddings to be used for conversion.
Database configuration for Azure DocumentDB.