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