Static method to create a new CouchbaseQueryVectorStore from an array of texts. It first converts the texts to vectors using the embeddings and then creates a new vector store.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
config: CouchbaseQueryVectorStoreArgs
): Promise<CouchbaseQueryVectorStore>| Name | Type | Description |
|---|---|---|
texts* | string[] | Array of texts to be converted to vectors. |
metadatas* | object | object[] | Array of metadata objects corresponding to the texts. |
embeddings* | EmbeddingsInterface | Embeddings to be used for converting texts to vectors. |
config* | CouchbaseQueryVectorStoreArgs | Configuration for the vector store. |