Most people do not need another vague AI list. They need a practical path from idea to working system:
- retrieve trusted context
- generate grounded answers
- evaluate outputs
- scan safety risks
- plan agent workflows
- ship with tests and CI
This repo is small enough to understand, but structured like a serious open-source project.
npm install
npm run checkRun demos one by one:
npm run demo:rag
npm run demo:evals
npm run demo:safety
npm run demo:agent
npm run eval:report
npm run build && node dist/src/eval-report-cli.js --jsonRun the website:
npm run siteThen open http://localhost:4173.
| Module | What It Teaches | Working Code |
|---|---|---|
| RAG | Retrieval before generation, citations, confidence | src/lab.ts |
| Prompt Evals | Expected behavior, forbidden claims, scoring | src/lab.ts |
| Safety Scanner | PII, legal, medical, financial, self-harm risk | src/lab.ts |
| Agent Planner | Multi-step tool workflows and human handoff | src/lab.ts |
| Production Basics | CI, tests, docs, issue templates, roadmap | .github/, tests/ |
=== Generative AI Engineering Lab ===
rag: cited answer with confidence
evals: prompt quality test passed
safety: high-impact financial risk detected
agent: five-step workflow generated
src/ TypeScript implementation
site/ Static website
tests/ Smoke tests
curriculum/ Learning path
prompts/ Reusable prompt templates
evals/ Prompt evaluation cases
datasets/ Sample local knowledge base
outputs/ Reusable artifacts
docs/ Roadmap, architecture, contribution ideas
.github/ CI, issue templates, PR template
The course path is intentionally practical:
- GenAI foundations
- Prompt engineering
- RAG systems
- Agentic workflows
- Evals and safety
- Production patterns
Every phase should produce an artifact: a prompt, eval, dataset, agent spec, or code change.
- Add embedding-based retrieval.
- Add OpenAI/provider adapter while keeping mock/local mode.
- Add more eval cases.
- Add a small browser UI.
- Add MCP server example.
- Add lesson quizzes.
- Add hosted demo.
Current release: v0.1.0
Start with docs/good-first-issues.md.
The best first PRs:
- Add one lesson.
- Add one eval case.
- Add one sample dataset.
- Improve RAG ranking.
- Add a small CLI command.
MIT. Fork it, learn from it, build on it.