fetch-data

Extract financial LLM evaluation data from Langfuse datasets into CSV reports.

Updated May 13, 2026
One-click install
npx skills add https://github.com/superfhp/lumi-agent-body --skill fetch-data-superfhp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: fetch-data
Source: https://github.com/superfhp/lumi-agent-body/tree/main/skills/fin-llm-eval-report/fetch-data
Command: npx skills add https://github.com/superfhp/lumi-agent-body --skill fetch-data-superfhp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, pandas, tqdm, langfuse, and includes scripts (resource) and references (resource) components.

What problem does it solve? Manually collecting LLM evaluation results (questions, answers, accuracy scores, token usage, latency) from Langfuse datasets and runs is tedious and error-prone. This Skill automates pulling raw benchmark data for financial LLM evaluations into structured CSV files. ## Core Features & Use Cases - Automated Data Extraction: Connects to a Langfuse instance via API/SDK to pull dataset items, run records, traces, scores, token usage, and latency. - Structured CSV Export: Writes consolidated evaluation rows (question, reference answer, actual answer, model, difficulty, Accuracy, reasoning_quality, tokens, cost) to /mnt/workspace/data/val_FullReport.csv. - Partial-Data Handling: Documents how to proceed when only some datasets (e.g., knowledge QA but not sentiment classification) have runs available. - Use Case: Before generating a financial LLM benchmark report comparing Claude model versions on CFA-style questions, run this Skill to fetch the latest evaluation data from Langfuse. ## Quick Start Activate the project virtual environment and run the fetch-data skill to export the latest Langfuse evaluation data to CSV.

Frequently Asked Questions about fetch-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export Langfuse dataset run results to CSV?▼

Run the generate_benchmark_report.py script inside the project virtual environment. It paginates through dataset-run-items and traces via the Langfuse API, then writes all evaluation rows to /mnt/workspace/data/val_FullReport.csv.

How to extract LLM evaluation scores and token usage from Langfuse traces?▼

Fetch each trace via the Langfuse API, read its scores for Accuracy and reasoning_quality, and inspect GENERATION observations for input, output, and total token counts plus latency and cost.

Why does generate_benchmark_report.py fail with 'No such file or directory'?▼

The script was run from the wrong working directory. Run it from the repository root as python skills/fin-llm-eval-report/fetch-data/scripts/generate_benchmark_report.py, or use its absolute path.

Why is only val_FullReport.csv generated without News or Research data?▼

The Langfuse datasets for sentiment classification or research report generation have no runs, so the script exports nothing for them. The partial CSV is still usable, but the missing datasets must be populated upstream for a full report.

Can I use the system Python instead of the virtual environment?▼

No. The Skill requires activating the project virtual environment at /mnt/workspace/lumi-agent/venv before running the script, since dependencies like langfuse, pandas, and requests are installed there.