oceanbase/seekdb
An OceanBase SQL engine for hybrid RAG retrieval and branchable agent state
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
seekdb is a C++ database built on the OceanBase SQL engine. It stores vector columns, text, relational fields, and semi-structured data in one engine and exposes a MySQL-protocol SQL interface. Deployment options include a local embedded runtime, a standalone server, and operation within an OceanBase distributed cluster. MySQL wire compatibility lets applications reuse drivers such as PyMySQL; it does not establish full SQL dialect or administrative parity.
On the write path, DML commits without waiting for vector index construction. Change Stream (src/observer/change_stream/) consumes redo asynchronously and updates the incremental HNSW. Queries consult both incremental and snapshot HNSW indexes with fine-grained read locks (src/observer/vector_index/). The tree includes Bazel build definitions and a Cargo workspace: rust/seekdb-rust links Rust components into the C++ server, bazel/prost-codegen is another workspace member, and the Rust release profile aborts on panic rather than unwinding across the language boundary.
Key Capabilities & Differentiators
A single SQL query can apply MATCH ... AGAINST, filter on fields such as author and timestamp, and rank the surviving candidates with l2_distance and ORDER BY ... APPROXIMATE LIMIT. The example schema combines a VECTOR(384) column, a full-text index using the ik parser, and an HNSW index with LIB=vsag. This demonstrates lexical filtering with vector ranking; it does not establish that the example performs weighted score fusion. The pyseekdb Collection API adds text embedding and hybrid search above the SQL layer.
FORK DATABASE creates a copy-on-write branch without copying the entire database up front. An agent can write to the branch, merge a selected table back with FAIL, THEIRS, or OURS, or drop the branch. The streaming write/search benchmark reports 1,523 QPS and 21.7 ms P99 under concurrent load. Those figures are workload-specific; test how soon newly committed rows appear in approximate search, since asynchronous indexing and ACID commit semantics are distinct.
Trade-offs & Limitations
The main reason to choose seekdb over a dedicated vector stack is to keep text, embeddings, metadata, and transactional state in one database, reducing synchronization between stores and avoiding application-side joins for the demonstrated query pattern. A managed vector service such as Pinecone is a better fit when vector retrieval is the main requirement and delegating operations matters more than SQL or local deployment. Against a self-hosted system such as Milvus, compare recall after filters, write-to-search visibility, and tail latency under your own ingestion pattern rather than using the published throughput as a general ranking.
Consolidation also puts full-text and HNSW maintenance alongside transactional work. Size for index footprint, write rate, query concurrency, and changes retained across branches. Treat copy-on-write as database state isolation, not as a security boundary for executing agent code or a substitute for backups. Validate merge conflict behavior, check MySQL-specific queries before migration, and test failover separately if your design depends on the distributed OceanBase deployment option.
Hardware & Deployment Guide
For local persistence without provisioning a server, the Python pylibseekdb binding requires Python 3.11 or newer and passes connection options to PyMySQL. The Node.js binding requires Node.js 22 or newer, uses mysql2, and relies on npm optional dependencies to install the matching native runtime. It manages a separate local process; close SQL connections before releasing the runtime handle. Go is also listed as a local option. Docker exposes ports 2881 and 2886 in the quick-start configuration and maps ./data to /var/lib/oceanbase; use a pinned image and validate persistence and restore behavior before production.
Standalone options include Linux DEB/RPM packages and portable archives, plus Homebrew on macOS. Source builds require the platform toolchain, then ./build.py init and ./build.py build seekdb. A hosted trial provisions an instance via POST /api/v1/instances. Version 1.3.0 introduced Change Stream-backed asynchronous indexing, 1.4.0 focused on reducing resource consumption, and 1.4.1 packages third-party component lists, license texts, and redistribution notices with its Linux artifacts.
MATCH ... AGAINST, scalar predicates, and approximate L2 ranking run in one query.FORK DATABASE shares existing data through copy-on-write; MERGE TABLE resolves conflicts with FAIL, THEIRS, or OURS./var/lib/oceanbase; v1.4.1 Linux packages and portable archives ship third-party license notices.Self-hosted RAG with frequent document updates, or agents that need transactional memory, hybrid SQL retrieval, and disposable database branches.
You only need managed vector retrieval, require untested MySQL features to work unchanged, or cannot validate search freshness and recovery under your production workload.
Quick Start & Installation
pip install -U pyseekdb # pyseekdb is the Python SDK for seekdb
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| seekdb ★ | 3.3k | +6 | C++ | Apache-2.0 | An OceanBase SQL engine for hybrid RAG retrieval and branchable agent state |
| zvec | 16.3k | +29 | C++ | Apache-2.0 | In-process C++ vector database for local hybrid retrieval |
| qdrant | 35.9k | +135 | Rust | Apache-2.0 | Rust vector database for filtered and hybrid RAG retrieval |
| LightRAG | 41k | +110 | Python | MIT | Graph-backed RAG for cross-document retrieval and multimodal indexing |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/oceanbase/seekdb.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about seekdb
How does an application connect to seekdb?
pylibseekdb supplies connection options for PyMySQL; pyseekdb offers a higher-level Collection API with text embedding and hybrid search. Test dialect-sensitive queries before treating protocol compatibility as a drop-in MySQL migration.Does seekdb require a GPU, and how should I size a deployment?
Can we self-host seekdb commercially or bundle it with a product?
When should we choose seekdb over Pinecone?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy