Feat: Add comprehensive LLM evaluation & reporting pipeline #122
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a modular Jupyter notebook workflow designed to evaluate production chatbot logs. It automates the assessment of model performance against human labels and reference scripts, providing granular insights into Extraction Accuracy, Question Consistency, and User Response Appropriateness.
Key Features
Automated Evaluation: Implements LLM-as-a-Judge (using GPT-4o) to score semantic consistency and response validity alongside deterministic extraction accuracy.
Demographic Enrichment: Integrates user strata data (Age, Gestation) to enable bias detection and detailed performance segmentation.
Visual Reporting: Generates executive summary tables, multi-metric bar charts, and error distribution plots (using Matplotlib) for global and flow-specific insights.
Sequence Analysis: Adds a specific verification step to prove the randomness of question ordering in the Onboarding flow.
Artifacts
evaluation_pipeline.ipynb: The main driver notebook containing the 4-step analysis pipeline.detailed_metrics_export.csv: A generated granular report for external BI tools.Next Steps