Skip to main content
The GravixLayer SDK provides comprehensive vector database capabilities, allowing you to store, search, and manage high-dimensional vectors for AI, search, and analytics workflows.
Public Preview: Gravix Layer is currently in Public preview. Features are experimental and may have issues or break as ongoing updates to API endpoint and models continue.

Overview

Vector database operations allow you to:
  • Create Indexes: Set up vector collections with specific dimensions, metrics, and cloud deployment options
  • Multi-Cloud Support: Deploy indexes on AWS, GCP, Azure, or Gravix cloud infrastructure
  • Serverless & Dedicated: Choose between serverless (auto-scaling) or dedicated (fixed resources) index types
  • Upsert Vectors: Store and update vectors with metadata
  • Search Vectors: Perform similarity searches using vectors or text
  • Manage Vectors: List, retrieve, update, and delete vectors
  • Batch Operations: Efficiently delete multiple vectors at once
  • Text-to-Vector: Convert text to vectors using embedding models

Cloud Infrastructure

GravixLayer’s vector database supports multi-cloud deployment, allowing you to choose the best cloud provider and region for your needs.

Available Cloud Providers

ProviderRegionsIndex TypesDescription
AWSus-east-1 (Virginia)serverlessAmazon Web Services
GCPus-east1 (South Carolina)serverlessGoogle Cloud Platform
Azureeastus (Virginia)serverlessMicrosoft Azure (Coming Soon)
Gravixgl-eu-west1 (London)serverlessGravix AI Cloud

Supported Vector Types

  • dense — Standard dense vectors (currently the only supported type)

Similarity Metrics

  • cosine — Cosine similarity (recommended for most use cases)
  • euclidean — Euclidean distance
  • dotproduct — Dot product similarity

Supported Dimensions

ModelDimensionDescription
nomic-ai/nomic-embed-text:v1.5768Nomic embedding model
baai/bge-large-en-v1.51024BGE large English model
microsoft/multilingual-e5-large1024Multilingual E5 model

Prerequisites

Before using vector operations, you need to set up your API key:
API Key Required: You must export your GravixLayer API key in your terminal before using vector operations. All vector operations are tied to your API key and account.
Set your API key:
  • Windows (CMD)
  • Windows (PowerShell)
  • Linux/macOS
set GRAVIXLAYER_API_KEY=your_api_key_here
I