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.dev1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for fabricatio_judge-0.1.2.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b01c139d2cfcde20c0bc4ea30065d367a574ad92734a19c88d3575107eea8d5
MD5 0d7d798303eb6f438a0aafdfe5968172
BLAKE2b-256 f0c1585e9c7bf8c35bc3a4a504fd47fac5ed698fe63b3e85d807a99f1c3b7631

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