fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
dbConfig: FluentRedisVectorStoreConfig| 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* | FluentRedisVectorStoreConfig | The configuration for the FluentRedisVectorStore. |
docsOptions | RedisAddOptions |
Static method for creating a new instance of FluentRedisVectorStore from texts. It creates documents from the texts and metadata, then adds them to the FluentRedisVectorStore.
The document options to use.