Skip to content
AskTable

Documentation feedback

Current pageManage data sources/en/data/manage

0 / 5,000

Your feedback will be sent to the maintenance team.

Go to console
Go to console
AskTable
Go to console

Build agents

Manage data sources, files, and training sets

Change connections and table selections, manage files, training sets, and metadata, and delete data sources.

After a data source is created, you can change its connection and table selection, manage uploaded files, maintain the training set, and import or export metadata in bulk on its details page. This requires a project owner or project administrator.

Entry: main navigation on the left → “More” → “Data sources” → click a data source.

Details page

  • Top bar: status icon, main action button (“Reselect tables” for databases, “File management” for Excel), and “Settings”. The status is available, syncing, initializing, or unavailable; click the status icon to see the last sync time and error details, and on errors you can “Reinitialize” or “Resync”.
  • Left side: “Basic information”, “Training set”, and the database and table tree.
  • Basic information: change the name and description (description up to 255 characters); they save when you leave the box.

Change the connection

“Settings” → “Connection configuration” → “Edit”. Leave the password empty to keep it unchanged. Click “Test connection” at any time.

On the same page you can set the “Query timeout (seconds)” from 1 to 300 seconds; by default it follows the global setting (30 seconds).

Change the table selection

Click “Reselect tables” to choose again; synced tables are selected by default. You cannot reselect tables while syncing.

When one table's structure changes, you do not need to redo the whole data source: on that table's “Field structure” page, click “Resync”. It rereads only that table's structure and statistics and does not overwrite notes written by people.

Manage files

For Excel / CSV data sources, click “File management” to add files and preview, download, or delete existing ones, then click “Save changes”. Deleted files are removed permanently after saving.

Training set

A training set contains “question + correct SQL” examples that help the agent with questions hard to infer from table structures. They come from two sources: added manually, and added automatically when users like an answer.

In “Training set” on the left, click “Add training data” and enter the user question and the correct SQL. Each item can be enabled or disabled individually.

The SQL is checked on save:

  • It must be a read-only query that can be parsed.
  • SELECT * is not allowed.
  • Table names must include the schema, such as sales.orders, and the table must be in the metadata.
  • User questions cannot repeat within one data source.

Good candidates for the training set are complex queries with a fixed pattern, such as special joins or formulas. General definitions belong in table and field notes or business documents.

Export and import metadata

“Settings” → “Metadata”:

  • Export: download a JSON file with field descriptions, field visibility, and training data.
  • Import: upload a JSON file. Field descriptions and visibility are overwritten, and training data is appended without deleting existing items. Entries whose database, table, or field cannot be found are skipped and listed.
  • Export YAML: export entities and dimensions as dbt semantic layer YAML.

To change field descriptions in bulk, export, edit curr_desc in an editor, and import again. For file data sources, the database name is system-generated (such as file_abc1), not the file name; keep it unchanged.

Delete a data source

“Settings” → “Danger zone” → “Delete data source”, or delete from the card menu in the data source list. Deletion cannot be undone, but it removes only the data source and its configuration in AskTable, not the database or original files. Make sure no agent still uses it before deleting.

Common issues

SymptomCauseAction
Processing never finishesMetadata parsing is queued or runningWait; if it does not change for a long time, click the status icon to view the error
Metadata parsing failsConnection problem or file format problemCheck the error details; file data sources can “Reinitialize”
Some sheets were not importedThe sheets could not be parsedFix the file according to the reasons in the status dialog and upload again
“Reselect tables” is unavailableSyncing is in progressWait for the sync to finish
Training data cannot be savedThe SQL failed the checksMake sure it is read-only, does not use SELECT *, and includes schemas in table names
Import reports skipped entriesDatabase, table, or field names in the file do not match the data sourceCheck the listed missing items

Next steps