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
Performance-measurement library for evaluating AI models and assistants
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:
License
MIT License - see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alquimia_fair_forge-1.2.0b1.tar.gz.
File metadata
- Download URL: alquimia_fair_forge-1.2.0b1.tar.gz
- Upload date:
- Size: 768.4 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9307e2e7231ba1f51102f02fa20a713f2a1b557831fd325c89036247e2435f13
|
|
| MD5 |
a128578beb349201e9f381d21f82cd84
|
|
| BLAKE2b-256 |
f6ce3f56e402f661b3c8439102456bcf7edacbdd10dc9895dd62d6c4cbcbc9ec
|
File details
Details for the file alquimia_fair_forge-1.2.0b1-py3-none-any.whl.
File metadata
- Download URL: alquimia_fair_forge-1.2.0b1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5b928451098510b6d445a7e33b090ed72c9deda9d1654c4acf2358c9408f752
|
|
| MD5 |
96de41deb936f9b7e1fc014f02a47e89
|
|
| BLAKE2b-256 |
43fd59756cb10d79b7b6b1d4a736e4ce21a8473987e88cc9f1c21aaa7b0cae7b
|