LLM-Evaluation und Beobachtbarkeit
Macht LLM-Qualität und Fehler durch Verbindung von Ablaufspuren, gezielten Evaluationen und wiederverwendbaren Regressionsbelegen untersuchbar.
llm-eval-observability
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze ihn bei unklarer Verschlechterung von Antworten, Werkzeugwahl oder Abschlussverhalten eines Agenten.
Wobei hilft er dir?
- Verfolgt Agentenläufe, Runden, Werkzeuge und Verbrauch hierarchisch.
- Kombiniert Vertragstests, aufgezeichnete Abläufe und Ergebnisbewertungen.
- Trennt Kontext-, Werkzeug-, Laufzeit- und Modellfehler.
Das könntest du fragen
Diagnostiziere eine Regression und erstelle einen Evaluationstest aus der bereinigten Ablaufspur. Spiele die fehlerhafte Werkzeugfolge gegen alte und neue Version ab. Dokumentiere Soll-Ergebnis und klassifiziere die erste Abweichung statt pauschaler Modellzuordnung.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
LLM Evaluation & Observability
Treat prompts, tool schemas, context compaction rules, and model selections as testable software artifacts. Never ship or modify agent behavior on "vibes"—verify changes with structured traces and reproducible evaluations.
Hierarchical Trace Instrumentation
Instrument every agent run as a correlated tree of spans (run_id $\rightarrow$ turn_id $\rightarrow$ llm_call / tool_call / retrieval_call):
| Span Type | Required Attributes to Record |
|---|---|
agent.run |
run_id, agent_role, workflow_phase, status, stop_reason, turn_count, total_cost_usd, wall_time_ms |
llm.generate |
provider, model, prompt_version, temperature, effort, ttft_ms, latency_ms, input_tokens, output_tokens, cache_read_input_tokens, cache_creation_input_tokens, finish_reason |
agent.tool_call |
tool_name, tool_call_id, latency_ms, is_error, error_code, output_bytes, was_truncated, retry_count |
agent.compaction |
tokens_before, tokens_after, turns_compacted, compaction_latency_ms |
Support privacy-safe payload capture: store full prompt/response bodies in access-controlled artifact storage keyed by content hash so engineers can replay any failing turn without leaking secrets into standard metrics indices.
Three-Tier Evaluation Strategy
Combine fast deterministic checks with trajectory and outcome graders:
- Deterministic Unit & Contract Evals (CI on every PR):
- Schema conformance of structured outputs and tool call arguments.
- Exact assertion checks on deterministic fixtures (e.g., forbidden tools never called, required citation IDs present, no injected instructions followed).
- Trajectory & Tool-Selection Evals (Recorded / Mocked Tools):
- Replay a golden conversation prefix up to turn $T$ and assert that the next turn selects the expected tool category, passes valid parameters, and completes within step/token budgets (
pass@kandpass^kfor reliability across multiple trials).
- Replay a golden conversation prefix up to turn $T$ and assert that the next turn selects the expected tool category, passes valid parameters, and completes within step/token budgets (
- End-to-End Outcome & Rubric Evals:
- Grade the final artifact (e.g., tests pass in sandbox, SQL query returns expected rows, or pairwise LLM-as-judge rubric with explicit binary criteria and reference answers).
- Calibrate any LLM judge against human-labeled golden examples and measure agreement before trusting automated scores.
Failure Diagnosis & Flywheel
When diagnosing a failing agent run:
- Classify the root cause precisely: Context Deficit (needed info missing or compacted away), Tool Contract Flaw (ambiguous schema or unhelpful error message), Runtime/Control Bug (premature stop, timeout, broken state resume), or Model Capability Limit (reasoning failure despite clean context).
- Convert every production bug or regression into a permanent anonymized fixture in the evaluation dataset before closing the fix.
Enthaltene Dateien 1
SKILL.md
Über dieses Skill-Paket
llm-eval-observability
llm-eval-observability: Entwickelt KI-Agentenfunktionen mit klaren Werkzeugverträgen, kontrollierten Berechtigungen, dauerhaftem Zustand und nachvollziehbarem Modellverhalten.
Weniger anzeigen
llm-eval-observability
llm-eval-observability: Entwickelt KI-Agentenfunktionen mit klaren Werkzeugverträgen, kontrollierten Berechtigungen, dauerhaftem Zustand und nachvollziehbarem Modellverhalten.
Enthält den vollständigen Skill und seine Begleitdateien (1 Dateien). Der genaue, ursprünglich verfasste Anwendungsbereich bleibt unten erhalten.
Ursprüngliche Skill-Beschreibung (Quellsprache)
Use when instrumenting LLM and agent runs, designing offline or online evaluations, building regression datasets from production traces, or diagnosing agent failures, latency bottlenecks, and quality regressions.
Installiere den Skill, prüfe seine Quelle und Vertrauenseinstellungen und aktiviere ihn für das passende Projekt oder den Agenten.
Voraussetzungen
- Orqestria auf deinem Computer installiert.
