- Python
- JavaScript
Prerequisites
To use the Python SDK, make sure you have:- Python 3.10 or later
- numpy 1.26 or later
- grpcio 1.80 or later
- pydantic 2.10 or later
Step 1: Install the SDK
Install the VectorAI DB Python SDK using pip.Step 2: Run the Docker container
Download and run the VectorAI DB Docker container./var/lib/actian-vectorai directory is the container’s location for storing Actian VectorAI DB and should be volume-mounted to persist data.Running VectorAI DB? Sign up for a free 30-day trial to unlock up to 1 million vectors, no credit card required.
Step 3: Create a collection
Connect to the VectorAI server and create a collection namedproducts with dimension 128 and cosine distance metric.- Synchronous
- Asynchronous
Step 4: Insert vectors
Generate sample product vectors and insert them into the collection.Step 5: Search for similar vectors
Perform similarity search to find the top five most similar vectors.Step 6: Delete collection
When you are done, clean up by deleting the collection.Next steps
Now that you have completed the quickstart, explore these resources to build further.Fundamentals
Learn collections, points, vectors, search, and filtering
Python reference
Review Python SDK namespaces and configuration
JavaScript reference
Review JavaScript SDK namespaces and configuration
Integrations
Connect with LangChain and LlamaIndex