ChloeDB
Search engine · database · recommender

One engine for search, data and recommendations Blazing fast, from laptop to cluster

Full text, vectors, columns and graphs over the same rows, in one SQL query. Start with a file in your app and grow to a sharded cluster without changing a query. Your coffee breaks will need a new excuse.

Latest benchmark · 1M documents · latest main

First overall against thirteen engines when every kind of query counts

Read the report
ChloeDB can

find “wireles controller” despite the typo

WHERE MATCH(title, 'wireles~ controller')

rank by words and meaning in one ORDER BY

ORDER BY rrf(bm25(title, :q), similarity(emb, :v))

recommend what a shopper's last purchases lead to

ppr(bought_with, (SELECT item FROM reviews WHERE usr = :user …))

keep two items per brand in the top ten

… DESC MAX 2 PER brand LIMIT 10

suggest as you type, typos and all

WHERE PREFIX(id, :typed, fuzzy => 'auto') ORDER BY n DESC LIMIT 10

search images and sound by what's in them

photo_emb VECTOR OPTIONS(embed = 'image', model = 'siglip-base-patch16-224')

find places near me, on the phone itself

POST /v1/admin/slices {"table": "places", "text": "name", "lat": "lat", "lon": "lon"}

rank with your LightGBM or XGBoost model, inside the query

ORDER BY gbdt('docs_ltr', bm25(title, :t), coalesce(rating, 0)) DESC

replace five systems and their 3 a.m. pages

chloedb-server --db shop.chloedb # the whole stack

hand results to pandas and Arrow without a copy

db.query_arrow("SELECT id, year, rating FROM books").to_pandas()

keep your scoring logic in the database

CREATE FUNCTION boosted(s FLOAT, w FLOAT) RETURNS FLOAT AS :s * (1 + :w)

follow your Postgres tables, a moment behind, with no Kafka

chloedb-server follow-postgres --source postgres://…

answer apps written for OpenSearch, unchanged

chloedb-server --opensearch-listen 127.0.0.1:9200

run inside your app as one file, like SQLite

db = chloedb.open("shop.chloedb")

grow to shards on Kubernetes with the same queries

kubectl apply -f operator.yaml -f cluster.yaml

lose a primary and lose no write

chloedb-server --seq-no --failover-after-ms 2000

take in logs over OpenTelemetry and keep the old ones on S3

chloedb-server --directory --cold-store s3://my-bucket/logs/ --cold-keep-local-gb 50

give Claude Code your tables over MCP

claude mcp add --transport http chloedb http://127.0.0.1:7700/v1/mcp

give Claude Code a memory that outlives its sessions, with ChloeCtx

claude plugin install chloectx --marketplace chloetech-ai/chloedb

explain your slow query before your boss asks

EXPLAIN SELECT … -- or click Profile
Measured against
One query

Four indexes, one statement

Other stacks join a database, a search engine, a vector store and a recommender in application code. In ChloeDB it is one query, and the planner decides how to run each part.

  • Full text finds "wireles controller" despite the typo
  • Columns keep the price range and two items per brand
  • Vectors add what is close in meaning
  • Graph adds what this user's recent purchases lead to
search.sql
SELECT id, title, price, score() FROM products
WHERE MATCH(title, 'wireles~ controller')
  AND price BETWEEN 20 AND 60 AND in_stock = TRUE
ORDER BY rrf(
    bm25(title, 'wireless controller'),
    similarity(emb, :query_vector),
    ppr(bought_with, (SELECT item FROM reviews
        WHERE usr = :user ORDER BY ts DESC LIMIT 5)))
  DESC MAX 2 PER brand LIMIT 10;
Try the ranking

Words, meaning, or both

Search 40 sample products. Slide from BM25 on the words to similarity in meaning and watch the order change, typos and all.

This runs in your browser, not on ChloeDB: BM25 as ChloeDB scores it (k1 1.2, b 0.75), and small hand-made vectors standing in for an embedding model. The statement beside it is what you would send ChloeDB for the same ranking.

Laptop to cloud

Start with a file. Grow to a cluster. Keep your queries.

The same schema, the same SQL and the same file format at every step.

In your app

A file, like SQLite

Open it from Python, JavaScript, Java or Rust. No server to run.

db = chloedb.open("shop.chloedb")
One server

HTTP, gRPC and a console

Serve the same file, with API keys and replicas when you need them.

chloedb-server --db shop.chloedb
In the cloud

Shards on Kubernetes

An operator that scales, upgrades and fails over a sharded cluster.

kubectl apply -f operator.yaml -f cluster.yaml

Use it from the language, or the API, you already use

Each one opens a local file or talks to a server, with the same methods. Apps written for OpenSearch keep their client.

ChloeCtx

Your memory, for every model

ChloeCtx, built on ChloeDB, keeps what you tell AI assistants in one file on your machine, and Claude, GPT or a local model can query it. On questions about a person's past chats, Opus answered 89% right from it, at 79 times fewer tokens than the whole history. In Claude Code it records every session on its own: /plugin marketplace add chloetech-ai/chloedb then /plugin install chloectx@chloedb installs it, with nothing to compile.

Try a query

Every example runs against the same shop: products, reviews and users.

SELECT id, title, price, score() FROM products
WHERE MATCH(title, 'controler~ OR gamepad', synonyms => 1)
  AND price BETWEEN 20 AND 60 AND in_stock
ORDER BY bm25(title, 'controller gamepad') DESC LIMIT 10;
SELECT id, title, score() FROM products WHERE in_stock
ORDER BY rrf(bm25(title, :q), similarity(emb, :v)) DESC LIMIT 10;
SELECT id, title, brand FROM products WHERE in_stock
ORDER BY similarity(emb, encode('next',
  (SELECT item, ts FROM reviews WHERE usr = :u ORDER BY ts DESC LIMIT 200)))
DESC MAX 2 PER brand LIMIT 10;
SELECT id, title, hops() FROM products
WHERE REACHABLE(bought_with, 'B07XYZ', hops => 2, dir => 'both') AND in_stock
ORDER BY hops(), id LIMIT 20;
SELECT p.brand, COUNT(*) AS reviews, AVG(r.stars) AS stars
FROM reviews r JOIN products p ON r.item = p.id
WHERE r.ts >= '2026-01-01'
GROUP BY p.brand ORDER BY reviews DESC LIMIT 10;
Command center

A console in every server

Open the server's address to see the cluster, its queries and its changes, live. Nothing extra to install.

localhost:7700/#/home
Home: the cluster's health, traffic and open problems at a glance, during a slowdown
localhost:7700/#/cluster
Cluster: 3 shards of 3 copies on three nodes in three zones, and the alerts firing on them
localhost:7700/#/profile
Profiler: a hybrid search's steps as a flame chart, on every shard it touched
localhost:7700/#/sql
SQL workbench: revenue by brand from a join, as a chart
localhost:7700/#/relevance
Relevance lab: two rankings side by side, graded by Claude
Benchmarks

First overall when one system has to do it all

Fourteen kinds of query against thirteen search engines and databases, with the same CPUs and memory for each and the answers checked. At 1M every engine ran on 16 November, ChloeDB 0.3.5 among them, with every result cache off: ChloeDB is first with 130 points, against Elasticsearch's 268. At 10M ChloeDB, Elasticsearch and OpenSearch ran again that day, the others on 3 November.

Specialists still win some kinds, such as typo search and key lookups. Each report shows where.

Start with a file in your app

Install the Python package, a prebuilt wheel for Linux and macOS (Python 3.10 or later), then open a file and query it. Nothing to compile.

pip install chloedb
python3 - <<'EOF'
import chloedb
db = chloedb.open("shop.chloedb", schema={"table": "products", "key": "id",  # a new file needs a schema
    "fields": [{"name": "id", "type": "keyword"}, {"name": "title", "type": "text"}]})
db.upsert({"id": "p1", "title": "Trail running shoes"})
print(db.search("shoes").dicts())
EOF

Or run the server, prebuilt, with SQL over HTTP and the command center in your browser:

curl -fsSL https://chloetech-ai.github.io/chloedb/install.sh | sh

On Windows (outside WSL 2) or Alpine there is no wheel yet: build the package from source, which needs Rust and a C compiler.