๐ Executive Architecture & Problem Statement
Production LLM and Agentic architectures fail in subtle, non-deterministic ways that traditional software unit testing cannot detect:
- RAG Retrieval Degradation: Search returns irrelevant or fragmented context chunks, inducing hallucinated synthesis.
- Agent Trajectory & Tool Drift: Prompt edits alter tool call order, cause infinite reasoning loops, or bypass permission boundaries.
- Safety & Prompt Injection: New model checkpoints or prompt alterations expose vulnerabilities to jailbreaks, toxic completions, and PII leakage.
- Regression in Model Migration: Swapping an LLM backend (e.g. GPT-4o, Claude 3.7, Gemini 2.5) introduces unexpected formatting breaks or metric drops.
Vishal-DeepEval acts as an end-to-end evaluation harness, unit test runner, and observability layer. It provides over 35+ production-tested metrics, an AST and LLM-as-a-judge scoring engine (G-Eval), synthetic golden generation, and native integration into CI/CD pipelines via Pytest and OpenTelemetry.
๐๏ธ Enterprise Architecture
ENGINEERING & CI/CD PIPELINE
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Test Case & Data Definition Layer โ
โ - LLMTestCase (Input, Actual, Expected, Context, Tools) โ
โ - ConversationalTestCase (Multi-turn dialogue turns) โ
โ - Synthesizer (Evolutionary Synthetic Golden Generation) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ OpenTelemetry & Tracing Harness โ
โ - Distributed Spans (LLM, Tool, Retrieval, Embedding) โ
โ - Native Framework Bridges: LangGraph, CrewAI, PydanticAI โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ RAG Triad & Text Metrics โ โ Agentic & Behavioral Engine โ
โ - Faithfulness โ โ - Tool Correctness & Recall โ
โ - Answer Relevancy โ โ - Tool Permission & Security โ
โ - Contextual Precision/Recallโ โ - Agent Loop Detection โ
โ - Hallucination & PII Leakageโ โ - Multi-Turn MCP Utilization โ
โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Scoring & Verification Core โ
โ - G-Eval (Rubric-driven weighted criteria evaluation) โ