Fast & local
Pure C/C++ core with memory-mapped binary storage. No Python runtime overhead on the hot path. Cold start in under 10 ms.
Semantic memory
1.0.0
A fast semantic vector database written in C/C++ for approximate nearest-neighbor search over embeddings with text metadata. Built for on-prem RAG, agent memory, and LLM inference — zero cloud dependency.
Built for scale.
Built for speed.
Built for you.
Text → embedding → HNSW search → ranked hits
LLM agents and RAG pipelines need to recall relevant facts, code, and documents by meaning — not just keywords. LogosDB stores embedding vectors with optional text and timestamps, then retrieves the closest matches in milliseconds using HNSW approximate nearest-neighbor search.
Pure C/C++ core with memory-mapped binary storage. No Python runtime overhead on the hot path. Cold start in under 10 ms.
Flat binary vector files plus JSONL metadata sidecar. Crash recovery backfills the HNSW index from the append-only vector store on open.
Timestamp range filters, structured metadata predicates, hybrid ANN + lexical fusion, and multi-tenant namespaces with quotas.
LogosDB 1.0.0 commits to stable semver for the public C API and supported on-disk formats. Throughput, search, integrations, and tooling from the 0.x line — production-ready.
C / C++ / Python — bounded memory, checkpoint resume.
chunk_size for streaming reads/writes--checkpoint and --resumelogosdb-cli export / importChunked WAL-aware writes and advanced retrieval modes.
put_batch with LOGOSDB_BATCH_CHUNK_SIZEInner product (L2-normalized), cosine similarity (auto-normalized), or L2 Euclidean — pick what fits your embedding model.
Search within ISO 8601 time windows — "last 24 hours", date ranges, or bounded recall for temporal RAG.
Isolated namespaces with quotas inside one DB root. Ideal for separating code, docs, and agent decisions.
Use LogosDB from C, C++, Python, Node.js, or directly inside Claude Code via MCP. Framework adapters for LangChain, LlamaIndex, and more.
logosdb-mcp-server indexes files, persists knowledge across sessions, and runs semantic search over stdio. Local Transformers.js embeddings by default.
PyPI wheels for Linux and macOS (CPython 3.9–3.13). pybind11 bindings with NumPy-friendly batch APIs and sizing calculator.
VectorStore adapters with timestamp filtering, node add/delete, and similarity search compatible with existing RAG pipelines.
Semantic memory plugin for Codex with bundled MCP config, slash commands, and agent skills for automatic indexing.
Install from PyPI, open a database, embed with your model, and search.
pip install logosdb
import logosdb
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2")
dim = model.get_sentence_embedding_dimension()
db = logosdb.DB("/tmp/agent_memory", dim=dim, distance=logosdb.DIST_COSINE)
for text, ts in [
("Retrying API calls with exponential backoff reduced failures by 42%.", "2026-05-06T09:00:00Z"),
("Idempotency keys prevented duplicate writes during network retries.", "2026-05-06T09:10:00Z"),
]:
emb = model.encode(text).astype("float32")
db.put(emb, text=text, timestamp=ts)
question = "How can we avoid duplicate writes when retries happen?"
hits = db.search(model.encode(question).astype("float32"), top_k=3)
for h in hits:
print(f"{h.score:.4f} {h.text}")
> logosdb-cli info /tmp/agent_memory
> logosdb-cli export /tmp/agent_memory --output rows.ndjson
> logosdb-cli import /tmp/restored --dim 384 --input rows.ndjson --chunk-size 1024 --checkpoint rows.cp