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.0.0.tar.gz (756.8 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.0.0-py3-none-any.whl (783.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alquimia_fair_forge-1.0.0.tar.gz
  • Upload date:
  • Size: 756.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for alquimia_fair_forge-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fdffcae4b9fc59c6d820b3a3634dd2922573c4a286edb7068b13057ae7160b27
MD5 92749cf877c305a3c4f7d6b26ddc216d
BLAKE2b-256 f8f0ef4ef3f1fdf46d5851c5f8fdd11f4d3b3624e89239b5d1a9098564f6ab44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alquimia_fair_forge-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5750767cfd69e0bdd91635e3d22b1347eb1538c5b076a98a715afeb7c07787b
MD5 17c1e44e290d2cf9bdad59039df4ce57
BLAKE2b-256 1c1b07a17d52a510cc0f92e911bfc86dad69b704c24766a43fecd86b193d96e3

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