How RAG works
From course materials to grounded answers
RAG combines generative AI with the knowledge sources an educator chooses, so AI support in a course is controllable, explainable and context-aware.
The workflow
Four steps of a course-specific RAG application
-

1Retrieve
A learner’s question searches the course knowledge the educator has curated — lecture notes, slides, papers, exams — and returns the most relevant passages.
-

2Augment
The retrieved passages and the learner’s profile are added to the prompt, so institutional knowledge shapes a relevant, context-aware response.
-

3Generate
A European LLM writes the answer from that context and shows the sources it used, so learners can check every claim.
-

4For education
Educators design and validate each step in the RAG4Edu Toolbox — with GDPR and AI Act checks, and without advanced AI skills.
Why it can be trusted in a course
- Grounded in sourcesAnswers are built on the knowledge base the educator curated for the course.
- Citations providedLearners see which passages an answer draws on and can check them.
- European and compliantEU-based LLMs and EuroHPC infrastructure, GDPR-compliant design, aligned with the EU AI Act.
- Open and reusablePipeline, toolbox and templates are published under open licences.
Tools
What RAG4Edu builds
The project develops open components that educators and institutions can reuse.
