fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface| Name | Type | Description |
|---|---|---|
texts* | string[] | The texts to be converted into documents and added to the OpenSearch index. |
metadatas* | object | object[] | The metadata associated with the texts. Can be an array of objects or a single object. |
embeddings* | EmbeddingsInterface | The embeddings used to convert the texts into vectors. |
args* | OpenSearchClientArgs |
Static method to create a new OpenSearchVectorStore from an array of texts, their metadata, embeddings, and OpenSearch client arguments.
The OpenSearch client arguments.