Indexing
Weaviate supports several types of indexes.
- Vector indexes - a vector index (e.g. HNSW or flat) is used to serve all vector-search queries.
- HNSW - an approximate nearest neighbor (ANN) search-based vector index. HNSW indexes scale well with large datasets.
- Flat - a vector index that is used for brute-force searches. This is useful for small datasets.
- Dynamic - a vector index that is flat when the dataset is small and switches to HNSW when the dataset is large.
- Inverted indexes - inverted indexes enable BM25 queries or speed up filtering.
You can configure indexes in Weaviate per collection.