Centre des développeurs
Découvrez les ressources disponibles et développez des applications dans le langage de votre choix
Langue
-
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' }
Ressources
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.
Voir l'article
Guides
Step-by-step quickstarts to run VectorAI DB locally and build your first app with Python and JavaScript.
Voir l'article
Outils de développement
SDKs and APIs to integrate VectorAI DB into your AI Apps.
Voir l'articleIntégrez-le à votre infrastructure
Connectez la base de données Actian VectorAI à vos environnements cloud, architectures, frameworks et appareils existants.
Intégrez-le à votre infrastructure
Connectez la base de données Actian VectorAI à vos environnements cloud, architectures, frameworks et appareils existants.