OriginChain docs
how-to · query

Query data

OriginChain answers five kinds of question against the same database. Pick the one that matches what you're trying to do - structured filters use SQL, similarity uses vectors, keywords use full-text, relationships use graph, and natural-language sentences use Ask.

Each shape gets its own reference page below. The HTTP API reference lists every endpoint in one place. SDKs (Python, TypeScript, Go) wrap 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.