SuperAPIAI Directory

yourbench

github.com · AI developer platforms

A Dynamic Benchmark Generation Framework.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

YourBench is a dynamic benchmark generation framework designed to help users reliably evaluate large language models based on their own data. It can generate question-answer pairs and evaluation datasets from source documents.

Main uses:

  • Convert PDF, Word documents, HTML, and text files into standardized Markdown.
  • Generate single-hop and multi-hop questions, with support for custom schemas.
  • Create structured benchmark datasets for evaluating large language models.

Main capabilities:

  • Document ingestion: parse documents in multiple formats.
  • Question generation: customizable question/answer schemas.
  • Custom output schema: define question-answer formats using Pydantic models.
  • Multi-model support: different LLMs can be used for different pipeline stages.
  • HuggingFace integration: push datasets to the Hub or save locally.
  • Reviewable output: provides source citations, citation scores, and exact normalized question deduplication.

Usage:

  • Natural language frontend: describe evaluation needs and point to documents, for example using an OpenAI-compatible endpoint. Set the MODEL_API_KEY environment variable, or omit --api-key-env for unauthenticated local endpoints. The Hugging Face provider uses HF_TOKEN when available. YourBench interprets the instructions, saves plan.json and config.yaml, then generates a local dataset and JSONL to the output directory. Add --plan-only to inspect the interpretation first (it will still call the model). Use --max-tokens 4000 --concurrency 2 to limit each response and concurrent requests.
  • Python usage: requires Python 3.12. Set the API key environment variable and pass api_key_env="MODEL_API_KEY".
  • CLI commands: provides multiple CLI commands, see the CLI reference for details.
  • No installation required: you can upload documents through the Demo Space to get a benchmark, or use the Advanced Space to fully control the configuration in the browser.
  • Example configurations: the example/ folder contains multiple configurations, such as default_example, harry_potter_quizz, custom_prompts_demo, local_vllm_private_data, rich_pdf_extraction_with_gemini, and others.

Applicable scenarios:

  • Developers and researchers who need to generate evaluation datasets based on private documents.
  • Scenarios where different models are used for multi-stage processing.
  • Benchmark generation tasks that require reviewable output and custom output schemas.

Limitations:

  • Exact counting, dollar budgets, conversational tasks, and executable evaluators are currently not supported and should be reported by the planner.
  • Generated answers still need to be evaluated for quality; schema validation checks structure, not factual correctness.
  • Hosted model calls may incur provider fees.
  • The natural language frontend outputs locally by default. YAML configuration still supports explicit stage/model settings.
  • Requires Python 3.12.
  • Other specific limitations are not currently provided.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools