When to use table queries
Take this table of cars:
“What is the most common color for cars produced between 2000 and 2010?” is a good fit for a table query. “What is the best car to buy if I live in New York?” is a better fit for search, because the answer is in the descriptions.
Where tables come from
- Folders: upload a CSV or Excel (.xlsx) file as a table, or create tables with the API (Upsert a table).
- Connections: Dust creates tables from Google Sheets (each tab becomes a table), Microsoft Excel files, Notion databases, Salesforce, Snowflake, and BigQuery.
Set up table queries
1
Add knowledge
In the Agent Builder, in Capabilities and knowledge, click Add knowledge.
2
Select tables
Pick a Space and select one or more tables. Select a whole spreadsheet to add all of its tabs. Click Next.
3
Choose Analytics
Pick Analytics (tables, spreadsheets…), describe what the tables contain, and save the agent.
The agent uses the tables selected when you save it. When you select a spreadsheet or a folder, Dust adds the tabs or tables directly inside it at that moment. Tables in nested subfolders aren’t included. If you add tabs or tables later, edit the agent, select them, and save.
Describe your tables
A clear description helps the agent write better queries. For a table like this one:
A good description would be: “Extract from our CRM. Each row is a potential customer, with the date of our last meeting and their stage in the sales pipeline.”
For BigQuery, you can reuse the table and column descriptions set in BigQuery. Turn this on in the BigQuery connection settings.
Join tables
An agent can use several tables at once and join them, even when they come from different data sources. Select all the tables when you set up the knowledge, then explain in the instructions how they relate. For example, with ausers table (name, email) and an orders table (product_name, user_email), add this to the instructions:
Related
Knowledge
Compare the ways an agent can use your data.
Search data sources
Search text documents by meaning.
Folders
Upload CSV files and create tables.
Upsert a table
Create and update tables with the API.