Datasources
Manage catalog and knowledge base for each datasource.
Each datasource can have its own context.
This lets Querio understand one datasource differently from another, even when the same business term appears in both places.
Catalog
The catalog is a JSON-backed map of your datasource.
On the Context page, pick a datasource in the sidebar, then a schema under Tables. The schema view lists its tables. Click a table to see its columns and joins. Conceptually it is still one structured catalog file.
You can edit descriptions directly in the table rows, or click a table or column to edit it in the panel on the right. Switch to Code to edit the same catalog as JSON. In Code, only descriptions and visible can change; names, types, and joins are read-only.
The catalog includes:
- Schemas
- Tables
- Columns
- Joins
- Descriptions
- Whether each schema, table, and column is visible to the agent
Refreshing the catalog
When your underlying database schema changes, use the Refresh button on a schema or table to sync those changes. Querio will only refresh tables you have already added to your catalog, rather than pulling the entire database again.
Visibility
Each schema, table, and column has a Visibility switch. When it is on, it is included in the schema Querio gets at the start of every session. When it is off, Querio does not get it up front and finds it by exploring the database instead. Hidden tables are struck through in the sidebar.
Adding tables
Click + in the Tables header to pick schemas or tables from your database and add them to the catalog.
Schemas
Schemas group tables inside a datasource.
Use schema descriptions to explain the broad purpose of a schema and when Querio should use it.
Tables
Tables are the core objects Querio queries.
Use table descriptions to explain what the table represents, what grain it has, and when it should or should not be used.
Columns
Columns describe the fields inside a table.
Use column descriptions to explain business meaning, expected values, and any caveats.
Joins
Joins explain how tables relate to each other.
Good join context helps Querio avoid incorrect joins and makes multi-table analysis more reliable.
Knowledge Base
The Knowledge Base contains context Querio reads to understand your business and data, as well as reusable building blocks. To see a datasource's knowledge, pick the datasource in the Context sidebar and click Knowledge under it.
Click New entry, pick a type (SQL, Python, or Markdown), and fill in three fields:
- Name — a short name for the entry
- Description — what this entry covers and when it is useful
- Agent sees it — either Always or Only when relevant
Always means Querio loads this entry into every conversation automatically.
Only when relevant means Querio only uses it when it decides the content is relevant.
Use the menu next to an entry's title to rename, duplicate, or delete it.
Use Always for core definitions and rules your team applies constantly. Use Only when relevant for things that apply to specific topics or edge cases.
Examples of what to put in the Knowledge Base:
- Metric definitions
- Business rules
- Data caveats
- SQL examples
- Python examples
- Team-specific analysis notes
Frontmatter
Each Knowledge Base file starts with frontmatter that controls how Querio uses it. The format depends on the file type:
.mdfiles use a---block.sqlfiles use-- field: valuelines.pyfiles use# field: valuelines
Three fields are supported:
name— a short title for the filedescription— one-line summary of what the file coverscontext— eitheralwaysorreference
context: always means the full file body is included in Querio's prompt on every turn. Use this for rules, metric definitions, naming conventions, and hard constraints that must apply universally.
context: reference means only the file's name and description appear in the prompt index. Querio fetches the full content when a question matches. Use this for query templates, SQL examples, and situational context that only applies sometimes.
New files in the Knowledge Base default to context: reference to keep the prompt lean. Promote to context: always only when the content needs to apply on every single turn.
How Querio saves context for you
When you share a fact, correction, or hard-won query during an analysis, Querio will offer to save it to the Knowledge Base at the end of its response. It names the destination file and waits for your approval before writing anything.
You can decline. If you do, it won't offer again in that session.
Last updated on October 19, 2026