SkillAgentSearch skills...

Matrixone

AI-native HTAP database with Git-for-Data and built-in vector search, serving as the data and memory backbone for intelligent agents and applications.

Install / Use

/learn @matrixorigin/Matrixone

README

<div class="column" align="middle"> <p align="center"> <img alt="MatrixOne All in One" height="50" src="https://github.com/matrixorigin/artwork/blob/main/docs/overview/logo.png?raw=true"> </p> </a> <a href="https://github.com/matrixorigin/matrixone/blob/main/LICENSE"> <img src="https://img.shields.io/badge/License-Apache%202.0-red.svg" alt="license"/> </a> <a href="https://golang.org/"> <img src="https://img.shields.io/badge/Language-Go-blue.svg" alt="language"/> </a> <img src="https://img.shields.io/badge/platform-MacOS-white.svg" alt="macos"/> <img src="https://img.shields.io/badge/platform-Linux-9cf.svg" alt="linux"/> <a href="https://www.codefactor.io/repository/github/matrixorigin/matrixone"> <img src="https://www.codefactor.io/repository/github/matrixorigin/matrixone/badge?s=7280f4312fca2f2e6938fb8de5b726c5252541f0" alt="codefactor"/> </a> <a href="https://docs.matrixorigin.cn/en/latest/MatrixOne/Overview/whats-new/"> <img src="https://img.shields.io/badge/Release-latest-green.svg" alt="release"/> </a> <br> <img src="https://img.shields.io/badge/MySQL-Compatible-4479A1.svg?logo=mysql&logoColor=white" alt="mysql-compatible"/> <img src="https://img.shields.io/badge/AI-Native-FF6B6B.svg?logo=openai&logoColor=white" alt="ai-native"/> <img src="https://img.shields.io/badge/Cloud-Native-326CE5.svg?logo=kubernetes&logoColor=white" alt="cloud-native"/> <br> <a href="https://docs.matrixorigin.cn/en/latest/"> <b>Docs</b> </a> <b>||</b> <a href="https://www.matrixorigin.io/"> <b> Official Website</b> </a> <br> <a href="https://github.com/matrixorigin/matrixone/blob/main/README.md"> <b>English</b> </a> <b>||</b> <a href="https://github.com/matrixorigin/matrixone/blob/main/README_CN.md"> <b>简体中文</b> </a> </div> <h3 align="center">Connect with us:</h3> <p align="center"> <a href="https://twitter.com/matrixone16" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/twitter.svg" alt="matrixone16" height="30" width="40" /></a> <a href="http://matrixoneworkspace.slack.com" target="blank"><img align="center" src="https://github.com/dengn/CASAUVSQ/blob/priority/slack_icon.png" alt="matrixone16" height="30" width="30" /></a> </p>

Contents

What is MatrixOne?

MatrixOne is the industry's first database to bring Git-style version control to data, combined with MySQL compatibility, AI-native capabilities, and cloud-native architecture.

At its core, MatrixOne is a HTAP (Hybrid Transactional/Analytical Processing) database with a hyper-converged HSTAP engine that seamlessly handles transactional (OLTP), analytical (OLAP), full-text search, and vector search workloads in a single unified system—no data movement, no ETL, no compromises.

🎬 Git for Data - The Game Changer

Just as Git revolutionized code management, MatrixOne revolutionizes data management. Manage your database like code:

  • 📸 Instant Snapshots - Zero-copy snapshots in milliseconds, no storage explosion
  • ⏰ Time Travel - Query data as it existed at any point in history
  • 🔀 Branch & Merge - Test migrations and transformations in isolated branches
  • ↩️ Instant Rollback - Restore to any previous state without full backups
  • 🔍 Complete Audit Trail - Track every data change with immutable history

Why it matters: Data mistakes are expensive. Git for Data gives you the safety net and flexibility developers have enjoyed with Git—now for your most critical asset: your data.


🎯 Built for the AI Era

<table> <tr> <td width="33%" valign="top">

🗄️ MySQL-Compatible

Drop-in replacement for MySQL. Use existing tools, ORMs, and applications without code changes. Seamless migration path.

</td> <td width="33%" valign="top">

🤖 AI-Native

Built-in vector search (IVF/HNSW) and full-text search. Build RAG apps and semantic search directly—no external vector databases needed.

</td> <td width="33%" valign="top">

☁️ Cloud-Native

Storage-compute separation. Deploy anywhere. Elastic scaling. Kubernetes-native. Zero-downtime operations.

</td> </tr> </table>

🚀 One Database for Everything

The typical modern data stack:

🗄️ MySQL for transactions → 📊 ClickHouse for analytics → 🔍 Elasticsearch for search → 🤖 Pinecone for AI

The problem: 4 databases · Multiple ETL jobs · Hours of data lag · Sync nightmares

MatrixOne replaces all of them:

🎯 One database with native OLTP, OLAP, full-text search, and vector search. Real-time. ACID compliant. No ETL.

<p align="center"> <img alt="MatrixOne" height="450" src="https://github.com/matrixorigin/artwork/blob/main/docs/overview/architecture/architeture241113_en.png?raw=true"> </p>

⚡️ Get Started in 60 Seconds

1️⃣ Launch MatrixOne

docker run -d -p 6001:6001 --name matrixone matrixorigin/matrixone:latest

2️⃣ Create Database

mysql -h127.0.0.1 -P6001 -p111 -uroot -e "create database demo"

3️⃣ Connect & Query

Install Python SDK:

pip install matrixone-python-sdk

Vector search:

from matrixone import Client
from matrixone.orm import declarative_base
from sqlalchemy import Column, Integer, String, Text
from matrixone.sqlalchemy_ext import create_vector_column

# Create client and connect
client = Client()
client.connect(database='demo')

# Define model using MatrixOne ORM
Base = declarative_base()

class Article(Base):
    __tablename__ = 'articles'
    id = Column(Integer, primary_key=True, autoincrement=True)
    title = Column(String(200), nullable=False)
    content = Column(Text, nullable=False)
    embedding = create_vector_column(8, "f32")

# Create table using client API
client.create_table(Article)

# Insert some data using client API
articles = [
    {'title': 'Machine Learning Guide',
     'content': 'Comprehensive machine learning tutorial...',
     'embedding': [0.1, 0.2, 0.3, 0.15, 0.25, 0.35, 0.12, 0.22]},
    {'title': 'Python Programming',
     'content': 'Learn Python programming basics',
     'embedding': [0.2, 0.3, 0.4, 0.25, 0.35, 0.45, 0.22, 0.32]},
]
client.batch_insert(Article, articles)

client.vector_ops.create_ivf(
    Article,
    name='idx_embedding',
    column='embedding',
    lists=100,
    op_type='vector_l2_ops'
)

query_vector = [0.2, 0.3, 0.4, 0.25, 0.35, 0.45, 0.22, 0.32]
results = client.query(
    Article.title,
    Article.content,
    Article.embedding.l2_distance(query_vector).label("distance"),
).filter(Article.embedding.l2_distance(query_vector) < 0.1).execute()
for row in results.rows:
    print(f"Title: {row[0]}, Content: {row[1][:50]}...")

# Cleanup
client.drop_table(Article)  # Use client API
client.disconnect()

Fulltext Search:

...
from matrixone.sqlalchemy_ext import boolean_match

# Create fulltext index using SDK 
client.fulltext_index.create(
    Article,name='ftidx_content',columns=['title', 'content']
)

# Boolean search with must/should operators
results = client.query(
    Article.title,
    Article.content,
    boolean_match('title', 'content')
        .must('machine')
        .must('learning')
        .must_not('basics')
).execute()

# Results is a ResultSet object
for row in results.rows:
    print(f"Title: {row[0]}, Content: {row[1][:50]}...")
...

That's it! 🎉 You're now running a production-ready database with Git-like snapshots, vector search, and full ACID compliance.

💡 Want more control? Check out the Installation & Deployment section below for production-grade installation options.

📖 Python SDK Documentation →

📚 Tutorials & Demos

Ready to dive deeper? Explore our comprehensive collection of hands-on tutorials and real-world demos:

🎯 Getting Started Tutorials

| Tutorial | Language/Framework | Description | |----------|-------------------|-------------| | Java CRUD Demo | Java | Java application development | | SpringBoot and JPA CRUD Demo | Java | SpringBoot with Hibernate/JPA | | PyMySQL CRUD Demo | Python | Basic database operations with Python | | SQLAlchemy CRUD Demo | Python | Python with SQLAlchemy ORM | | Django CRUD Demo | Python | Django web framework | | Golang CRUD Demo | Go | Go application development | | Gorm CRUD Demo | Go | Go with Gorm ORM | | C# CRUD Demo | C# | .NET application development | | TypeScript CRUD Demo | TypeScript | TypeScript application development |

🚀 Advanced Features Tutorials

| Tutorial | Use Case | Related MatrixOne Features | |----------|----------|---------------------------| | Pinecone-Compatible Vector Search | AI & Search | vector search, Pinecone-compatibl

View on GitHub
GitHub Stars1.9k
CategoryData
Updated1h ago
Forks288

Languages

Go

Security Score

100/100

Audited on Mar 29, 2026

No findings