Configure HNSW parameters when creating a collection to balance search speed, accuracy, and memory usage. Custom parameters are useful when default settings do not meet your recall or latency requirements.Documentation Index
Fetch the complete documentation index at: https://docs.vectoraidb.actian.com/llms.txt
Use this file to discover all available pages before exploring further.
Before you begin, make sure you have a running VectorAI DB instance. HNSW parameters can only be set at collection creation and cannot be changed afterward.
Create a collection with custom parameters
The following example creates a collection with customm and ef_construct values inside HnswConfigDiff.
Higher parameter values improve accuracy at the cost of increased memory usage, slower index construction, and longer search times. Lower values prioritize speed and memory efficiency but can reduce recall.
Create a collection with default settings
When you omithnsw_config, VectorAI DB applies balanced default settings that work well for general-purpose vector search. Test with your data to determine if custom parameters provide improvements.