Static method for creating a new instance of RedisVectorStore from documents. It adds the documents to the RedisVectorStore.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
dbConfig: RedisVectorStoreConfig,
docsOptions: RedisAddOptions
): Promise<RedisVectorStore>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | The documents to add. |
embeddings* | EmbeddingsInterface | The embeddings to use. |
dbConfig* | RedisVectorStoreConfig | The configuration for the RedisVectorStore. |
docsOptions | RedisAddOptions | The document options to use. |