Add a note explaining when indexing is necessary

This commit is contained in:
Yiorgis Gozadinos 2025-11-21 14:11:31 +02:00
parent 5477446c5d
commit dbb2837550
No known key found for this signature in database

View file

@ -741,6 +741,9 @@ search:
- `dot`: Dot product similarity
- **vector_refine_factor**: Retrieve `refine_factor * limit` candidates and re-rank in memory for better accuracy. Higher values increase accuracy but slow down queries. Default: 10
!!! note
Vector indexes are only necessary for large datasets with over 100,000 chunks. For smaller datasets, LanceDB's brute-force kNN search provides exact results with good performance. Only create an index if you notice search performance degradation on large datasets.
**Index creation:**
Vector indexes are **not created automatically** during document ingestion to avoid slowing down the process. After you've added documents (at least 256 chunks required), create the index manually: