matrixorigin/matrixone
MySQL-compatible HTAP with vector and full-text search for self-hosted RAG
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
MatrixOne is a Go-based distributed HTAP database, not a vector service layered over a separate relational store. Its HSTAP engine handles OLTP, OLAP, full-text search, and vector search in the same database. The MySQL-compatible interface lets an application keep document text, structured metadata, and embeddings together and query them through SQL. The distributed design separates storage and compute, and the local multi-CN topology routes client connections through a load-balancing proxy.
The Go manifest includes Apache Arrow, RoaringBitmap, and AWS S3 and Alibaba Cloud OSS SDKs. These identify dependencies in the analytical, bitmap, and object-storage stack, but do not establish the storage backend used by a specific deployment. Application integration can use standard MySQL tooling or the Python SDK's SQLAlchemy extensions for vector columns and search expressions.
Key Capabilities & Differentiators
The retrieval layer supports IVF and HNSW vector indexes as well as full-text search over text and JSON. The Python example defines an f32 vector column, populates it with precomputed embeddings, creates an IVF index using vector_l2_ops, and queries with an L2 distance expression. Hybrid retrieval combines vector similarity, full-text matching, and SQL conditions, making it possible to keep document selection and metadata filtering within the database.
A Pinecone-compatible API provides another integration path for vector clients. Git-style data workflows add zero-copy snapshots, time-travel queries, branching and merging, and rollback. These are useful for testing a corpus refresh or data migration in isolation. The retrieval features do not by themselves provide embedding inference or answer generation.
Trade-offs & Limitations
The strongest case for MatrixOne is avoiding a second serving copy when retrieval needs current transactional metadata. Compared with managed Pinecone, it brings SQL and full-text search into the same system but leaves capacity planning, upgrades, and recovery with the self-hosting team. A standalone Docker evaluation is straightforward; operating a distributed cluster with separate compute and storage is a different commitment. Test MySQL and Pinecone compatibility against the exact SQL features, drivers, and API calls you use rather than assuming drop-in parity.
Consolidation also puts index builds, ingestion, transactions, and analytical scans in the same database. Benchmark vector recall and tail latency under concurrent writes and analytical queries, not just against an idle index. Exercise backup and restore separately from snapshot or rollback workflows. If you only need vector lookup or already have an independently scaled search tier, the consolidation benefit may not justify broadening the database's operational scope.
Hardware & Deployment Guide
For local evaluation, run matrixorigin/matrixone:latest in Docker with port 6001 mapped and connect with a MySQL client. Python applications can install matrixone-python-sdk. For self-hosting, options include standalone Docker, Kubernetes, and mo_ctl, which covers installation, upgrades, backups, and health monitoring. A source build requires Go 1.27.1 or later, GCC or Clang, Git, and Make. Pin a tested image version and replace the demo credentials before exposing the service.
The v4.2.8 hotfix sequence addresses three distinct operational concerns: the November 24 build fixes a planner rewrite loop involving an unchanged IN predicate, November 26 enforces the INDEX privilege for standalone index DDL, and November 27 distinguishes normal pipeline termination after a downstream LIMIT from execution failure. Test the target build against your application queries and index-management roles before rollout.
vector_l2_ops.make dev-build && make dev-up.Teams building self-hosted RAG or agent memory that need retrieval against frequently updated relational metadata, both keyword and vector search, and isolated testing of corpus changes.
You only need managed vector retrieval, require unverified MySQL or Pinecone features, or cannot take on database capacity planning, upgrades, and recovery.
Quick Start & Installation
docker run -d -p 6001:6001 --name matrixone matrixorigin/matrixone:latest
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| matrixone ★ | 2.1k | — | Go | Apache-2.0 | MySQL-compatible HTAP with vector and full-text search for self-hosted RAG |
| weaviate | 17k | +17 | Go | — | Go vector database for filtered hybrid retrieval in production RAG stacks |
| 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/matrixorigin/matrixone.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about matrixone
How do I integrate MatrixOne into an existing Python RAG stack?
matrixone-python-sdk adds vector column definitions, IVF/HNSW index operations, and full-text helpers. Keep document ingestion, embedding generation, and answer generation in the application pipeline; the vector example supplies precomputed embeddings.Do I need a GPU, and how should I size a deployment?
Can I self-host MatrixOne for a commercial product?
Can MatrixOne replace Pinecone in an existing application?
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