Module 6: Synthesis
[← Back: Cost Model](05_cost_model.md) | [Back to Project →](README.md)
← Back: Cost Model | Back to Project →
Module 6: Synthesis
Bring everything together and complete your portfolio artifacts.
What You've Built
Over the previous modules, you've:
- Framed the problem — Understood the scenario, constraints, and failure modes
- Defined success — Created metrics before building
- Made architecture decisions — Documented trade-offs explicitly
- Built evaluation infrastructure — Created the ability to measure
- Modeled costs — Understood the real economics
Now it's time to synthesize this into deliverables.
Portfolio Artifacts Checklist
Required Artifacts
Complete these to finish the project:
| Artifact | Location | Status |
|---|---|---|
| Architecture Decision Record | artifacts/your_adr.md | [ ] |
| Evaluation Configuration | artifacts/your_eval_config.yaml | [ ] |
| Cost Model | artifacts/your_cost_model.md | [ ] |
| Golden Dataset | artifacts/your_golden_dataset.yaml | [ ] |
Artifact Quality Criteria
Your ADR should:
- Document at least 3 architectural decisions
- Include alternatives considered for each
- Explain rationale clearly
- Note what would change each decision
- Be understandable by someone not in the room
Your Evaluation Config should:
- Define retrieval metrics and targets
- Define generation metrics and targets
- Specify system metrics (latency, cost)
- Include drift detection thresholds
- Be runnable (or close to it)
Your Cost Model should:
- Calculate per-query cost
- Project monthly costs for 3 scenarios
- Include maintenance estimates
- Calculate or estimate ROI
- Be presentable to stakeholders
Your Golden Dataset should:
- Include 20+ examples minimum
- Cover all query categories
- Include ground truth for retrieval
- Include reference answers
- Be usable for automated evaluation
Synthesis Exercise
The Stakeholder Presentation
Imagine you're presenting this project to leadership. Complete this template:
Project: Documentation Assistant RAG System
Problem: [What problem are we solving? 2-3 sentences]
Solution: [What did we build? 2-3 sentences]
Key Metrics:
| Metric | Current Performance | Target |
|---|---|---|
| Retrieval Precision | ||
| Generation Quality | ||
| P95 Latency | ||
| Cost per Query |
Architecture Highlights:
- Chunking: [Your choice and why]
- Embedding: [Your choice and why]
- Generation: [Your choice and why]
Costs:
| Category | Amount |
|---|---|
| Build (one-time) | $ |
| Monthly (expected) | $ |
| Year 1 Total | $ |
ROI: [Expected return or how you'd measure it]
Key Risks:
- [Risk 1 and mitigation]
- [Risk 2 and mitigation]
- [Risk 3 and mitigation]
Next Steps:
- [What happens next?]
- [What decisions are needed?]
- [What resources are required?]
The Technical Handoff
Imagine you're handing this project to another engineer. What would they need to know?
System Overview: [Architecture diagram + 2-3 sentences]
How to Run Evaluation:
# Commands to run evaluation
How to Monitor:
- [What to watch]
- [When to alert]
- [How to troubleshoot]
Known Limitations:
- [Limitation 1]
- [Limitation 2]
- [Limitation 3]
Future Improvements:
- [Improvement 1 and expected impact]
- [Improvement 2 and expected impact]
Self-Assessment
Competency Check
For each competency, rate yourself honestly:
| Competency | Before Project | After Project | Evidence |
|---|---|---|---|
| Systems Design | 1-5 | 1-5 | [What demonstrates this?] |
| Evaluation | 1-5 | 1-5 | [What demonstrates this?] |
| Safety | 1-5 | 1-5 | [What demonstrates this?] |
| Output Review | 1-5 | 1-5 | [What demonstrates this?] |
| Governance | 1-5 | 1-5 | [What demonstrates this?] |
Reflection Questions
Answer honestly:
-
What was the hardest part of this project?
-
What would you do differently if starting over?
-
What surprised you?
-
What do you still not understand well?
-
How would you explain "evaluation-first design" to a colleague?
What You've Learned
If you've completed this project thoroughly, you can now:
Technical Skills
- Design a RAG system with explicit trade-offs
- Define and compute retrieval metrics
- Use LLM-as-judge for generation evaluation
- Build golden datasets for regression testing
- Detect drift in AI systems
Professional Skills
- Document architectural decisions formally
- Model costs for AI systems
- Communicate technical trade-offs to stakeholders
- Make defensible recommendations
Mental Models
- "Evaluation is not a phase, it's a design constraint"
- "Every decision is a trade-off"
- "Cost is part of the architecture"
- "You can't improve what you can't measure"
Going Deeper
If You Want More Practice
- Expand your golden dataset to 50-100 examples
- Implement drift detection that runs automatically
- A/B test two retrieval strategies and compare
- Add semantic caching and measure impact on cost/quality
- Build a dashboard that visualizes metrics over time
Related Projects
Now that you've completed this project, you're ready for:
- Agent with Guardrails — Apply evaluation thinking to agents
- Cost-Benefit Analysis — Go deeper on decision-making
- Health Reasoning Agent — RAG for high-stakes domains
Additional Resources
Evaluation Frameworks:
- RAGAS — RAG evaluation framework
- TruLens — LLM application evaluation
- Inspect AI — AI safety evaluations
Cost Optimization:
RAG Patterns:
Final Checklist
Before marking this project complete:
Artifacts
- ADR completed with 3+ decisions
- Evaluation config is complete and runnable
- Cost model has all sections filled
- Golden dataset has 20+ examples
Understanding
- Can explain trade-offs in your architecture
- Can calculate cost per query
- Can describe how you'd detect drift
- Can present to stakeholders
Reflection
- Completed self-assessment honestly
- Identified areas for improvement
- Know what project to do next
Completion
Congratulations on completing the RAG Evaluation Pipeline project.
You've practiced the most important skill in AI systems development: defining and measuring success before declaring victory.
This skill transfers to every AI project you'll work on. The specific tools will change — embeddings, models, frameworks — but the discipline of evaluation-first design remains.
What's Next?
Return to Projects Overview to choose your next project, or explore the Patterns Library to see how evaluation-first thinking applies across domains.
Project completed: [DATE]
Time invested: [HOURS]
Key learning: [ONE SENTENCE]
Related Documents
AWS Certified Generative AI Developer – Professional (AIP-C01)
These are my personal study notes for the **AWS Certified Generative AI Developer – Professional (AIP-C01)** exam.
📈 Trading RAG Mentor
> **Personal AI Trading Mentor** — A custom Retrieval-Augmented Generation (RAG) system built on momentum & price action video transcripts. Ask questions and get answers grounded exclusively in your own trading knowledge base.
Thesis Falsifier
A tool to aid researchers in assessing whether research papers adhere to scientific best practices. This application uses AI to automatically generate falsification forms, helping researchers verify the scientific robustness of their work across disciplines including social sciences and natural sciences.