Skip to main content

fabricatio-judge extends the Fabricatio ecosystem to provide advanced judgment capabilities for LLM-driven applications.

Project description

fabricatio-judge

A Python module for evidence-based decision making in LLM applications.

📦 Installation

This package is part of the fabricatio monorepo and can be installed as an optional dependency:

pip install fabricatio[judge]

Or install all components:

pip install fabricatio[full]

🔍 Overview

Provides the AdvancedJudge class for structured judgment tasks, using collected evidence to determine a final boolean verdict.

Key Features:

  • Asynchronous judgment execution
  • Evidence tracking (affirmative & denying)
  • Integration with Fabricatio agent framework
  • Extensible for custom logic

🧩 Usage

from fabricatio.capabilities import AdvancedJudge
from fabricatio.models import JudgeMent


class MyJudge(AdvancedJudge):
    pass  # Implement custom logic if needed


async def evaluate():
    judge = MyJudge()
    result: JudgeMent = await judge.evidently_judge("Is water wet?")
    print(f"Verdict: {result.final_judgement}")

📁 Structure

fabricatio-judge/
├── capabilities/     - Judgment logic (`AdvancedJudge`)
└── models/           - Judgment output model (`JudgeMent`)

📄 License

MIT – see LICENSE

GitHub: github.com/Whth/fabricatio

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

fabricatio_judge-0.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file fabricatio_judge-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fabricatio_judge-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60c26e12720f28fe09afc53cb68d0ab98bf16f70213d598d75285034ccd5a65e
MD5 9d487b9d49e8af444f59263e6a69152d
BLAKE2b-256 2a04671b6b81898537f2a266b189a15e13099758636475163192f3467fd6ae4e

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