From 5c6aae7211f11964bce4f713875603d9a7f1d4ff Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Thu, 22 Oct 2026 18:43:33 +0700 Subject: [PATCH] docs(features): AI schema context fills its table budget by relevance --- features/ai-assistant.mdx | 2 +- security/privacy.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/ai-assistant.mdx b/features/ai-assistant.mdx index 1c6781d..2d57989 100644 --- a/features/ai-assistant.mdx +++ b/features/ai-assistant.mdx @@ -162,7 +162,7 @@ Every message carries a system prompt built from **Settings > AI > Context**, so | Setting | Default | What it sends | |---------|---------|---------------| -| Include database schema | On | Columns and foreign keys for up to **Max schema tables** tables | +| Include database schema | On | Columns and foreign keys for up to **Max schema tables** tables, the ones your question and current query use first | | Include current query | On | The editor's text, truncated at 2,000 characters | | Include query results | Off | The rows in the results grid | | Max schema tables | 20 | | diff --git a/security/privacy.mdx b/security/privacy.mdx index 254ebf4..d25dd46 100644 --- a/security/privacy.mdx +++ b/security/privacy.mdx @@ -59,7 +59,7 @@ One provider is marked active and answers inline suggestions and the editor acti A chat turn carries: - The database type and the name of the database you are connected to. -- The schema, while **Include database schema** is on (the default): table names, estimated row counts, column names and types, primary key and NOT NULL flags, DEFAULT values, and foreign keys, for up to **Max schema tables** tables (20 by default). +- The schema, while **Include database schema** is on (the default): table names, estimated row counts, column names and types, primary key and NOT NULL flags, DEFAULT values, and foreign keys, for up to **Max schema tables** tables (20 by default). With more tables than that, the ones your question and current query use come first, and the rest are sent as a count, not by name. - The query in the current tab, while **Include current query** is on (the default), truncated at 2,000 characters. - Result rows, only if you turn on **Include query results**, which is off by default. It attaches the first 10 rows of the current result, each value cut at 200 characters. - The connection's [AI Rules](/features/ai-assistant#per-connection-ai-rules) text, if you wrote any.