Skip to main content

PrometheusNN

Build a hierarchical text classifier without writing code. Point Claude (or any MCP client) at your data and it walks you from "I have a CSV" to a trained model — profiling your columns, detecting whether the problem fits, surfacing concerns before training, and recommending the right setup.

PrometheusNN is the ML expert sitting next to you. You bring the data and the goal; it handles the rest.

What this looks like

You:    I have a CSV of product descriptions and I want to categorize them.
        Can you help?

Claude: [calls start_here on the file]

        I looked at your data — 11,400 product descriptions across three
        nested category levels (Chapter → Heading → Subheading). One thing
        worth flagging before we train: the deepest level has ~2 examples
        per class on average, which usually means poor accuracy at that
        depth. Want to do all three levels, or simplify to the top two?

You:    Top two.

Claude: [fires analyze_training_data → train_model with the simpler setup]

        Done. Chapter accuracy 92%, Heading accuracy 78%. Want to try
        classifying something?

No column-name guessing, no parameter cargo-culting, no premature training runs.

Install

pip install prometheusnn

Then add to your MCP client config (Claude Desktop, Cursor, Zed, etc.):

{
  "mcpServers": {
    "prometheus": {
      "command": "prometheusnn"
    }
  }
}

That's it. Open your MCP client and start a conversation about classifying something.

How it works under the hood

Two entry-point tools handle every new conversation:

  • start_here(file_path) — profiles your CSV, detects whether it's a hierarchical, flat, or multi-label classification problem, surfaces concerns before training, and returns pre-filled next steps so the LLM never has to guess column names.

  • scope_problem(goal_description) — for when you don't have data yet. Tells you whether Prometheus fits your goal, what data you'll need, and what to watch for. Politely redirects non-fits (regression, clustering, NER) to the right tools.

From there, the LLM routes through the existing tool surface (training, evaluation, threshold tuning, prediction) based on what start_here recommended.

What's actually being built

Under the conversational surface, PrometheusNN trains a cascade of neural network classifiers — one per level of your taxonomy — with parent-noise injection so deeper levels stay robust when upper levels are uncertain. Beam search explores alternative paths when confidence drops. Temperature calibration produces probabilities you can trust for routing, and routing thresholds are fit on validation data so auto-accepted predictions meet a target precision. Novelty detection flags items far from everything the model was trained on.

Text descriptions + taxonomy labels
        │
        ▼
  ┌─────────────┐
  │  Embedding  │  sentence-transformers (384d or 768d)
  └──────┬──────┘
         ▼
  ┌─────────────┐
  │   Cascade   │  N classifiers, one per level
  │  Classifier │  parent noise injection for robustness
  └──────┬──────┘
         ▼
  ┌─────────────┐
  │ Beam Search │  adaptive widening when confidence drops
  └──────┬──────┘
         ▼
  ┌─────────────┐
  │   Router    │  thresholds fit to a target precision → accept / review / reject
  │  + Novelty  │  kNN distance to the training data
  └─────────────┘

You don't need to know any of this to use it — but it's there if you want to dig in.

Tool reference

20 MCP tools total. The two you'll be told about; the rest the LLM picks for you.

Entry points (start here)

  • start_here — assess a file, detect problem type, return pre-filled next steps
  • scope_problem — assess a goal description (no data yet), check fit and data requirements

Training & data

  • analyze_training_data, train_model, resume_training

Inference

  • predict, predict_batch, classify_with_context

Model management

  • list_models, describe_model, delete_model, export_model

Evaluation & tuning

  • evaluate_model, explain_prediction, get_confusion_matrix
  • get_threshold_report, set_thresholds

Other

  • submit_feedback, list_embedding_models, build_code_mapping

Environment variables

Variable Default Description
PROMETHEUS_HOME ~/.prometheus Base directory for models, logs, feedback
PROMETHEUS_EMBEDDING_MODEL all-MiniLM-L6-v2 Default sentence-transformer model

Development

git clone https://github.com/mfbaig35r/prometheusnn
cd prometheusnn
uv sync --extra dev
uv run python -m pytest tests/ -v --tb=short    # 179 tests
uv run ruff check src/ tests/                   # lint
uv run ruff format --check src/ tests/          # format

License

MIT

Metadata

Release files for prometheusnn 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prometheusnn 0.2.4
File Size Uploaded Provenance Actions
prometheusnn-0.2.4.tar.gz 458.4 kB With provenance Details for prometheusnn-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prometheusnn 0.2.4
File Interpreter ABI Platform Actions
prometheusnn-0.2.4-py3-none-any.whl Python 3 none any Details for prometheusnn-0.2.4-py3-none-any.whl

Total release size: 539.8 kB

Release files / prometheusnn-0.2.4.tar.gz

Download URL prometheusnn-0.2.4.tar.gz
Size 458.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4a5298db5acb7bb2d5b4181eb07fe911c179995add05e53fb4d1b03d9f8a54bf
BLAKE2b-256 checksum
How to use checksums
e32c065e2d21b589f984ddd8c9650bc2d42720fd45d388e06b0cb9424c41c6d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / prometheusnn-0.2.4-py3-none-any.whl

Download URL prometheusnn-0.2.4-py3-none-any.whl
Size 81.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38611a6570b3d145fedc7963a98d15dc55872ef4b932683666a9118f78d11edd
BLAKE2b-256 checksum
How to use checksums
79c5d07e67e3d51e96403ff79296c428ab7520fd879a81a744c053e04565ec68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for prometheusnn 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for prometheusnn-0.2.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page