5, 10 or 20 seats+ for your team - learn more
In this liveProject, you’ll build the generation layer of a document-grounded Q&A system that lets users interrogate the EU AI Act and get back answers with real citations, not hallucinations. Using Pydantic AI with OpenRouter and the free Mistral Small 3.1 model, you’ll craft a system prompt that keeps the LLM strictly on-context, implement smart context injection for top-ranked chunks, and add source attribution so every claim links back to a specific passage.
This liveProject is for learners who want to build the generation side of a RAG pipeline: turning retrieved context into accurate, citation-supported answers with Pydantic AI and OpenRouter’s free tier.
Prompt Engineering for Context-Aware Q&A project for free