
router
TanStack Router is a type-safe, data-driven React router with built-in caching, prefetching, and nested layouts, while TanStack Start extends it into a full-stack SSR framework.
该仓库通过可重复的演示(位置、长度、谄媚等偏差)和具体修复方法(评分规则、校准、探查器)解决了 LLM 评估不可靠的普遍问题,并提供从基础测试到真正 RAG 系统调试的完整进阶路径,所有内容均可通过模拟模式离线运行。
A minimal, hands-on TypeScript curriculum for LLM evaluations — how to build them, and how they lie to you. Built for a 60-minute talk of the same name. Each folder is self-contained and runnable, progressing from a five-line assertion to a live diagnostic console pointed at a real RAG system.
This repo is a teaching tool. In the taxonomy of the word "harness," it's the older, sharper meaning — the eval harness: measure a model against known answers and get back a score you can trust. (Its sibling, the agent harness — give a model tools and a task — lives at basically-ai-harness.)
Start from what you already know — a unit test:
expect(add(2, 2)).toBe(4);
An eval is that same test, for software that breaks the three things a unit test relies on:
| A unit test assumes… | …an LLM breaks it because… | …so an eval needs |
|---|---|---|
| one fixed input | there are endless phrasings of the same request | a dataset of inputs, not one |
| one exact right answer | "good" is fuzzy — tone, helpfulness, "did it answer?" | a notion of good (a property, rubric, or reference) |
exact match (===) | output varies run to run | a tolerant checker, not string equality |
The clearest one-liner: an eval is how you turn "I think it's better" into a fact.
That's the whole gift — repeatability. Change your prompt, re-run the eval,
and watch the number: 0.72 → 0.88 (you helped) or 0.72 → 0.61 (you broke it).
That loop — eval-driven development — is the entire reason to care. Everything in
this repo is making the checker smarter and the dataset realer.
The moment "good" is too fuzzy to write as a regex — tone, helpfulness, correctness-in-context — the instinct is to ask another model to grade the output. That's an LLM-as-judge, and it's exactly where the lying starts.
The demo scenario, used throughout the repo: a customer wants to return headphones after 20 days. Policy is 14 days, so the answer is no.
A naive judge ("which reply is better?") crowns Reply B, because long + warm reads as "higher quality." That's the lie. And it isn't one bug —
根据分类、Topic 和编程语言匹配的相似项目。

TanStack Router is a type-safe, data-driven React router with built-in caching, prefetching, and nested layouts, while TanStack Start extends it into a full-stack SSR framework.
scriptc compiles ordinary TypeScript into small, fast native executables without needing Node.js, V8, or any JavaScript runtime in the binary.
A React component library that renders six hand-tuned animated thought orb loading indicators on a plain 2D canvas, with two purpose-tuned sizes and automatic theme detection for AI and agent UIs.