Skip to main content
Before starting, make sure VectorAI DB is running and your SDK is installed. See the Docker setup guide if you haven’t done that yet.

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: Create a collection

Connect to VectorAI DB and create a collection named products with dimension 128 and cosine distance metric.

Step 2: Insert vectors

Step 3: Search for similar vectors

The following output is an example. Your scores will vary.

Step 4: Delete collection

Next steps

Core concepts

Understand the data model, architecture, and how search works.

Python SDK reference

Namespaces, configuration, filters, and error handling.

JavaScript SDK reference

Client setup, namespaces, and TypeScript types.

Integrations

Connect VectorAI DB to LangChain and LlamaIndex.

Academy

Tutorials for semantic search, hybrid search, RAG, and more.