Skip to content
Projets

Burakkylmz/llm-routing-evaluation-platform

Voir sur GitHub

À propos

Open-source LLM routing evaluation platform benchmarking cost, latency, quality, and safety across routing strategies, with a focus on Turkish banking.

IA et apprentissage automatique

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
+1
in 15 days
+4
in 1 month
+5

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

LLM Routing Evaluation Platform - V1.1

Status: Member 01 Core/CLI demo and Member 02's four YAML-selectable offline routers are implemented. Groq and NVIDIA Build provider adapters are present with fully mocked HTTP tests, but neither is wired for live use. Production privacy, expert-verified evaluation, provider access and durable reporting remain pending.

An open-source, domain-independent framework to evaluate whether LLM routing strategies improve cost, answer quality and latency on controlled workloads. The first domain pack targets Turkish Retail Banking & Customer Support.

Approved MVP architecture

  • Python 3.12+, uv, TOML, YAML, Docker
  • Modular monolith, SOLID/OOP and pragmatic Ports & Adapters
  • Pydantic v2 contracts, Typer CLI, async dependency injection through Ports
  • Strategies: Always-Large, Rule-Based, kNN, Cascade (offline RouterPort implementations; selectable through YAML or --strategy)
  • Provider adapters: Groq and NVIDIA Build implement LLMProviderPort behind explicit live/privacy gates; no live CLI path is available

Offline synthetic routing demo

The CLI deliberately uses two allowlisted synthetic inputs and deterministic test doubles, while selecting any of the four real routing strategies from YAML or --strategy. It does not judge financial correctness and never contacts a real API.

# In the repository root, with PyPI access and Python 3.12+:
uv sync --locked
uv run llm-routing-eval validate-config --config config/settings.yaml
uv run llm-routing-eval run --config config/settings.yaml \
  --dataset examples/offline_demo_cases.json \
  --strategy always_large --output artifacts/offline_demo.jsonl
# Choose rule_based, knn, or cascade without changing the orchestrator:
uv run llm-routing-eval run --config config/settings.yaml \
  --strategy cascade --output artifacts/cascade_demo.jsonl
uv run pytest -q

The generated JSONL contains a redacted execution trace, fixture-only evaluation data and a comparison report. Cost is null (unknown), model telemetry is simulated and p95 is withheld for very small samples.

--live and BENCHMARK_MODE=live fail closed because live support is not implemented. Do not use customer data in this demo.

Current verification constraints

GitHub Actions runs uv lock --check, Ruff lint/format, strict mypy, pytest and an offline CLI smoke test. Routing tests use a local fake provider; Groq and NVIDIA adapters are tested with mocked transports. No live model availability or financial correctness is established. Docker remains a scaffold and is unverified (Member 04).

uv lock --check
uv run ruff check .
uv run ruff format --check .
uv run mypy
uv run pytest -q --cov=llm_routing_eval

Documentation

Ownership

Owner Area
Member 01 core/, application/, cli/; demo/ temporary integration fakes
Member 02 routing/, adapters/providers/, adapters/embeddings/
Member 03 evaluation/, domains/turkish_banking/, labeled datasets
Member 04 privacy/, reporting/, adapters/persistence/, Docker/CI

Interfaces require review by all affected owners before integration.

Explorer des projets similaires

Chargement…