Skip to content ReleaseVezual Beta is in the Plugins Console

Ask AI

Ask in your words.
See the query it runs.

Turn a question about your tables into database results. Keep the selected data and executed query plan visible, so your team can understand the answer.

Question to resultAsk AI
Your questionWhat do you want to find?
Context from your selected tables
01Query plan
Read the tablesApply the conditionsReturn the result
02Database rows
Ready for your application
Illustrative flow · ask, inspect, understand

Make data questions
easier to answer.

Help your team get closer to the records behind a decision.

01

Start with a question.

Give people a way to explore tables using the words they use at work, with results returned from the database.

02

Keep the scope clear.

Choose relevant tables so the question is interpreted in the context your application intends.

03

Understand the result.

Request the executed query plan alongside the rows to inspect the tables, filters and operations behind the answer.

A question with context

Be specific.
Keep the answer useful.

A clear question names the data, the condition and the result you want. Ask AI uses that context to compile a query against your registered tables.

Explore table scoping
See a minimal request

A scoped question with the query plan included in the response.

{
  "nl": "Count records in activity.events",
  "schemas": [
    "activity.events"
  ],
  "show_plan": true
}
Illustrative request · use your own registered table
  1. Choose the relevant tables

    Pass the table scope with your question. This gives the compiler a focused set of fields and relationships to consider.

  2. Ask one clear question

    Name the quantity, filter or grouping that matters. Split unrelated requests into separate questions.

  3. Inspect the plan and the rows

    Confirm the intended tables and conditions were used. Compare the result with familiar data before using it in an application workflow.

From a question to a feature

Bring Ask into
your application.

Send a question through the API, receive database rows and include the executed plan when you need to explain the result.

Built-in rules first.

Recognized questions compile directly. Other questions can use the language model configured on your instance.

Reuse matching plans.

The response reports whether a plan was reused. Reuse depends on the schema and authorization context.

Before you build

A little more
about Ask AI.

Explore the documentation
Is every question sent to a language model?

No. Matching cached plans can be reused, and built-in rules handle recognized questions. Questions that need model assistance are sent to the provider configured on your instance. Consider the question and selected data context when choosing that provider.

Can I inspect how the answer was produced?

Yes. Set show_plan to request the executed plan with the result. It helps you check the selected tables, filters and operations. The plan is returned after execution.

What happens if I do not select tables?

The compiler considers the catalog allowed by the active database identity. Giving it a relevant table scope reduces ambiguity, especially in a larger catalog.

Build with OriginChainDB

Make your next question a query.