normalized_embeddings configured to use dot product as its distance metric.
client.collections.get_info("normalized_embeddings") and check that the status field returns Ready.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a collection that measures alignment and magnitude efficiently.
normalized_embeddings configured to use dot product as its distance metric.
from actian_vectorai import VectorAIClient, VectorParams, Distance
# Connect to VectorAI DB server
with VectorAIClient("localhost:6574") as client:
# Create collection with dot product
client.collections.create(
"normalized_embeddings", # Collection name
vectors_config=VectorParams(size=128, distance=Distance.Dot) # Dot product metric
)
import { VectorAIClient } from '@actian/vectorai-client';
async function main() {
// Connect to VectorAI DB server
const client = new VectorAIClient('localhost:6574');
// Create collection with dot product
await client.collections.create('normalized_embeddings', {
dimension: 128,
distanceMetric: 'DOT'
});
}
main().catch(console.error);
client.collections.get_info("normalized_embeddings") and check that the status field returns Ready.