Create a new CouchbaseVectorStore from a set of documents. This function will initialize a new store, add the documents to it, and then return the store.
fromDocuments(
documents: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
config: CouchbaseSearchVectorStoreArgs
): Promise<CouchbaseSearchVectorStore>| Name | Type | Description |
|---|---|---|
documents* | Document<Record<string, any>>[] | The documents to be added to the new store. |
embeddings* | EmbeddingsInterface | The embeddings to be used for the documents. |
config* | CouchbaseSearchVectorStoreArgs | The configuration for the new CouchbaseVectorStore. This includes the options for adding vectors. |