OriginChainDB documentation
Start with a database, add a few records and run a query. Then use SQL to filter rows, vector search to find similar content, graph queries to follow relationships, or full-text search to find words. Each guide explains the setup and the result you should expect.
- SQLFilter records
- VectorFind similar content
- GraphFollow relationships
- Full-textMatch words
Each model has its own setup. The guides below show what to prepare and how to query it.
Start here
Create your first database
Run your first query
API reference
Connect an application
- Get a working connectionCreate an instance or use an existing one.
- Save a few known recordsFollow the quickstart with data you can verify.
- Choose the query modelUse values, meaning, words or relationships to guide your choice.
- Open the detailed referenceCheck request fields, permissions and limits before expanding.
Choose the query your task needs
| Query model | What it helps you do | Read next |
|---|---|---|
| SQL | Filter records, join tables and calculate totals. | SQL guide |
| Vector | Find items with similar meaning using numerical representations called embeddings. | Vector search |
| Graph | Follow relationships between records, such as a person and their accounts. | Graph guide |
| Full-text | Find words and phrases in indexed text. | Full-text search |
Each query model has its own setup and interface. Adding a table row does not automatically create every search index. Give the same record the same ID in each model so your application can connect its results.
Build on what you know
Eight SDKs are available on GitHub. Follow the setup instructions for the version you choose; new 1.0 source examples are not installed by the older npm and PyPI releases.
- Connect DBeaver, pgAdmin or another SQL client.
- Move existing PostgreSQL data.
- Check MCP availability for an AI client.
- Review authentication and permissions before connecting a shared application.
If you are evaluating the product, start with choosing a query. If you are implementing it, follow the quickstart and then open the relevant API endpoint.