OriginChain documentation
OriginChain is a managed database that answers five kinds of question against the same data: SQL for filters and aggregates, vector for similarity, full-text for keywords, graph for relationships, and natural language for everything else.
All five share one endpoint, one bearer token, one row store. A row written once is visible to all of them. New to the database? Hit the quickstart below. Already shipping? Jump to the per-shape reference pages.
Five minutes from signup to your first SQL, vector, full-text, and graph query - with cURL, Python, TypeScript, and Go side by side.
Pick the right one for your question.
Each shape gets its own reference page with cURL, Python, TypeScript, and Go examples. Not sure which to use? Choosing a query shape has a side-by-side comparison.
SELECT with WHERE, GROUP BY, aggregates (COUNT/SUM/AVG/MIN/MAX), and INNER / LEFT / RIGHT / FULL OUTER JOIN across up to 32 tables. Plus EXPLAIN.
Top-k nearest-neighbor over embeddings. HNSW by default; IVF and IVF-PQ for 10M+ corpora. Cosine / dot / L2 / Manhattan, optional metadata filter.
BM25 ranked, boolean AND, or exact-phrase. 18-language stemming and 9-language dictionary lemmatization. Optional diacritic folding and stop-words.
19 algorithms - neighbors, BFS, shortest path, Dijkstra, PageRank, Louvain, Node2Vec, GraphSAGE. Edges piggy-back on row columns; declare a relation on the schema and the engine maintains them.
Send a sentence in English, get rows back. The compiler caches plans by question hash so repeats are fast.
Or by topic.
Core concepts, SDKs, the CLI, the dashboard, deployment, operations.
The engine, query modes, schemas, the Plan tree, replication model, versioning, and PITR.
Decision guide. If your query looks like X, reach for Y - side-by-side per-shape comparison.
Python, TypeScript, and Go clients. Auth, retries, idempotency, and typed responses handled for you.
Command-line client for one-off queries, schema migrations, and scripted backups.
Step-by-step guides for inserts, schemas, queries, backups, and restoration in the managed console.
Region pinning, tier choice, single-tenant compute, sync follower, managed TLS, managed DNS.
Backups, point-in-time recovery, metrics, audit log, failover.
Auth, errors, limits, fixes.
The platform reference - things you need once, then come back to when something breaks.
Bearer tokens - how to get one, store it, rotate it, and what to do if it leaks.
Per-token limits (1,000/min default), 429 handling, and Retry-After.
Catalog of error codes - 4xx and 5xx - with cause, recovery, and SDK retry policy.
Common problems organized by symptom, with the fix alongside.
Every endpoint - schemas, rows, sql, vector, fts, graph, ask, migrations, replication, health. Bearer auth, idempotency keys, rate-limit headers.
@originchain/mcp-server - drop into claude_desktop_config.json and your AI agent can ask, SQL, vector-search, FTS, and list schemas on your tenant.