docs/docs/genai/eval-monitor/ai-insights/ai-issue-discovery.mdx
import Tabs from "@theme/Tabs" import TabItem from "@theme/TabItem" import TabsWrapper from "@site/src/components/TabsWrapper"; import FeatureHighlights from "@site/src/components/FeatureHighlights"; import DAGLoop from "@site/src/components/DAGLoop"; import ConceptOverview from "@site/src/components/ConceptOverview"; import ImageBox from "@site/src/components/ImageBox"; import { Target, BarChart3, Bot, AlertTriangle, ThumbsUp, LineChart, GitBranch, Search, Lightbulb, FileText } from "lucide-react";
Automatically analyze traces in your MLflow experiments to find operational issues, quality problems, and performance patterns. The Analyze Experiment tool uses hypothesis-driven analysis to systematically examine your LLM application or AI agent's behavior, identify the most important problems, and create a plan for addressing them in the form of a comprehensive markdown report.
The Analyze Experiment command examines traces logged in an MLflow experiment to automatically discover:
<FeatureHighlights features={[ { icon: AlertTriangle, title: "Operational Issues", description: "Detect errors, timeouts, rate limiting, authentication failures, and performance bottlenecks" }, { icon: Target, title: "Quality Issues", description: "Identify overly verbose responses, inconsistent outputs, repetitive content, and inappropriate response formats" }, { icon: ThumbsUp, title: "Success Patterns", description: "Discover what's working well, effective tool usage, and high-quality interactions" }, { icon: LineChart, title: "Performance Metrics", description: "Analyze latency distributions, success rates, and error patterns" } ]} />
The tool generates a detailed markdown report with specific trace examples, quantitative evidence, and actionable recommendations for improvement.
The Analyze Experiment functionality is available through two methods:
<TabsWrapper> <Tabs> <TabItem value="mcp" label="MCP" default>If you have MLflow's MCP server configured, you can simply run:
/analyze-experiment
Run the analyze experiment command directly:
mlflow ai-commands run genai/analyze_experiment
Note: This command must be run inside a coding agent with MCP support. The agent will interactively guide you through the analysis process.
pip install 'mlflow>=3.4'<DAGLoop title="Analyze Experiment Workflow" circleSize={450} steps={[ { icon: GitBranch, title: "Setup & Authentication", description: "Configure MLflow connection", detailedDescription: "Connect to your MLflow tracking server (Databricks, local, or cloud) with appropriate credentials" }, { icon: Search, title: "Select Experiment", description: "Choose experiment to analyze", detailedDescription: "Browse and select the experiment containing traces you want to analyze for issues" }, { icon: Bot, title: "Identify Agent Purpose", description: "Understand agent capabilities", detailedDescription: "Automatically detect what your agent does, its tools, and data sources from trace patterns" }, { icon: Lightbulb, title: "Analyze Issues", description: "Test hypotheses systematically", detailedDescription: "Systematically analyze operational and quality issues through hypothesis-driven testing" }, { icon: FileText, title: "Generate Report", description: "Create actionable insights", detailedDescription: "Produce comprehensive markdown report with issues, recommendations, and improvement plans" } ]} />
The tool will ask you to configure authentication:
MLFLOW_TRACKING_URI (see environment setup guide)The tool examines trace inputs and outputs to understand:
You'll be asked to confirm or correct this understanding before analysis continues.
<ImageBox src="/images/genai/ai-issue-discovery/agent-purpose.png" alt="Agent Purpose Identification" width="90%"/>The tool systematically tests hypotheses about potential issues:
Operational Issues:
Quality Issues:
The tool generates a comprehensive markdown report containing:
Each generated report provides comprehensive insights into your application's behavior:
<ConceptOverview concepts={[ { icon: BarChart3, title: "Quantitative Metrics", description: "Key performance indicators including total traces analyzed, success rates (OK vs ERROR), latency statistics (average, median, P95), and error rate distributions" }, { icon: Target, title: "Issue Analysis", description: "Detailed breakdown of confirmed issues with problem statements, trace examples with inputs/outputs, root cause analysis, frequency assessment, and specific trace IDs for investigation" }, { icon: Lightbulb, title: "Actionable Recommendations", description: "Prioritized improvement suggestions with implementation guidance and expected impact of changes to help you systematically address identified problems" } ]} />