Identifying which source documents a RAG application actually needs
Selecting the right source documents is the foundation of a RAG application's quality — retrieval can only surface knowledge that exists in the corpus, and irrelevant or low-quality sources degrade both retrieval precision and generated answer accuracy. Engineers must scope document selection to match the target use case, domain, and expected user queries before building embeddings or a vector index.
1 · Learn the must-know
- Source documents must directly cover the domain and question types the application is expected to answer; gaps in coverage cause the LLM to hallucinate or return 'I don't know' responses.
- Prefer authoritative, up-to-date, and well-structured sources (e.g., official documentation, curated knowledge bases) over noisy, redundant, or outdated content, since low-quality text propagates into retrieved context.
- Document format and structure matter — highly structured or semi-structured sources (tables, FAQs, structured docs) often need different parsing/chunking strategies than unstructured prose to preserve meaningful context.
- Redundant or near-duplicate documents can dilute retrieval quality by causing the vector search to return multiple similar-but-shallow chunks instead of diverse, relevant information.
- Data licensing, access permissions, and governance (e.g., Unity Catalog access controls) must be considered when selecting sources, since RAG applications should only retrieve documents the querying user is authorized to see.
- Iterative evaluation of retrieved chunks against sample queries is necessary to confirm the selected source set actually contains the knowledge needed, rather than assuming coverage based on document titles or metadata alone.
2 · Check your understanding
A Generative AI Engineer is building a RAG-based chatbot to answer employee questions about paid time off (PTO) accrual and rollover rules. The current knowledge base contains only the company's high-level HR handbook, which summarizes PTO policy in two sentences. Users report that specific accrual-rate and rollover-cap questions go unanswered or are answered incorrectly. Which source document should be added to the corpus to resolve this gap?
What you have tried across Databricks GenAI Engineer's objectives, not a readiness score.
Design Applications10.71% of the exam*0 of 6 tried
Data Preparation14.29% of the exam*0 of 8 tried
Application Development23.21% of the exam*0 of 13 tried
Assembling and Deploying Applications26.79% of the exam*0 of 15 tried
Governance7.14% of the exam*0 of 4 tried
Evaluation and Monitoring17.86% of the exam*0 of 10 tried
* Our estimate. Databricks publishes no section weights.
3 · Keep going
Ready for more? Take a weighted mock or try free practice questions.