mirror of
https://github.com/Shubhamsaboo/awesome-llm-apps.git
synced 2026-07-16 23:44:06 -05:00
[PR #851] [CLOSED] Add Monocle telemetry and LLM evaluation suite for earnings call analyst #7777
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Shubhamsaboo/awesome-llm-apps/pull/851
Author: @hocokahu
Created: 5/29/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
41cdfc0Add Monocle telemetry and LLM evaluation suite for earnings call analyst📊 Changes
9 files changed (+486 additions, -7 deletions)
View changed files
📝
.gitignore(+9 -0)📝
advanced_ai_agents/single_agent_apps/earnings_call_analyst_agent/README.md(+82 -7)📝
advanced_ai_agents/single_agent_apps/earnings_call_analyst_agent/agent.py(+4 -0)➕
advanced_ai_agents/single_agent_apps/earnings_call_analyst_agent/assets/okahu-earnings-call-analyst-trace.png(+0 -0)📝
advanced_ai_agents/single_agent_apps/earnings_call_analyst_agent/live_demo/server.py(+4 -0)📝
advanced_ai_agents/single_agent_apps/earnings_call_analyst_agent/requirements.txt(+2 -0)➕
advanced_ai_agents/single_agent_apps/earnings_call_analyst_agent/telemetry.py(+24 -0)➕
advanced_ai_agents/single_agent_apps/earnings_call_analyst_agent/tests/test_eval_with_real_llm.py(+204 -0)➕
advanced_ai_agents/single_agent_apps/earnings_call_analyst_agent/tests/test_eval_with_real_youtube.py(+157 -0)📄 Description
@Shubhamsaboo I ran through the example and thought it's a good idea for applying evals due to complexity of the agent flow. Hallucination and contextual are big deal. Let me know your thought. Monocle2AI is an open source under the Linux Foundation.
Summary
Adds production-grade observability and an LLM evaluation suite to the earnings call analyst demo:
setup_telemetry()call. Spans capture the workflow treeworkflow → agentic.turn → agentic.invocation → inference. Local JSON trace files land under./.monocle/.tests/:test_eval_with_real_llm.py— synthetic transcript with seeded facts for deterministic CI runstest_eval_with_real_youtube.py— pulls a real public earnings call (default: Alphabet Q1) through the sameyoutube_ingestpipeline the demo usesmonocle_test_toolsfluent API: structural checks (called_agent,contains_any_output,under_token_limit,under_duration) and LLM-as-judge checks against four templates —hallucination,contextual_relevancy,summarization,pii_leakage. A failing label aborts the pytest run.No upstream behavior changes — all changes are additive to the existing demo. Telemetry is opt-out via
MONOCLE_EXPORTER.Test plan
pytest tests/test_eval_with_real_llm.py -vpasses against real Gemini (synthetic transcript)pytest tests/test_eval_with_real_youtube.py -vpasses against the real Alphabet Q1 earnings call on YouTubehttp://127.0.0.1:4188) still serves submissions; trace appears under workflowearnings_call_analysttests/test_core_contracts.py🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.