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.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
dbConfig: RedisVectorStoreConfig,
docsOptions: RedisAddOptions
): Promise<RedisVectorStore>| 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 | The configuration for the RedisVectorStore. |
docsOptions | RedisAddOptions | The document options to use. |