fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface| 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 |
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.
Configuration for the vector store.