Ask a question to get started
Enter to sendā¢Shift+Enter new line
Method for creating an index in the FluentRedisVectorStore. Requires a customSchema to be defined for proper metadata indexing. If the index already exists, it does nothing.
createIndex(documents: Document<Record<string, any>>[], dimensions: number = 1536): Promise<void>
documents
Document<Record<string, any>>[]
Optional documents to validate against the schema
dimensions
number
1536
The dimensions of the vector field (default: 1536)