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.
After creating a collection, you may need to adjust its configuration as requirements change. You can modify the following parameters after creation.
optimizers_config: Controls indexing threshold and optimizer behavior.
hnsw_config: Controls HNSW index parameters such as m and ef_construct.
wal_config: Controls write-ahead log settings.
Vector dimension and distance metric cannot be changed after creation. To use different values, delete and recreate the collection.
The following example updates the indexing threshold so that VectorAI DB delays building the index until the collection reaches 50,000 points:
import asyncio
from actian_vectorai import AsyncVectorAIClient, OptimizersConfigDiff
async def main():
# Connect to VectorAI DB server
async with AsyncVectorAIClient("localhost:6574") as client:
# Update collection configuration
await client.collections.update(
"my_collection", # Collection name
optimizers_config=OptimizersConfigDiff(
indexing_threshold=50000 # Points before indexing
)
)
print("Collection parameters updated")
asyncio.run(main())
To use a different vector dimension or distance metric, you must delete and recreate the collection. See Delete a collection for instructions.