Skip to main content

Alquimia Fair Forge library - Performance measurement for AI models and assistants

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Fair Forge

Alquimia AI

Performance-measurement library for evaluating AI models and assistants

CI PyPI Python Versions License

DocumentationGitHub

What is Fair Forge?

Fair Forge provides comprehensive metrics for evaluating AI systems:

  • Toxicity - Detect toxic language patterns with DIDT fairness framework
  • Bias - Analyze biases across protected attributes (gender, race, religion, etc.)
  • Context - Assess how well responses align with provided context
  • Conversational - Evaluate dialogue quality using Grice's maxims
  • Humanity - Measure how natural responses are through emotional analysis
  • BestOf - Tournament-style comparison to find the best response

Quick Start

# Install with pip
pip install alquimia-fair-forge

# Or install specific modules
pip install "alquimia-fair-forge[toxicity]"
pip install "alquimia-fair-forge[bias]"
pip install "alquimia-fair-forge[all]"
from fair_forge import Retriever, Dataset
from fair_forge.metrics.toxicity import Toxicity

class MyRetriever(Retriever):
    def load_dataset(self) -> list[Dataset]:
        # Load your dataset here
        pass

metrics = Toxicity.run(MyRetriever, verbose=True)

Documentation

For complete documentation, guides, and API reference visit:

https://fairforge.alquimia.ai

License

MIT License - see LICENSE for details.

Project details


Download files

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

Source Distribution

alquimia_fair_forge-1.1.0.tar.gz (758.4 kB view details)

Uploaded Source

Built Distribution

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

alquimia_fair_forge-1.1.0-py3-none-any.whl (783.5 kB view details)

Uploaded Python 3

File details

Details for the file alquimia_fair_forge-1.1.0.tar.gz.

File metadata

  • Download URL: alquimia_fair_forge-1.1.0.tar.gz
  • Upload date:
  • Size: 758.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for alquimia_fair_forge-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a3c5ab4b70de8ec1a407ca3b135aabdc9eef92d72c6bfd2e8769f9f4f637eba1
MD5 a44bd8b29a2c91197ff0f8e03a60a84c
BLAKE2b-256 c300a0578f6a810a7b1adfe7f0da8ac2428d8f779c7aaf7f42b2f65bbdfd4fbc

See more details on using hashes here.

File details

Details for the file alquimia_fair_forge-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: alquimia_fair_forge-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 783.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for alquimia_fair_forge-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78bae1b56576033e86900f78ded428fe36ae1500664970e50ddf8859b176e407
MD5 3fc62354df19161b536df5b2f4370671
BLAKE2b-256 7e757e517229c0d3cbeee93b854deeebbe0abb92fd21617b9d07e940d65210a4

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