- Dot product: Measures the inner product between vectors. Best for embeddings trained with maximum inner product search.
- Cosine similarity: Measures the angle between vectors. Best for normalized embeddings where magnitude is irrelevant.
- Euclidean distance: Measures the straight-line distance between vectors. Best for general-purpose embeddings.
Collection structure
Each collection has the following key components:Collection naming rules: Names must match the pattern
^[a-zA-Z_]([a-zA-Z0-9_-]*[a-zA-Z0-9_])?$ and are limited to 64 characters. Names must start with a letter or underscore, and must end with a letter, digit, or underscore.HNSW index parameters
The HNSW parameters control the speed and accuracy tradeoff.hnsw_m: Number of bidirectional links per node. Higher values improve recall but increase memory usage.hnsw_ef_construct: Quality of index construction. Higher values create better indexes but take longer to build.hnsw_ef_search: Search accuracy. Higher values improve recall but increase query time.
Collection states
Collections exist in the following states for memory management:- Ready. Collection is loaded into memory and available for operations.
- Loading. Collection is currently loading into memory.
- Closed. Collection exists on disk but is not loaded into memory.
- Error. Collection encountered an issue.
Task guides
See step-by-step guides for collection operations:- Create a collection
- Get collection info
- Update collection parameters
- Manage collection state
- Delete a collection
Next steps
- Points — Manage vectors and data in collections.
- Vectors — Understand vector embeddings.
- Indexing — Optimize search performance.
- Distance metrics — Choose the right similarity measure.