Skip to content

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EvalForge

EvalForge is a workspace for evaluating LLM outputs. You build datasets of test cases, define rubrics, run evaluations against a real model, and review persisted results, failures and reports. It solves the "does this prompt/model actually still work?" problem with repeatable, auditable runs instead of ad-hoc spot checks.

EvalForge dashboard

Features

  • Account signup/login with JWT access tokens, Argon2id password hashing and rotating refresh tokens (HttpOnly cookie).
  • Per-user data isolation (datasets, test cases, rubrics, runs, failures).
  • Datasets, test cases and weighted-keyword rubrics.
  • Real evaluation with Ollama (self-hosted) and Groq (hosted).
  • Scoring methods: Exact Match, Keyword Match, Rubric Scoring.
  • Results, failures, token usage and cost estimates persisted in the database; reports and PDF/CSV export.
  • Durable PostgreSQL evaluation queue with worker leases, heartbeats, bounded retries, resumable test-case execution, progress polling, and cancellation.
  • Alembic migrations, backend (pytest) and frontend (Vitest) tests, Docker/Compose, Vercel config, GitHub Actions CI.

Mock vs Real evaluation

Demo / Mock Live provider
Calls a model No Yes (Ollama or Groq)
Results Generated sample data Actual model responses, persisted
Labelled in UI "Demo / Mock" "Live / Groq" or "Live / Ollama"
In reports/metrics Excluded Included
On provider failure n/a Error shown; never falls back to mock

Architecture

Browser (React + Vite)
   │  /api  (same origin on Vercel)
   ▼
FastAPI API ──► PostgreSQL ◄── Durable evaluation worker
                    ▲                 │
                    │                 ├──► Ollama
                    │                 └──► Groq
                    └── job + run + incremental results

The API now enqueues evaluations and returns immediately. A separately deployed long-running worker claims jobs from PostgreSQL, persists each result, renews its lease, resumes after interruption, and supports retries/cancellation. Vercel still hosts only the frontend/API; it does not run the worker process. See DEPLOYMENT.md.

Tech stack

React 18, TypeScript, Vite, Tailwind, TanStack Query, Recharts · FastAPI, SQLAlchemy, Alembic, Argon2 · PostgreSQL · Ollama, Groq · Vitest, pytest · Docker, Vercel, GitHub Actions.

Local setup

cp .env.example .env          # set JWT_SECRET_KEY (>= 32 random bytes)
# AUTH_COOKIE_SECURE=false is for local HTTP only; use true on HTTPS
npm ci
python -m pip install -r backend/requirements.txt
python -m alembic -c alembic.ini upgrade head
python -m uvicorn backend.app.main:app --reload   # API on :8000
python -m backend.app.jobs.evaluation_worker     # worker in a second terminal
npm run dev                                       # frontend on :5173

Generate a secret: python -c "import secrets; print(secrets.token_urlsafe(48))".

Providers

The Models page reports the providers configured on the backend and their configured model IDs. Ollama runs locally or on a separately reachable host; Groq is a hosted API provider. A configured provider/model is not proof that its credentials, network connection, or live inference are currently healthy—use the connection check and complete a real evaluation to verify it.

  • PostgreSQL: set DATABASE_URL=postgresql+psycopg://user:pass@host:5432/evalforge. Required in production. See DATABASE.md.
  • Ollama: install Ollama, ollama pull llama3.2, set OLLAMA_BASE_URL / OLLAMA_MODEL. See OLLAMA.md.
  • Groq: set GROQ_API_KEY (server-side only) and optionally GROQ_MODEL.

Tests and build

npm run lint
npm run test:run
npm run build
pytest -q backend/tests/
python -m alembic -c alembic.ini upgrade head

Deployment

See DEPLOYMENT.md for Vercel (Services preset), required environment variables and the post-deploy checklist. Live application: https://evaleforge-22v5turff-addrryhby-5992.vercel.app.

Other docs: AUTHENTICATION.md, OWNERSHIP.md, DATABASE.md.

Skills demonstrated

  • Frontend: React, TypeScript, Vite, TanStack Query, data visualization, reporting, and PDF/CSV export.
  • Backend: Python, FastAPI, REST APIs, provider abstraction, and persistent evaluation workflows.
  • Data: PostgreSQL, SQLAlchemy, Alembic migrations, datasets, test cases, rubrics, and evaluation records.
  • AI evaluation: Ollama, Groq, Exact Match, Keyword Match, rubric scoring, repeatable test runs, and result analysis.
  • Security: JWT authentication with fail-fast production secret/origin validation, Argon2id password hashing, atomic refresh-token rotation and family revocation, PostgreSQL-backed login throttling with bounded retention, and per-user data isolation.
  • Quality & delivery: pytest, Vitest, Docker Compose, GitHub Actions CI, and Vercel configuration.

Repository

Live deployment

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages