Features
What you can build with VLite
Vectors and graphs in one engine, embedded in your app or behind an API you run.
Optional capabilities list their requirements. Format numbers describe file compatibility, not product releases. SDK and transport coverage varies; each guide lists its API surface.
Storage and records
| Feature | Support and requirements |
|---|---|
| Single-file database | A portable, versioned binary log in one authoritative .vlite file. Optional indexes and administration state can use sidecar files. |
| Durable commits | Checksummed frames, written before a write is acknowledged. Corruption and an incomplete trailing write fail with different errors. |
| Durability modes | Periodic (default): commits reach the OS at once and a background flusher syncs them every 60 s (1 ms to 60 s per handle). A process crash loses nothing acknowledged; an OS crash or power loss can lose up to the last interval. Full syncs every commit before acknowledging it. None keeps the database in memory only and loses all data on restart. Server: --durability periodic|full|none. |
| Vector CRUD and browse | Put, get, delete, numeric-ID pagination, payload bytes and typed metadata. IDs keep all 64 bits. |
| Atomic batches | Up to 4,096 operations and 16 MiB per batch, within one collection. Only graph batches span collections. |
| Conditional writes | Record revisions, put-if-absent and revision-checked puts and deletes. A conflict writes nothing. |
| Named collections | Independent dimensions, IDs, settings and derived indexes in one file. Requires format 4 or 5. |
| Record expiry (TTL) | Absolute expiry timestamps, expiry-aware reads and compaction. Requires format 5. |
| Metadata-only updates | Change metadata without rewriting the vector or payload; expiry is kept. Requires format 5. |
| Resumable ingestion | Atomic chunks with durable checkpoints, replay detection, row validation and reject or skip-invalid policies. Requires format 4 or 5. |
| Key-value store | Namespaced string keys with byte values and no vector: ordered prefix listing, optional expiry and compare-and-set on versions. Use it from Rust, REST, gRPC, the clients, and local shell and MCP tools. Requires format 4 or 5; expiry needs 5. |
| Agent memory | Opt-in REST memory with per-scope read-only grants, bounded receipt cleanup, grant-change preflight, restart-free reload and status for existing bindings. Clients, CLI and MCP tools are also supported. |
| Directory store (opt-in) | A format 5 database kept as a directory of write-ahead logs and a checkpoint image, so reopening replays only the active log. Created from Rust or converted from a file; older releases cannot open a directory store. |
| In-memory database | Create in memory, open from bytes and export bytes; the host handles persistence. |
Storage contracts · Collections, revisions and ingestion · Periodic durability
Search and retrieval
| Feature | Support and requirements |
|---|---|
| Exact vector search | Squared L2, cosine and negative inner product, with f64 accumulation, distance-then-ID ordering and bounded top-k memory. AVX2, NEON or portable kernels give identical results. |
| Approximate vector search | HNSW for squared L2 and cosine. Lazy mode may build the index synchronously; ready-only mode never builds. |
| Typed metadata filters | Equality, ranges, membership, existence and geographic radius predicates. Numeric types stay distinct. |
| Filtered ANN | Approximate retrieval with metadata eligibility checks; recall depends on the workload and search budget. |
| Automatic query planning | Exact scan, indexed exact, ready ANN and filtered ANN, with plan and stats reporting. Auto mode never builds an ANN index. |
| Text search | BM25 on declared string metadata fields, with lowercase alphanumeric tokenization. |
| Hybrid retrieval | Dense plus BM25, or dense plus sparse, fused with weighted reciprocal rank fusion. |
| Grouped results | Group nearest matches by a metadata field, with a per-group hit cap. |
| Recommendations | Positive and negative examples; example IDs are left out of the results. |
| Facets and statistics | Metadata facet counts and numeric statistics. |
| Geographic search | GeoPoint metadata, Haversine-radius filtering and ranking by vector or geographic distance. |
| Read-only query language | Parameterized vector and text search, predicates, groups, facets, ordering and limits. Not SQL or a scripting runtime. |
Indexes and concurrency
| Feature | Support and requirements |
|---|---|
| Rebuildable HNSW | Deterministic parallel construction that does not depend on thread count, vectorized distances, configurable graph and search budgets, and bounded mutation buffering. |
| Scalar-u8 quantization | Compressed traversal codes with full-precision reranking of candidates. Original vectors stay in memory. |
| Metadata indexes | Equality and range indexes with full-filter rechecks; rebuilt on reopen and on settings changes. |
| ANN restart snapshots | An optional validated graph cache tied to the database state, from the server (--ann-snapshot), Rust, the C ABI and Python. Not available for encrypted databases. |
| Disk ANN | An optional graph and vector sidecar with a bounded node cache. Builds still need in-memory HNSW capacity; no metadata or expiry filtering. |
| Index quality and memory | Sampled recall against exact results, index identity and readiness, and component-level memory diagnostics. |
| Parallel exact scans | Native Rayon scans above workload thresholds; not on WebAssembly. |
| Concurrent server reads | Shared reads and exclusive writes; bounded committed snapshots for eligible exact queries. |
| Shared embedded readers | Several read-only processes under shared file locks, excluding a writer. Reopen to see later commits. |
| Committed read snapshots | Rust handles for bounded exact search, get and browse outside the owner lock. |
| Background rebuilds | Explicit start, poll, cancel and maintenance controls; optional server scheduling with retry backoff. A Rust option lets approximate queries keep using the ready index while a rebuild runs. |
| Durable group commit | An optional shared sync for bounded concurrent record writes; each write keeps its own atomic frame. |
| Read-lock policy | --lock-held-reads trades snapshot copying for holding the owner read lock during exact scans. |
ANN snapshots · Read snapshots · Index and concurrency controls
Vectors and AI integration
| Feature | Support and requirements |
|---|---|
| Named dense vectors | Independent dimensions and metrics per vector name, with exact and ready-only named HNSW search. Requires format 5. |
| Sparse vectors | Sorted sparse values, derived inverted postings and negative-dot-product retrieval. Requires format 5. |
| Model version history | Active and retained vector versions, explicit retention and pruning, and version-targeted search. Requires format 5. |
| Resumable re-embedding | Durable job checkpoints, source-revision checks and atomic activation on completion. Your application schedules provider work. |
| Embedding providers | An application-owned Embedder registry; an optional OpenAI-compatible HTTP provider with http-embedder. Servers can also offer administrator-managed provider aliases over REST and gRPC (opt-in, off by default). |
| Reranking | Pluggable providers, exact metric rescoring, MMR diversity selection and, over REST and gRPC, custom ranking through a managed provider alias. |
| Typed float32 inputs | Python buffer methods (search_f32, batch_put_f32) and Node.js Float32Array methods (searchF32, searchManyF32, batchPutF32). Inputs are copied, not zero-copy. |
| GPU exact search | An optional gpu build using wgpu: default-collection squared L2 with CPU reranking and fallback. No filtered or cosine GPU search. |
Property graphs
| Feature | Support and requirements |
|---|---|
| On by default | New files hold vectors and graphs, and older releases cannot open them. Ask for format 3 or 4 for a plain vector file. vlite-maintain enable-graph adds graph support to a copy of a plain format 4 or 5 file. |
| Availability | Compiled into every build: release binaries, the C library, Python wheels, Node.js release tarballs and the Docker API server. vlite-graph-cli ships in the release archives, not the Docker image. |
| Data model | Up to 64 named graphs per file. Nodes have a unique key, labels and typed properties; edges have a type, endpoints, an optional key and properties. Attachments link nodes to live vector records. |
| Atomic graph batches | Up to 4,096 node, edge, attachment and vector operations, in any collection, commit atomically or not at all. expected makes an operation conditional. |
| Bounded reads | Node and edge gets, paged find and neighbors, traversal and shortest path, each on one committed view. Hop, work, output and deadline limits apply; results report completeness and truncation. |
| Expiry (TTL) | Nodes and edges can carry deadlines; an expired node is hidden with all its edges. An opt-in Rust feed reports deadlines and removals. Rust API only. |
| Local algorithms | Degree, weighted shortest path, PageRank, label propagation and sampled betweenness on an explicit local scope, under work, memory and iteration limits. Rust API only. |
| Schemas and property indexes | Label and relationship rules for required and unique properties, endpoints and multiplicity. Property indexes serve node lookups and are rebuilt on open. |
| Hybrid retrieval | A vector, text or fused pivot search, mapped to nodes through attachments and expanded, returns nodes with their evidence records. |
| Query text | A small read-only language that maps to one typed read. |
| Surfaces | Rust, vlite-graph-cli, MCP vlite_graph_* tools, REST /v1/graphs, the C ABI, Python, Node.js and the dashboard Graph workspace. Schemas, retrieval and query text are not in the C ABI, Python or Node.js yet. |
| Access control | Graphs are tenant-owned. API keys need graph_read or graph_write and a graphs binding; accounts get role-based access, narrowed by graphs and graph_access. Collection scope never implies graph scope. |
| Maintenance and rollback | Backup, restore, verify, compaction, format upgrade, re-encryption and read replicas keep graph state. vlite-maintain strip-graph --confirm-graph-data-loss copies the vectors to a plain format 5 file. |
| Change feed and webhooks | Graph commits appear as graph_created, graph_dropped and graph_batch events. Webhooks can limit graph events to named graphs. |
| Not supported | gRPC has no graph service, and vlite-graph-cli cannot open encrypted files. Reads cannot ask for an earlier point in time, query text cannot write, and REST, gRPC, MCP and the CLI do not expose expiry or algorithms. |
Graph guide · Graph query language · Graph CLI · MCP graph tools
The unreleased compact graph codec is reviewed but test-only; production storage is unchanged.
SDKs, APIs and deployment
| Feature | Support and requirements |
|---|---|
| Embedded Rust | Direct database and collection APIs with explicit Cargo feature selection. |
| Native bindings | C ABI, synchronous Python and asynchronous Node.js/TypeScript bindings. |
| Packages | Python vlite-embedded (in-process) and vlite-client (REST) are on PyPI. Node.js tarballs, the C library and binaries are GitHub release assets; npm packages are not published. |
| REST service | Authenticated JSON API, OpenAPI contract, capability discovery and structured errors. Requires server. |
| gRPC | An optional protobuf service with bounded streaming import and export, health and shared authorization. Requires grpc and a listener. |
| Bounded API work | Request and body limits, bounded admission and explicit overload errors; grouped writes drain on graceful shutdown. |
| Remote clients | Python, JavaScript/TypeScript, Go and .NET clients. |
| Docker | API and optional dashboard images, persistent data and admin volumes, and loopback defaults. The API server includes graph support. |
| Helm deployment | A chart and operational configuration for Kubernetes. |
| Azure Container Apps (experimental) | Single server by default. Opt-in HA: gateway, Blob-backed readers, optional single-writer fencing. Manual failover; auto-failover is opt-in, unqualified. Measurement limits. |
| WebAssembly | A byte-buffer backend and wasm-bindgen wrapper, built from source; the host supplies time and persistence. No path locking or background threads. |
| Native platforms | Windows, Linux and macOS; available binaries and wheels vary by architecture and package. |
API reference · gRPC scope · Installation matrix · Helm guide
Security and access control
| Feature | Support and requirements |
|---|---|
| Encryption at rest | ChaCha20-Poly1305 frame bodies and Argon2id passphrase derivation. Frame prefixes stay visible. |
| Key rotation | Validated copy-out re-encryption; encrypted backups keep encrypted bytes. |
| Token authentication | Admin and optional read-only HTTP bearer tokens, plus scoped API keys. |
| Dashboard accounts | Super admin, editor and viewer roles, Argon2id password hashes and HttpOnly, SameSite=Strict cookie sessions (by default 30 minutes idle, 8 hours total). Sign-in needs HTTPS or a loopback-only server. |
| Scoped authorization | Collection, operation and graph permissions, with credential expiry, rotation and revocation. |
| Credential quotas | Request-rate limits and aggregate or per-collection live-vector quotas. |
| Tenant namespaces | Tenant-owned collections, graphs, API keys, accounts and quotas in one file, with suspend, resume and delete. Isolation is logical, not cryptographic. |
| HTTPS and gRPC TLS | Native TLS or a trusted reverse proxy; optional gRPC client certificates. |
| Certificate reload | Admin-triggered, validated identity and CA reload; existing sessions are unchanged. |
| Audit and redaction | Administrative audit history, redacted request logs and allowlisted trace attributes. |
Operations, recovery and integration
| Feature | Support and requirements |
|---|---|
| Inspect and verify | Offline file, header and frame validation, detailed reports and keyed operations on encrypted files. |
| Backup and restore | Validated backups, schedules, retention, drills and restart-selected restore; opt-in memory-aware Azure Blob backups. |
| Compaction and format upgrade | Validated copy-out, never in place; opt-in experimental dashboard compaction (Linux ext4). |
| Interrupted-write recovery | Explicit repair of an incomplete tail; complete but corrupt data fails closed. |
| Point-in-time restore | Sequence-targeted restore; timestamp targets need commit timestamps. Restores publish a new lineage. |
| Change feed | Lineage and sequence cursors, whole-commit batches and explicit cursor invalidation after history changes. Covers vector and graph commits. Requires format 4 or 5. |
| Read replicas | Validated log-segment export and apply, lag status and explicit promotion. File shipping, not automatic network replication. |
| Webhooks | At-least-once change-feed delivery with HMAC signatures, retry backoff and persisted subscriptions and cursor. Every event type by default, with optional event, collection and graph filters. Consumers deduplicate events. |
| Health and metrics | Health endpoints, JSON and Prometheus metrics, latency and route counters, and queue, sync, snapshot and rebuild diagnostics. With agent memory, metrics are opt-in. |
| Live logs | A bounded in-memory ring, sequence cursors, filters and JSONL export; not a durable log archive. |
| OpenTelemetry | Optional OTLP tracing through otel, with an operator-configured collector. |
Dashboard
- Password sign-in; tokens for setup, automation and recovery.
- Nine workspaces: Overview; Data: Collections, Search, Key-value, MemoryAI, Graph; Server: Observability, Administration; Tools: Developer Console.
- Super admin, editor and viewer roles; disabled controls explain why.
- Paginated records, selectable metadata columns; Payload, Metadata, Vector and Raw JSON inspector.
- Validated single-record and bulk JSON writes, revision checks and change confirmations.
- JSON/CSV import and export; resumable JSON, NDJSON and CSV imports.
- Collection creation/settings, index builds, background rebuilds, readiness and sampled recall.
- Exact, approximate, ready-only, automatic and hybrid search; filters, explain, exact-versus-approximate comparison, code examples and saved queries.
- Reranking, grouping, geo radius, named/sparse vectors, recommendations, facets and query language.
- Analyze & compare: duplicate/type checks and 2-D plots of up to 32 records; two-record comparison.
- Graph: lookups, traversal, shortest paths, confirmed edits, rotatable 3D results, explain plans and statistics.
- Observability: live metrics/logs, slow-query diagnostics and change feed.
- Administration: health, token files, users, tenants, admin tokens, audit and MemoryAI grant preflight, live reload and status; backups, drills, schedules, point-in-time restore, replication-log export; automatic index maintenance, webhooks, TLS reload.
- API keys (super admin): list, create, rotate, revoke; collection/graph scopes, optional tenant, expiry, request-rate and vector quotas. All 11 operations:
read,search,search_build,write,import,index,collections,diagnostics,backup,graph_read,graph_write. Secrets appear once; rotation preserves scope with optional grace. No scope-edit route: create a replacement and revoke the old key. - Developer Console: request inspector, REST playground, read-only scenarios.
- Account menu: identity, password, theme, density, tour, sign-out; responsive and keyboard-accessible.
Command-line tools and agents
- Interactive or scripted shell: query records and collections, and run key-value commands;
--read-onlydisables writes and takes only a shared file lock. - Offline maintenance: inspect, verify, back up, restore, compact, upgrade and re-encrypt, plus
enable-graphandstrip-graphto add or remove graph support. - Import: CSV, JSONL, pgvector text and supported FAISS input; optional Parquet and Arrow IPC with
import-formats. - Search quality: exact-oracle recall, configuration and database comparison, and bounded index evaluation.
- Index tuning: a workload-based configuration advisor with memory and recall trade-offs.
- Benchmark harnesses: seeded or external vectors, mixed writes and deletes, and raw timing and memory reports.
- Graph CLI:
vlite-graph-clicreates files and runs graph reads and write batches as JSON. - MCP server: stdio tools with shared-lock read-only access by default and an explicit
--writablemode. Graph tools work on a file or through a server with--server URL. Six local key-value tools work on a file, three of them writing. - Agent skills: four skills for RAG, MCP, operations and index tuning.
Requirements and boundaries
- The live dataset must fit in RAM. Disk ANN bounds its node cache, not the database's overall memory footprint.
- One exclusive writer or several shared read-only owners per file; no embedded writer and readers across processes at the same time.
- New files are format 5 with graphs, which older releases cannot open. Format 3 or 4 creates a plain vector file without the newer features. Upgrades are explicit.
- Vector batches stay within one collection; only graph batches span collections. No distributed consensus, automatic network replication or inner-product ANN.
- Plaintext ANN sidecars are unavailable with encrypted databases. TLS and access controls are separate from file encryption.
- Tenants share one file. Their isolation is logical, not cryptographic.
- Embeddings come from your application or provider. VLite does not bundle a model runtime.
- Recovery checks do not certify physical power-loss behavior; filesystem and hardware guarantees still apply.
- gRPC has no graph service.