FLAT is a brute-force vector search technique: it compares a query vector with every indexed vector, favoring accuracy over speed. section 8.3
FLAT’s main implementation characteristics are:
- Stores vectors in a single tree or list structure rather than organizing them into an HNSW graph. section 8.3
- Finds nearest neighbors by computing distance from the query to the other indexed vectors. section 8.3
- Delivers higher accuracy but becomes computationally intensive and slower as the search considers every vector. section 8.3
Vector search configuration
A Redis vector field can specify FLOAT32 embeddings, a dimension matching the embedding model, and COSINE distance; the documented example uses HNSW rather than FLAT. section 8.3
