Skip to main content

Comprehensive benchmark and evaluation framework for educational AI question generation

Project description

InceptBench

PyPI version Python Version License Swagger

Educational content evaluation framework using LLM-based analysis.

WebsiteBenchmarksAPI EndpointAPI DocsGitHub

Overview

InceptBench evaluates educational content across multiple quality dimensions:

  • Automated Classification - Determines content type (question, quiz, reading, etc.)
  • Hierarchical Evaluation - Decomposes complex content and evaluates bottom-up
  • Comprehensive Metrics - 8-11 metrics per content type with scores and reasoning
  • Curriculum-Aware - Integrates curriculum standards via vector store search

Installation

pip install inceptbench

System Dependencies

InceptBench requires system-level Cairo libraries for inline SVG image analysis. Without these, SVG images in educational content will not be analyzed.

macOS:

brew install cairo pango gdk-pixbuf libffi

Ubuntu/Debian:

sudo apt-get install -y libcairo2 libpango-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf2.0-0 libffi-dev

Windows: Follow the GTK3 installer for Windows or install via MSYS2:

pacman -S mingw-w64-x86_64-cairo mingw-w64-x86_64-pango mingw-w64-x86_64-gdk-pixbuf2

CLI Usage

# Create sample input file
inceptbench example

# Evaluate from JSON file
inceptbench evaluate content.json

# Evaluate raw content
inceptbench evaluate --raw "What is 2+2? A) 3 B) 4 C) 5 D) 6"

# Save results to file
inceptbench evaluate content.json -o results.json

# Check version
inceptbench --version

REST API

The production API is available at https://api.inceptbench.com

# Health check
curl https://api.inceptbench.com/health

# Interactive docs
# Visit: https://api.inceptbench.com/docs

# Evaluate content
curl -X POST https://api.inceptbench.com/evaluate \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-api-key" \
  -d '{"generated_content": [{"content": "What is 2+2? A) 3 B) 4 C) 5 D) 6"}]}'

Programmatic Usage (Python)

import asyncio
from inceptbench import EvaluationService

async def main():
    service = EvaluationService()
    result = await service.evaluate(
        content="What is 2+2? A) 3 B) 4 C) 5 D) 6",
        curriculum="common_core"
    )
    print(f"Score: {result.overall.score:.2f}")

asyncio.run(main())

Input Format

{
  "generated_content": [
    {
      "id": "q1",
      "curriculum": "common_core",
      "request": {
        "grade": "7",
        "subject": "mathematics",
        "type": "mcq",
        "difficulty": "medium",
        "locale": "en-US",
        "skills": {
          "lesson_title": "Congruent and Similar Triangles",
          "substandard_id": "CCSS.MATH.CONTENT.7.G.A.1+3"
        },
        "instruction": "A real-world problem involving congruent and similar triangles"
      },
      "content": "Triangle ABC is similar to triangle DEF. If AB = 6 cm and DE = 9 cm, what is the ratio of their corresponding sides?"
    }
  ]
}

Content Item Fields

Field Required Default Description
content Yes - Content to evaluate (string or JSON)
id No Auto-generated Unique identifier
curriculum No common_core Curriculum for alignment
request No null Generation metadata (see below)

Request Metadata Fields (all optional)

Field Description
grade Grade level (e.g., "7", "K", "12")
subject Subject area (e.g., "mathematics", "english")
type Content type (e.g., "mcq", "fill-in", "article")
difficulty Difficulty level (e.g., "easy", "medium", "hard")
locale Locale/language code (e.g., "en-US", "es-MX")
skills Skills info (JSON object or string)
instruction Generation instruction/prompt

Images

Images are automatically detected from content. Include as:

  • Direct URLs: https://example.com/image.png
  • Markdown: ![alt](https://example.com/image.png)
  • HTML: <img src="https://example.com/image.png">
  • Inline SVG: <svg>...</svg> (requires Cairo system libraries, see System Dependencies)

Content Types

The evaluator automatically classifies content into:

Type Description
question Single educational question
quiz Multiple questions together
fiction_reading Fictional narrative passages
nonfiction_reading Informational passages
other General educational content

Documentation

For complete documentation, input format details, and developer guides:

View Full Documentation on GitHub

License

Proprietary - Copyright Trilogy Education Services

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inceptbench-2.5.9.tar.gz (9.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inceptbench-2.5.9-py3-none-any.whl (9.8 MB view details)

Uploaded Python 3

File details

Details for the file inceptbench-2.5.9.tar.gz.

File metadata

  • Download URL: inceptbench-2.5.9.tar.gz
  • Upload date:
  • Size: 9.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for inceptbench-2.5.9.tar.gz
Algorithm Hash digest
SHA256 d68710a174b853dfb8b13ce30ac186f67e5b247db69371f0e8579a9553ea051d
MD5 792ebf91213e7255962aaea85e797129
BLAKE2b-256 933dd5bb7701da707fd46d17a82d3a54fd54d945da605e70fa04785bce072760

See more details on using hashes here.

File details

Details for the file inceptbench-2.5.9-py3-none-any.whl.

File metadata

  • Download URL: inceptbench-2.5.9-py3-none-any.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for inceptbench-2.5.9-py3-none-any.whl
Algorithm Hash digest
SHA256 115af7aee3ad308800d3411d36111cb483c2a11acb33d4ff56b37b0b00133a70
MD5 735e14878b300c1ce96887c992b4837d
BLAKE2b-256 c95b00af4317cb95be3075816c7cc7f7e6f7b019022c2fd6d58d6f5c9560dee9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page