fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface| Name | Type | Description |
|---|---|---|
texts* | string[] | The texts to add. |
metadatas* | object | object[] | The metadata associated with the texts. |
embeddings* | EmbeddingsInterface | The embeddings to use. |
dbConfig* | RedisVectorStoreConfig | |
docsOptions | RedisAddOptions |
Static method for creating a new instance of RedisVectorStore from texts. It creates documents from the texts and metadata, then adds them to the RedisVectorStore.
The configuration for the RedisVectorStore.
The document options to use.