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.2.0b2.tar.gz (768.5 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.2.0b2-py3-none-any.whl (791.0 kB view details)

Uploaded Python 3

File details

Details for the file alquimia_fair_forge-1.2.0b2.tar.gz.

File metadata

  • Download URL: alquimia_fair_forge-1.2.0b2.tar.gz
  • Upload date:
  • Size: 768.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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.2.0b2.tar.gz
Algorithm Hash digest
SHA256 1d12ebd01cfd4f96d6f54d6ef706694042b8d16ece38c7e89f119bfb583dd1a2
MD5 50af67d6cd61923124b379945e559b4c
BLAKE2b-256 cd76e21e3f033dbfdf8aeaf11c8fb637f919b7541e5b1c98e46e6c1732f8b8e1

See more details on using hashes here.

File details

Details for the file alquimia_fair_forge-1.2.0b2-py3-none-any.whl.

File metadata

  • Download URL: alquimia_fair_forge-1.2.0b2-py3-none-any.whl
  • Upload date:
  • Size: 791.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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.2.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 e58abada17b4d9433a8766ba8c6dd6c1e29de1f8a9af340275558820a7782327
MD5 48344d2392701f9262c9388aa0847993
BLAKE2b-256 28b037d811d61844c5528d2e71828e01a8edacbaad57d64ff50d1d80bbf2f7e1

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