Method for adding vectors to the RedisVectorStore. It checks if the index exists and creates it if it doesn't, then adds the vectors in batches.
addVectors(
vectors: number[][],
documents: Document<Record<string, any>>[],
keys: RedisAddOptions = {}
): Promise<void>| Name | Type | Description |
|---|---|---|
vectors* | number[][] | The vectors to add. |
documents* | Document<Record<string, any>>[] | The documents associated with the vectors. |
keys | RedisAddOptions | Default: {}Optional keys for the vectors. |