Authorization notice. AI Engineer Notebooks is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA backend engineer assigned a first document Q&A feature who needs to show it works before it ships.
The problemA plain model call invents answers about your documents, and a demo that looks right often fails on real questions.
The outcomeA working retrieve, augment, generate loop with a golden set of questions and a measured pass rate.
What you need first
- A Google account to open Colab notebooks
- A free Groq API key from console.groq.com (no credit card needed)
- The key saved as a Colab secret, as the setup notebook describes
- Basic Python and comfort reading API responses
Steps
- Open the setup notebook at 00-setup/00-environment.ipynb from the Colab badge and add your Groq key as a Colab secret.
- Run 03-rag/00-what-is-rag.ipynb to see the retrieve, augment, generate loop in about 15 lines.
- Work through 03-rag/01-embeddings-retrieval.ipynb until retrieval returns the right passages for your questions.
- Open 04-evals/01-golden-sets.ipynb and build a golden set of questions with expected answers for your RAG system.
- Run 03-rag/04-why-rag-fails.ipynb on any bad answers to find out whether retrieval or generation is the bottleneck.
Prompt for your agent
Using the repo calmrocks/ai-engineer-notebooks, work through 03-rag/00-what-is-rag.ipynb and 04-evals/01-golden-sets.ipynb against the documents in <placeholder folder>. Report the golden-set pass rate and list the three questions that failed. Verify that each failed answer is checked against the retrieved passages, not only the final text.
Caveat. The notebooks use the Groq API on Colab, so you will need your own free Groq key and a Google account before the first run.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for calmrocks/ai-engineer-notebooks and "Build a RAG question-answering prototype with a golden set"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer