docs.rs failed to build velesdb-server-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
VelesDB Server
REST API server for VelesDB - a high-performance vector database.
Installation
From crates.io
Docker
From source
Usage
# Start server on default port 8080
# Custom port and data directory
# With logging
RUST_LOG=info
API Reference
Collections
# Create collection
# List collections
# Get collection info
# Delete collection
Points (Vectors)
# Upsert points
# Get points by IDs
# Delete points
Search
# Vector similarity search
# BM25 full-text search
# Hybrid search (vector + text)
# VelesQL query
# VelesQL with MATCH (full-text)
Health & Info
# Health check
# Server info
# OpenAPI spec
Distance Metrics
| Metric | API Value | Use Case |
|---|---|---|
| Cosine | cosine |
Text embeddings |
| Euclidean | euclidean |
Spatial data |
| Dot Product | dot |
Pre-normalized vectors |
| Hamming | hamming |
Binary vectors |
| Jaccard | jaccard |
Set similarity |
Performance
- Cosine similarity: ~76 ns per operation (768d)
- Search latency: < 1ms for 100k vectors
- Throughput: 13M+ distance calculations/sec
Configuration
| Environment Variable | Default | Description |
|---|---|---|
VELESDB_PORT |
8080 | Server port |
VELESDB_HOST |
0.0.0.0 | Bind address |
VELESDB_DATA_DIR |
./data | Data directory |
RUST_LOG |
warn | Log level |
License
Business Source License 1.1 (BSL-1.1)
See LICENSE for details.