Skip to content

One question.
All your data.

Write to the model that fits. Bring the context together when you query.

Explore the nine models

Illustrative 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.

  1. users table rows
    INSERT INTO users (name, email) VALUES ('Alice', 'alice@co.com')
  2. events documents
    INSERT INTO events DOCUMENT (body) VALUES ({"level":"warn"})
  3. identity graph edges
    INSERT INTO identity EDGE (label, from, to) VALUES ('OWNS', 'alice', 'passport:AB1234567')
  4. notes vectors
    INSERT INTO notes (body) VALUES ('suspicious login') WITH AUTO EMBED (body) USING openai
  5. settings key-value
    SET CONFIG acme.risk_threshold = 'high';

cross-model context · actual primitives

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" }
}
SEARCH CONTEXT shape
BucketCollectionKindNote
tablesuserstableindexed passport match
graph.edgesidentitygraph_edgeOWNS passport edge
vectorsnotesvector0.91 semantic similarity
documentslogsdocumentwarning login payload
key_valuesconfigkvrisk_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.