Prerequisites
To use the Python SDK, make sure you have:- Python 3.10 or later
- numpy 2.2 or later
- grpcio 1.68 or later
- pydantic 2.10 or later
Coming soon
Step 1: Install the SDK
Install the VectorAI DB Python SDK using pip.Coming soon
Step 2: Run the Docker container
Download and run the VectorAI DB Docker container.Coming soon
localhost:50051.
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: Generate sample data
Create a function to generate sample product vectors with metadata.Step 5: Insert vectors
Generate and insert vectors into the collection.Step 6: Search for similar vectors
Perform similarity search to find the top five most similar vectors.Step 7: 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.Simple RAG Pipeline
Build your first Retrieval-Augmented Generation application
Documentation
Explore complete technical documentation