Developer Hub
Explore resources and build apps using your language of choice
Language
-
Python
-
JavaScript
from actian_vectorai import VectorAIClient, VectorParams, Distance, PointStruct
with VectorAIClient("localhost:50051") as client:
# vectors_config defines the shape of your data: dimensions + similarity metric
client.collections.create("my_collection", vectors_config=VectorParams(size=128, distance=Distance.Cosine))
client.points.upsert("my_collection", [
PointStruct(id=1, vector=[0.1] * 128, payload={"label": "first vector"}),
])
# replace query vector with your model's output for semantic search
results = client.points.search("my_collection", vector=[0.15] * 128, limit=1)
print(results[0].payload) # {"label": "first vector"}
const client = new VectorAIClient('localhost:6574');
// vectors_config defines the shape of your data: dimensions + similarity metric
await client.collections.create('my_collection', { dimension: 128, distanceMetric: 'COSINE' });
await client.points.upsert('my_collection', [
{ id: 1, vector: new Array(128).fill(0.1), payload: { label: 'first vector' } },
]);
// replace query vector with your model's output for semantic search
const results = await client.points.search('my_collection', new Array(128).fill(0.15), { limit: 1 });
console.log(results[0].payload); // { label: 'first vector' }
Resources
Everything you need to build, test, and ship AI apps.
Documentation
Get started quickly with our SDKs, APIs, and developer tools so you can build, query, prototype, and bring your AI apps to production faster.
View Now
Guides
Step-by-step quickstarts to run VectorAI DB locally and build your first app with Python and JavaScript.
View Now
Developer Tools
SDKs and APIs to integrate VectorAI DB into your AI Apps.
View NowIntegrate with your stack
Connect Actian VectorAI DB to existing cloud environments, architecture, frameworks, and devices.
Integrate with your stack
Connect Actian VectorAI DB to existing cloud environments, architecture, frameworks, and devices.