Add knowledge to your agent

Add knowledge to your agent
15 min
1. What are Knowledge sources?
Knowledge sources give your agents access to your internal data. When you add knowledge to an agent, you're connecting it to specific documents, folders, or databases.
Be intentional about data selection. Select only the folders and documents relevant to your agent's purpose. More data doesn't always mean better results - it can make your agent slower and less focused.
2. Processing knowledge
When adding knowledge to your agents, you will need to pick a knowledge processing method. Dust is smart and tries to infer the right method from the type of data provided, but you will sometimes need to make adjustments.
There are four different knowledge processing methods.
For unstructured data, those are:
For structured data, the method is Query Tables.
Let’s explore the difference between them!
2.1. Search - For knowledge retrieval agents
Search works in two steps:
- When asked a question, the agent identifies the top 10-20 most relevant chunks from your documents to answer;
- Then it uses those paragraphs as context to generate an answer
This process is called RAG (Retrieval Augmented Generation).
When to use Search: For finding information in unstructured data sources like documents, notes, emails, and meeting transcripts.
2.2. Include Data - for templates
Include Data ingests the entire document into the agent's context. The agent reads and learns the full content, not just excerpts.
When to use Include Data: For templates, brand guides, style guides, glossaries, database schemas, or any document where the entire content matters.
⚠️ Do not use Include Data for large document sets. It works best with small, specific documents that need to be referenced in full.
2.3. Extract Data - For structured extraction
Extract Data applies a defined structure (like a table with specific columns) to unstructured data.
When to use Extract Data: Less commonly used. For structuring unstructured data flows into tables.
2.4. Query Tables - For all structured data sources
Query Tables translates natural language questions into SQL queries to search structured data like spreadsheets and databases.
When to use Query Tables: For Excel files, CSV files, database tables, or any structured data with rows and columns.
Test Your Knowledge
Answer 5 questions — score 3 or more to pass
Ready to test your understanding of this chapter?