One question.
All your data.
Write to the model that fits. Bring the context together when you query.
Explore the nine modelsIllustrative query walkthrough
Insert anything. Select across everything.
RedDB lets collections carry different data semantics without forcing your app to stitch together separate APIs for every model.
Mental model
Collections are where data lives. Models are how you use it.
In RedDB, a collection is a named logical container. A collection can behave like a table, document store, graph, vector index, key-value namespace, time-series series or queue depending on what you write into it.
- users table rows
INSERT INTO users (name, email) VALUES ('Alice', 'alice@co.com') - events documents
INSERT INTO events DOCUMENT (body) VALUES ({"level":"warn"}) - identity graph edges
INSERT INTO identity EDGE (label, from, to) VALUES ('OWNS', 'alice', 'passport:AB1234567') - notes vectors
INSERT INTO notes (body) VALUES ('suspicious login') WITH AUTO EMBED (body) USING openai - settings key-value
SET CONFIG acme.risk_threshold = 'high';
cross-model context · actual primitives
RedDB
SEARCH CONTEXT 'passport:AB1234567' DEPTH 2;
ASK 'who owns passport AB1234567 and what services do they use?';compact JSON preview
{
"ok": true,
"query": "ASK 'who owns passport AB1234567 and what services do they use?'",
"mode": "sql",
"capability": "table",
"statement": "ask",
"engine": "runtime-ai",
"record_count": 1,
"result": {
"columns": ["answer", "provider", "model", "prompt_tokens", "completion_tokens", "sources_count"],
"records": [{
"values": {
"answer": "Alice Costa owns passport AB1234567. The answer is based on the users collection, the identity graph edge, the logs document, the notes vector match and config key risk_threshold=high.",
"provider": "groq",
"model": "llama-3.3-70b-versatile",
"prompt_tokens": 1834,
"completion_tokens": 74,
"sources_count": 5
},
"nodes": {}, "edges": {}, "paths": [], "vector_results": []
}],
"stats": { "nodes_scanned": 0, "edges_scanned": 0, "rows_scanned": 0, "exec_time_us": 0 }
},
"selection": { "scope": "any" }
}| Bucket | Collection | Kind | Note |
|---|---|---|---|
| tables | users | table | indexed passport match |
| graph.edges | identity | graph_edge | OWNS passport edge |
| vectors | notes | vector | 0.91 semantic similarity |
| documents | logs | document | warning login payload |
| key_values | config | kv | risk_threshold=high |
Why this matters
The app asks one question. RedDB builds one context set from user rows,
evidence documents, graph relationships, semantic matches, configuration
state and pending workflow records.