LimyeDB - Open Source Vector Database for GenAI, RAG & LLMs
LimyeDB is a fast, highly-available open-source vector database engineered specifically for the next generation of AI applications. Built entirely from scratch in Go, it is a semantic storage engine designed to power Retrieval-Augmented Generation (RAG), large language model (LLM) memory arrays, and predictive similarity matching with low-millisecond retrieval latency.
LimyeDB distinguishes itself by natively supporting Hybrid Search—combining a memory-mapped HNSW (Hierarchical Navigable Small World) dense vector index with a fast local BM25 inverted index for sparse vectors. It fuses these multi-modal queries using Reciprocal Rank Fusion (RRF). LimyeDB deploys as a single binary or as a Raft-replicated high-availability cluster.
Why LimyeDB? The Vector Database Built for Production AI
The Challenge with Existing Vector Databases
The explosive growth of Large Language Models (LLMs), Retrieval-Augmented Generation (RAG), and AI-powered search has created unprecedented demand for vector databases. Yet teams building production AI systems consistently face the same frustrations:
Vendor Lock-in and Unpredictable Costs
Proprietary vector database services like Pinecone charge based on vector storage and queries, leading to bills that scale unpredictably as your AI application grows. Open-source alternatives often follow an "open core" model where critical features—clustering, security, enterprise support—are paywalled. Organizations building mission-critical AI infrastructure deserve better than hoping their vendor's pricing stays reasonable.
Operational Complexity
Solutions like Milvus require deploying etcd, MinIO, Pulsar, and multiple coordinator services before you can store a single vector. Weaviate and Qdrant simplify deployment but still demand careful tuning for production workloads. Teams end up spending more time managing infrastructure than building AI features.
The Performance Trade-off Trap
Vector databases force painful compromises:
- In-memory indexes (like standard HNSW) deliver sub-millisecond latency but limit dataset size to available RAM
- Disk-based solutions scale larger but introduce 10-100x latency penalties
- Managed services abstract complexity but add network round-trips and throttling
- JVM-based systems suffer garbage collection pauses that destroy P99 latencies
Missing Features for Real-World AI Applications
Production AI systems need more than just vector search:
- Hybrid search combining semantic similarity with keyword matching for better relevance
- Real-time subscriptions for reactive user interfaces
- Built-in embedding to avoid separate ETL pipelines
- Authentication and authorization with per-collection access control
Getting all of this typically means stitching together multiple systems—each with its own failure modes, version conflicts, and operational overhead.
Our Mission: Production-Grade AI Infrastructure for Everyone
LimyeDB was created to prove that powerful doesn't have to mean complicated.
We built the vector database we wished existed: one that a solo developer can run on a laptop for prototyping, and that replicates across a Raft-backed high-availability cluster when production calls for it. One that delivers production-grade capabilities without enterprise-grade complexity or cost.
What Makes LimyeDB the Best Open Source Vector Database
🚀 Single Binary Deployment — No Dependencies, No DevOps Nightmare
LimyeDB compiles to a single statically-linked Go binary. No JVM tuning. No external PostgreSQL, etcd, or Redis instances. No message queues. No container orchestration required for basic deployments.
# That's it. You now have a production-ready vector database.
# Auth is required by default; pick a real secret in production.
./limyedb -data ./my-vectors -rest :8080 -auth-token "$(openssl rand -hex 32)"
This isn't just convenience—it's operational sanity. Fewer moving parts means fewer failure modes, simpler debugging, and faster disaster recovery.
⚡ mmap-Backed HNSW — Predictable Latency
Most vector databases written in Go or Java suffer from garbage collection pauses that spike P99 latencies unpredictably. LimyeDB's HNSW implementation reduces GC pressure via:
- Memory-mapped graph storage keeps the connection arrays off the Go heap
- Pooled visited-set buffers during search reduce per-query allocations
- Concurrent reads with a single build lock for inserts
- SIMD-accelerated distance calculations on ARM64 (NEON) and x86-64 (AVX2)
The result: low-millisecond P99 search latencies that stay stable under load (see benchmarks).
🔍 Native Hybrid Search — Semantic + Keyword in One Query
While other vector databases bolt on keyword search as an afterthought, LimyeDB was architected from day one for hybrid retrieval:
| Component |
Technology |
Purpose |
| Dense Vectors |
HNSW (mmap-backed graph) |
Semantic similarity search |
| Sparse Vectors |
BM25 |
Keyword and lexical matching |
| Fusion |
Reciprocal Rank Fusion (RRF) |
Mathematically optimal result merging |
This matters because pure vector search fails on proper nouns, product codes, and exact phrases. Hybrid search delivers better relevance for real-world queries without requiring multiple systems or post-processing.
# Single query combining semantic understanding with keyword precision
curl -X POST http://localhost:8080/collections/docs/search/v2 \
-d '{
"vector": [0.1, 0.2, ...],
"sparse_vector": {"indices": [101, 403], "values": [2.4, 0.8]},
"limit": 10
}'
🔐 JWT-Based RBAC with Per-Collection ACLs
LimyeDB ships with built-in authentication and authorization:
- JWT bearer tokens with configurable claims (global admin or per-collection ACL)
- API key authentication for service-to-service traffic
- Per-collection access control — read/write permissions scoped to specific collections via JWT claims
- Constant-time token comparison to prevent timing attacks
No call-home licensing, no paywalled enterprise edition for auth.
🔒 Security-Hardened from the Ground Up
AI systems increasingly process sensitive data—customer conversations, proprietary documents, personal information. LimyeDB implements defense-in-depth security:
| Protection |
Implementation |
| Authentication |
Bearer tokens, API keys, JWT with RBAC |
| Encryption |
TLS 1.3 for client connections |
| Timing Attack Prevention |
Constant-time token comparison (crypto/subtle) |
| SSRF Protection |
Webhook URL validation against private IP ranges |
| SQL Injection Prevention |
Parameterized queries with escaped LIKE patterns |
| Path Traversal Prevention |
Sanitized paths with Zip Slip protection |
| Decompression Bombs |
Size limits on archive extraction |
| Cryptographic Randomness |
crypto/rand for all security-sensitive operations |
🤖 Automatic Embedding Orchestration
Skip the ETL pipeline. LimyeDB integrates directly with embedding providers:
# Send text, receive indexed vectors
curl -X POST http://localhost:8080/collections/docs/auto-embed \
-d '{
"provider": "openai",
"model": "text-embedding-3-small",
"api_key": "sk-...",
"points": [
{"id": "doc1", "payload": {"content": "Your text here"}}
]
}'
Supported Providers:
- OpenAI (text-embedding-3-small, text-embedding-3-large, ada-002)
- Cohere (embed-english-v3.0, embed-multilingual-v3.0)
🌐 Raft-Replicated High Availability
Run a 3-node cluster for HA via Hashicorp Raft:
- Strongly consistent writes through the Raft leader
- Leader election and automatic failover on node loss
- FSM-replicated collection metadata and points across nodes
- Snapshot-based recovery for fast catch-up on rejoin
A single binary deploys as either a standalone node or a member of a Raft cluster.
📈 Production Observability Built-In
Monitor everything with native integrations:
- Prometheus Metrics at
/metrics (latencies, throughput, index stats)
- Structured JSON Logging with configurable levels via
slog
- Health and Readiness Endpoints for Kubernetes probes
- Grafana Dashboard included in the repository
🆓 Truly Open Source — No Bait-and-Switch
LimyeDB is released under GPL v3. Everything is open:
- ✅ Raft-replicated high availability
- ✅ JWT-based RBAC and per-collection ACLs
- ✅ HNSW vector index (mmap-backed graph)
- ✅ Hybrid search (dense + BM25 sparse, RRF fusion)
- ✅ Auto-embedding via OpenAI / Cohere
- ✅ Server-side snapshots
- ✅ TLS and security hardening
- ✅ Prometheus metrics
No "enterprise edition" holding features hostage. No phone call required to get pricing. Fork it, modify it, self-host it.
LimyeDB vs. Other Vector Databases
| Feature |
LimyeDB |
Pinecone |
Qdrant |
Milvus |
Weaviate |
| Open Source |
✅ GPL v3 |
❌ Proprietary |
✅ Apache 2.0 |
✅ Apache 2.0 |
✅ BSD-3 |
| Single Binary |
✅ |
N/A (SaaS) |
✅ |
❌ (etcd, MinIO, Pulsar) |
✅ |
| Native Hybrid Search |
✅ BM25 + Dense |
✅ |
⚠️ Sparse only |
✅ |
✅ |
| mmap-Backed HNSW |
✅ |
N/A |
❌ |
❌ |
❌ |
| Auto-Embedding |
✅ OpenAI / Cohere |
❌ |
❌ |
❌ |
✅ |
| Self-Hosted |
✅ |
❌ |
✅ |
✅ |
✅ |
| Predictable Pricing |
✅ Free |
❌ |
✅ |
✅ |
⚠️ |
Who Should Use LimyeDB?
AI/ML Engineers Building RAG Pipelines
You need reliable, low-latency vector retrieval without becoming a database administrator. LimyeDB's single-binary deployment and automatic embedding let you focus on your AI application, not infrastructure.
Startups Shipping AI Products
You can't afford a dedicated DevOps team or unpredictable SaaS bills. LimyeDB gives you production-grade vector search that runs on a single VPS today and scales to a cluster tomorrow.
Enterprises Requiring Vendor Independence
You need to audit your infrastructure, comply with data residency requirements, and avoid lock-in. LimyeDB is fully self-hostable with no call-home telemetry.
Researchers and Educators
You want a performant vector database you can understand, modify, and extend. LimyeDB's clean Go codebase and comprehensive documentation make it hackable.
The Bottom Line
LimyeDB exists because the foundational infrastructure for AI should be accessible to everyone—not just organizations with deep pockets, large ops teams, or willingness to accept vendor lock-in.
We built the vector database we wished existed. Now it's yours to use.
Table of Contents
Key Features
Core Capabilities
| Feature |
Description |
| Hybrid Search via RRF |
Fuse dense semantic queries with sparse BM25 scores using Reciprocal Rank Fusion |
| mmap-Backed HNSW |
Memory-mapped graph storage with pooled visited-set buffers; SIMD distance kernels (NEON/AVX2) |
| Embedder Orchestrator |
Server-side text-to-vector via OpenAI and Cohere |
| SQLite Payload Indexing |
Persistent metadata indexed in SQLite with parameterized JSON-path queries |
| Raft-Replicated HA |
Hashicorp Raft replicates collection metadata and points across a 3-node cluster |
| JWT-Based RBAC |
Per-collection access control via JWT claims, enforced consistently across REST and gRPC |
| Product & Binary Quantization |
Product, scalar, and 1-bit binary quantization for memory footprint reduction |
| S3 Archive Storage |
Push collection snapshots to S3 for cold storage and restore on demand |
| CDC Mutation Webhooks |
HTTP webhook delivery of insert/update/delete events with SSRF-validated URLs |
| WAL Persistence |
Write-ahead log captures every mutation; replayed on startup for crash recovery |
Technical Highlights
- mmap-Backed HNSW Engine: Reduces GC pressure by storing graph connections in a memory-mapped file; pooled visited-set buffers and SIMD distance kernels.
- AST Payload Filtering: JSON predicate AST compiled into parameterized SQLite queries for safe, complex
WHERE-style filters.
- Quantization: