Static method to create a new CouchbaseQueryVectorStore from an array of documents. It first converts the documents to vectors using the embeddings and then creates a new vector store.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
config: CouchbaseQueryVectorStoreArgs
): Promise<CouchbaseQueryVectorStore>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | Array of documents to be converted to vectors. |
embeddings* | EmbeddingsInterface | Embeddings to be used for converting documents to vectors. |
config* | CouchbaseQueryVectorStoreArgs | Configuration for the vector store. |