Lesson overview

Generate answers with checked citations

Generate answers with checked citations — RAG with local embeddings. Treat retrieved text as data; Save answer.mjs; Verify claim-level support. Practical assignment: Lab evidence.

Demo edition. The materials are undergoing editorial review.

Topics covered

  • Treat retrieved text as data
  • Save answer.mjs
  • Verify claim-level support

Practical assignment

Lab evidence

The full lesson is available as part of the course.

Continue to learning

Course outline

  1. Create a traceable corpus
  2. Chunk without losing meaning
  3. Generate and store local embeddings
  4. Retrieve and inspect ranked evidence
  5. Generate answers with checked citations
  6. Evaluate retrieval and maintain the index