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
What you need to get started
Documentation
Build, query, and prototype faster, then take your AI applications into production using Actian’s developer tools, APIs, and data platform.
View Now
Guides
Get started building your first VectorAI DB Application in your language of choice.
Need link
Developer Tools
Get SDKs, drivers, APIs, and more to build, integrate, and scale applications with Actian’s developer-ready platform.
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.