OriginChain docs
how-to · query

Query data

OriginChain answers five query shapes against the same hash-keyed substrate: SQL, vector search, BM25 full-text, graph traversal, and natural language. A row written once is visible to all five the moment the WAL fsyncs.

Pick a shape below for the request body, mode flags, and response shape. The HTTP API reference has every endpoint in one place; the Python SDK wraps each one.

Shared mechanics.

Every shape compiles to a JSON-serialisable Plan tree, cached by question hash, replayable. ?explain=true on any read endpoint returns the executed plan annotated with per-node row counts and µs timings. Cancel an in-flight plan with the ULID handed back in X-OC-Query-Id.

For the operator catalog (Scan, IndexScan, Filter, HashJoin, OuterJoin, Aggregate, Sort, Limit, RelationHop), see core concepts → plan tree.