Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

AI Evaluations Course Project: Recipe Chatbot

Current status: Complete


Personal Progress

  • What I learned: Comprehensive AI evaluation techniques including prompt engineering, systematic error analysis (open/axial coding), LLM-as-Judge methodologies, and RAG/retrieval system evaluation
  • What I wish I had done differently: Worked through building my own evaluation tool to use for the homework assignments
  • What I am most proud of: Implementing an integration with BrainTrust for tracing and eval logging
  • What I want to learn next: Building my own evaluation tool to use in future AI projects

Certificate of Completion

Description

Building reliable AI systems requires more than just good prompts—it demands systematic evaluation. This project is the practical implementation of Maven's AI Evaluations Course taught by Parlance Labs (course link), focused on teaching industry-standard techniques for evaluating and improving LLM-based applications.

The course uses a Recipe Chatbot as the vehicle for learning practical evaluation techniques. Through 5 progressive homework assignments, you learn to move from basic prompt engineering to sophisticated failure analysis, automated evaluation with LLM judges, retrieval system assessment, and agent state transition analysis. Each homework builds on the previous one, creating a comprehensive evaluation toolkit.

The Recipe Chatbot itself is a conversational AI assistant that helps users find recipes based on their preferences, dietary restrictions, ingredients on hand, and cooking skill level. It combines natural language understanding, structured tool calling (customer profiles, recipe databases, web search), and creative response generation to provide personalized cooking suggestions.

How It Works

The evaluation pipeline demonstrates how systematic assessment improves the chatbot:

graph TD
    A[Recipe Chatbot v1] --> B[Generate Test Queries]
    B --> C[Collect Conversation Traces]
    C --> D[Manual Error Analysis - HW2]
    D --> E[Define Failure Taxonomy]
    E --> F[Create LLM Judge - HW3]
    F --> G[Automated Evaluation at Scale]
    G --> H[Add RAG Retrieval - HW4]
    H --> I[Evaluate Retrieval Quality]
    I --> J[Analyze State Transitions - HW5]
    J --> K[Identify Systematic Weaknesses]
    K --> L[Iterate & Improve]
    L --> A
Loading

Here's an example conversation showing the chatbot in action:

User: "What vegetarian high-protein meal can I cook tonight with chickpeas?"

Assistant: "Let me help you find a delicious vegetarian meal that's high in protein using chickpeas! Here are a couple of great options:

1. Chickpea Curry

  • High protein from chickpeas (15g per cup)
  • Pair with brown rice or quinoa for complete protein
  • Ready in 30 minutes
  • Ingredients: Chickpeas, coconut milk, tomatoes, spinach, curry spices

2. Mediterranean Chickpea Bowl

  • Roasted chickpeas with tahini dressing
  • Fresh vegetables and quinoa
  • 25g protein per serving
  • Prep time: 25 minutes

Would you like a detailed recipe for either option, or would you prefer something else?"

This demonstrates the chatbot's ability to:

  • Understand dietary constraints (vegetarian)
  • Prioritize user requirements (high protein)
  • Work with specified ingredients (chickpeas)
  • Provide structured, actionable suggestions
  • Offer follow-up engagement

Homework Overview

HW1: Basic Prompt Engineering

Learned systematic prompt structure (role, rules, output format), diverse test case design covering edge cases and dietary restrictions, and baseline performance measurement through bulk evaluation.

HW2: Error Analysis & Failure Taxonomy

Learned qualitative analysis methods (Open & Axial Coding) adapted from Grounded Theory. Discovered common failure modes: hallucinated recipes, dietary violations, overcomplicated responses, incomplete tool planning, and context loss in multi-turn conversations.

HW3: LLM-as-Judge Automated Evaluation

Learned to scale manual evaluation to automation using LLMs as judges with statistical rigor. Mastered confidence intervals, bias correction for systematic judge errors, and Train/Dev/Test splits for judge development using the judgy library. diff

HW4: RAG/Retrieval System Evaluation

Built and evaluated BM25 retrieval systems with synthetic test data. Learned IR metrics (Recall@k, MRR) and query rewriting techniques to improve retrieval performance.

HW5: Agent Failure Analysis

Modeled agent as state machine and analyzed failure transitions using heatmaps. Key finding: GetRecipes was the most common failure (34/100), with failures clustering in the "middle valley" between intent understanding and response delivery. Complete Analysis: recipe-chatbot/homeworks/hw5/ANALYSIS.md


Additional Enhancements

Beyond the core curriculum, I integrated BrainTrust for distributed tracing and evaluation logging. This wasn't required for the course but significantly improved my ability to track LLM calls, debug conversation flows, and maintain a production-quality evaluation infrastructure. The integration provides:

  • Automatic trace logging for every LLM call
  • Conversation-level tracking with metadata
  • Visual debugging of multi-turn dialogues
  • Performance monitoring across different models
  • Foundation for future A/B testing and regression detection

Course Information

Course: AI Evaluations Course Provider: Maven (Parlance Labs) Link: https://maven.com/parlance-labs/evals Format: Self-paced with video walkthroughs and interactive notebooks Duration: ~5-10 hours per homework (25-50 hours total)

What You'll Learn:

  • Systematic prompt engineering with structured evaluation
  • Qualitative analysis methods (Open & Axial Coding) adapted for AI
  • Automated evaluation using LLM-as-Judge with statistical rigor
  • Information retrieval system construction and evaluation
  • RAG pipeline implementation and optimization
  • Agent behavior modeling through state machines
  • Failure pattern analysis and visualization
  • Statistical uncertainty quantification for evaluation metrics

Who Should Take This:

  • AI/ML engineers building LLM applications
  • Product managers overseeing AI features
  • QA engineers responsible for AI system testing
  • Researchers studying LLM reliability
  • Anyone wanting to move beyond "vibes-based" AI assessment

Acknowledgments

  • Maven/Parlance Labs: For creating this comprehensive, practical evaluation course

License & Usage

This is a personal learning project completed as part of the AI Evaluations Course.

Feel free to reference this as an example of completed coursework, but please respect the course creators' intellectual property and complete your own implementations if you're taking the course.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages