Define the vector index contract
How to configure and maintain compatible vector indexes while monitoring the storage, ingestion, and query costs that determine their capacity needs. · associate
A vector index organizes stored embeddings for similarity search. Configure it for the output of your embedding model: the vector’s dimension, its supported data type, and the similarity measure recommended for that model. For example, an index expecting a different number of values cannot accept the model’s vectors.
Compatibility also depends on the embedding space. Document and query embeddings must use compatible models and settings. Two models can produce vectors with the same dimension but give those coordinates different meanings. Matching dimensions is necessary, but it does not make unrelated embeddings comparable.
Record the model identifier, relevant model settings, dimension, vector type, similarity measure, and any normalization requirements as a configuration contract. Check that the chosen database engine and deployment option support this contract before creating the index. Do not assume every vector-capable deployment supports every configuration.
| Configuration | What must agree |
|---|---|
| Embedding model | Compatible query and document spaces |
| Dimension | Model output and vector field |
| Vector data type | Model output and store support |
| Similarity measure | Model guidance and index settings |
| Normalization | Document and query processing |