By Team Edtoolkits · AI learning
Prepare retrieval test rows with useful expected phrases and distinguish a search test from an answer-quality evaluation.
Use the guide alongside the working tool.
Open Test and Improve Your RAG App →Explore the lesson
Write four or five test questions with the phrase each answer must contain.
Run a script that scores whether the right chunk comes back.
Change chunk size, overlap or the number of results one at a time and compare scores.
A comparison to try
Write one question with a short expected phrase from its correct source passage. Compare it with a row missing its expected text, and inspect the generated test JSON before using it locally.
Read the result
A specific expected phrase makes a wrong retrieval easier to notice than a common word found in many passages. The row checker catches incomplete entries; the local retrieval test checks returned text, not a generated answer's reasoning.
A mistake to avoid
This written tutorial does not execute the tests in the page. Passing retrieval tests leaves other questions open, including unsupported answers, absent evidence and document permissions. Keep a separate set of questions for final evaluation.
Teaching model and privacy
A written tutorial: nothing here runs a model in your browser. The test checks search only, on your own small question list, so it is a quick guide and not a proof of quality. Commands change as tools update, so check each project's official documentation if one fails.
Ready to apply this workflow?
Try Test and Improve Your RAG App →Explore a related workflow
- Choose a course entry point and verify saved progress
Use prior knowledge to select a starting chapter while distinguishing local progress from an account or a qualification.
- AI Tokens: Inspect Pieces, Spaces and Stable Teaching IDs
Compare common words, rare words and numbers without using the playground as an exact provider counter.
- Inspect candidates before continuing text
Compare normalized next-word probabilities with the choices sampled from them.
- Choose complexity using held-out error
Compare training and test curves before calling a detailed fit an improvement.
Found unclear instructions or an unexpected result? Contact Team Edtoolkits.