惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
V
V2EX
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
The Cloudflare Blog
T
Tailwind CSS Blog
H
Help Net Security
腾讯CDC
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
D
DataBreaches.Net
C
Check Point Blog
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

Hacker News - Newest: "LLM"

GitHub - lechmazur/position_bias: A benchmark for testing whether LLM judges keep the same preference when two lightly edited versions of the same story are shown in opposite orders. Flex routing (EU and EFTA) Dark Factories: Retooling for LLM Velocity Ask HN: What would be the impact of a LLM output injection attack? GitHub - Oaklight/llm-rosetta: Production-ready LLM API translation layer for Python — bidirectional conversion between OpenAI, Anthropic & Google formats via hub-and-spoke IR. Optional API gateway. Streaming & non-streaming. Zero core deps. Contributions welcome! GitHub - browser-use/browser-harness: Self-healing browser harness that enables LLMs to complete any task. GitHub - moeen-mahmud/remen: Remen turns thoughts into something you can return to Analyzing 156 LLM Launch Posts on Hacker News ChatGPT vs Gemini vs Claude: The Best LLM Subscription You Should Buy GitHub - salaamalykum/quran-semantic-search: High-density RAG Semantic Search Engine & Quran Corpus (GEO/SEO Architecture) GitHub - NVIDIA/TensorRT-LLM: TensorRT LLM provides users with an easy-to-use Python API to define Large Language Models (LLMs) and supports state-of-the-art optimizations to perform inference efficiently on NVIDIA GPUs. TensorRT LLM also contains components to create Python and C++ runtimes that orchestrate the inference execution in a performant way. The State of LLM Bug Bounties in 2026 Operational Readiness Criteria for Tool-Using LLM Agents Meshcore: Architecture for a Decentralized P2P LLM Inference Network How an LLM becomes more coherent as we train it GitHub - seetrex-ai/laimark GitHub - Jossifresben/BibCrit: AI-assited biblical textual criticism GitHub - wastedcode/memex: File system based wiki, maintained by Claude 99helpers.com GitHub - cliver-project/AITrigram GitHub - unbody-io/adapt: A self-evolving memory layer for AI agents. GitHub - hb20007/awesome-gen-ai-fails: A list of incidents where reliance on generative AI and LLMs resulted in harm to companies, individuals, or society GitHub - nevenkordic/localmind: Run any local LLM with persistent memory and context. CLI agent over Ollama with SQLite-backed hybrid recall. No cloud. Ask HN: What are the machine requirements for a LLM like Llama-3.1-8B? Faster LLM Inference via Sequential Monte Carlo grpo explained: group relative policy optimization for llm finetuning - cgft Stop comparing price per million tokens: the hidden LLM API costs · TensorZero Andrej Karpathy's LLM Wiki Is a Bad Idea GitHub - GG-QandV/mnemostroma: Offline RAM-first cognitive leer/coprocessor for AI agents and robotics. Solves "Context Abandonment" with 20-80ms latency using a dual-thread biomimetic memory architecture (ONNX + SQLite WAL). mempalace/agent at agent · skorotkiewicz/mempalace
GitHub - muskanjoshi01/llm-test-kit
muskanjo · 2026-05-05 · via Hacker News - Newest: "LLM"

The missing test suite for LLM-powered applications.

License Node PRs Welcome

Most developers building AI-powered apps have no idea if their LLM is giving consistent answers, how much it costs per request, or whether it's actually behaving the way they expect. They find out when something breaks in production.

llm-test-kit fixes that.


What it does

Run four tests against any prompt across OpenAI and Anthropic:

Test What it measures
Consistency How much do responses vary across runs? Scores 0–100 with a letter grade
Latency Min, max, avg, p95 response time. Flags when it's too slow for production
Cost Token usage and spend per run. Stops early if you exceed your budget
Behavior Assert that output meets your criteria — contains a word, hits a length, matches a pattern

Then generate a visual HTML report with one command.


Install

npm install -g llm-test-kit

Or clone and run locally:

git clone https://github.com/muskanjoshi01/llm-test-kit.git
cd llm-test-kit
npm install
cp .env.example .env
# Add your API keys to .env

Quick start

Check your providers are connected:

node bin/cli.js ping

Run all 4 tests and get an HTML report:

node bin/report.js -p "What is an API?" --runs 3 --contains "interface"
open report.html

Run individual tests:

# Consistency — how stable are responses across runs?
node bin/cli.js consistency -p "Explain APIs" --runs 3

# Latency — how fast is it?
node bin/cli.js latency -p "Explain APIs" --runs 5

# Cost — what does it cost per run?
node bin/cli.js cost -p "Explain APIs" --runs 3 --budget 0.50

# Behavior — does it meet your criteria?
node bin/cli.js behavior -p "List 3 languages" --contains "Python" --min-length 50

Real results

Running llm-test-kit against Claude Sonnet on "What is an API?":

Consistency score : D (60) — content consistent, formatting varies
Latency avg       : 6823ms — Grade F for this prompt length
Cost total        : $0.014418 across 3 runs — zero spikes
Behavior          : 2/2 assertions passed

The consistency finding is the interesting one: Claude gives the same answer every time but structures it differently. Add a system prompt telling it to use plain text and the score jumps to an A. That's the kind of insight llm-test-kit is built to surface.


CLI reference

ping

Check which providers are configured and responding.

node bin/cli.js ping

consistency

Run the same prompt N times and score how consistent the responses are.

node bin/cli.js consistency -p "Your prompt" --runs 3 --provider anthropic

Score of 100 = identical every time. Score below 70 = too inconsistent for production.

latency

Benchmark response time across multiple runs.

node bin/cli.js latency -p "Your prompt" --runs 5

Reports min, max, avg, p50, p95, and standard deviation.

cost

Track token usage and cost per run. Stops early if budget is exceeded.

node bin/cli.js cost -p "Your prompt" --runs 3 --budget 0.50

behavior

Assert that output meets defined criteria.

node bin/cli.js behavior -p "Your prompt" \
  --contains "Python" \
  --not-contains "I cannot" \
  --min-length 50 \
  --max-length 500

report

Run all 4 tests and generate a visual HTML dashboard.

node bin/report.js -p "Your prompt" --runs 3 --output report.html
open report.html

Options

All commands support these flags:

Flag Description Default
--provider openai or anthropic Value from .env
--model Model ID to use Provider default
--runs Number of runs 3
--system System prompt None

Configuration

Copy .env.example to .env and fill in your keys:

ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...

# Default provider: openai | anthropic
LLM_TEST_DEFAULT_PROVIDER=anthropic

# Max cost per test suite run
LLM_TEST_BUDGET_USD=1.00

You only need one key to get started.


Supported providers and models

Provider Models
Anthropic claude-sonnet-4-6, claude-opus-4-6
OpenAI gpt-4o, gpt-4o-mini

Why I built this

Every team building AI-powered apps eventually asks the same questions:

  • Why is our LLM giving different answers to the same question?
  • Why did our API costs spike this month?
  • How do we know if a model update broke our expected behavior?

There was no clean open source tool to answer these. llm-test-kit is that tool.


Roadmap

  • Google Gemini and Groq provider support
  • Compare two providers side by side
  • CI/CD integration — fail the build if consistency drops
  • JSON output for programmatic use
  • Watch mode — run tests on a schedule

Contributing

PRs are very welcome. See CONTRIBUTING.md for guidelines.

Found a bug or have a feature idea? Open an issue.


License

MIT — use this freely in personal and commercial projects.


Built by Muskan Joshi

If this saved you time, a ⭐ on GitHub goes a long way.