MCPcopy Index your code
hub / github.com/TrainLoop/evals

github.com/TrainLoop/evals @v0.9.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.9.0 ↗ · + Follow
877 symbols 3,419 edges 338 files 426 documented · 49%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🤖📊 TrainLoop Evals

Ask DeepWiki

TrainLoop Evals is a comprehensive LLM evaluation framework designed for developers who need simple, vendor-independent evaluation tools.

Core Principles

  • Simplicity First – One environment variable, one function call, one folder of JSON files
  • Vendor Independence – Everything stored as newline-delimited JSON; no databases required
  • Type-Safe & Extensible – In-code tests with full TypeScript support and composable system
  • Meet Developers Where They Are – Works with existing workflows and bespoke loops

Evals Meme

Quick Start

# Install the CLI
pipx install trainloop-cli

# Create a workspace
trainloop init

# Set your data path
export TRAINLOOP_DATA_FOLDER=/path/to/data

# Run evaluations
trainloop eval

# View results
trainloop studio

📚 Documentation

For comprehensive documentation, installation guides, tutorials, and API reference:

👉 evals.docs.trainloop.ai

👉 DeepWiki - lets you chat directly with this codebase rather than wading through documentation. It's the purest form of talking to your docs.

Quick Links

Demo

Support

License

MIT


Need help? Check out our comprehensive documentation or open an issue.

Extension points exported contracts — how you extend this code

Logger (Interface)
(no doc)
sdk/typescript/src/logger.ts
DashboardShellProps (Interface)
(no doc)
ui/components/dashboard-shell.tsx
BenchmarkResult (Interface)
(no doc)
ui/database/benchmarks.ts
EventData (Interface)
(no doc)
ui/app/events/[id]/page.tsx
State (Interface)
(no doc)
ui/hooks/use-toast.ts
Headers (Interface)
(no doc)
sdk/typescript/src/types/global.d.ts
GroqEvaluatorProps (Interface)
(no doc)
ui/components/groq-evaluator.tsx
BenchmarkRun (Interface)
(no doc)
ui/database/benchmarks.ts

Core symbols most depended-on inside this repo

cn
called by 196
ui/lib/utils.ts
json
called by 32
sdk/python/trainloop_llm_logging/instrumentation/httpx_lib.py
createLogger
called by 26
sdk/typescript/src/logger.ts
recordLLMCall
called by 25
sdk/typescript/src/exporter.ts
run_cmd
called by 24
scripts/release.py
name
called by 22
infra/index.ts
trainloopTag
called by 22
sdk/typescript/src/index.ts
collect
called by 22
sdk/typescript/src/index.ts

Shape

Function 493
Method 227
Class 70
Interface 48
Route 25
Struct 13
TypeAlias 1

Languages

Python60%
TypeScript32%
Go7%

Modules by API surface

sdk/python/tests/unit/test_instrumentation.py35 symbols
sdk/python/trainloop_llm_logging/instrumentation/httpx_lib.py33 symbols
tests/unit/judge/test_judge_basic.py27 symbols
sdk/python/tests/unit/test_store.py22 symbols
sdk/python/tests/unit/test_exporter.py20 symbols
sdk/python/tests/unit/test_logger.py19 symbols
sdk/python/tests/conftest.py16 symbols
scripts/release.py16 symbols
cli/trainloop_cli/eval_core/judge.py15 symbols
sdk/typescript/src/instrumentation/utils.ts13 symbols
sdk/python/trainloop_llm_logging/instrumentation/http_client_lib.py13 symbols
sdk/python/tests/integration/harness.py13 symbols

For agents

$ claude mcp add evals \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page