salesforce

AuditNLG: Check and Improve Trust in Generated Text

AuditNLG evaluates generated text for factuality, safety, and instruction-following, then can suggest revisions and explain flagged results. It suits teams and researchers comparing evaluation methods, but checks may depend on external APIs or models.

QuietPythonBSD-3-ClauseAILLMEvaluation
View on GitHub Compare
Stars
103
Forks
12
Stars, last 30 days
+0
Last commit
4 months ago
Contributors
4

Our take

Quietno commits in the last 90 days and no release in a year

Health score

26/100

How it is scored
Activity
19
Community
45
Issues
21
Pull requests
20

+0 stars in the last 30 days

AuditNLG is a practical research-oriented evaluator with broad method choices, but its quiet recent development and reliance on third-party models or services merit validation before production adoption.

Good fit if

  • You need one Python interface to evaluate factualness, safety, and constraint-following.
  • You want to compare different evaluation approaches or use model-generated explanations and revisions.
  • You can validate the chosen evaluators against your own domain and provide any required API credentials or model resources.

Look elsewhere if

  • You need a maintained, release-driven product: the repository has had no commits in the last 90 days and no release in over a year.
  • You need turnkey assurance with established automated tests or CI, which the repository does not report.
  • You need a complete training or tuning solution; AuditNLG provides inference code and integrations, not model weights or training.
All health signals
Last commit2026-06-02 (4 months ago)
Commits, last 90 days0
Releases, last 12 months0
Contributors4 (top contributor: 50% of commits)
Issues closed, last 90 days0
Pull requests merged, last 90 days0
Project age3 years

Checked on 2026-10-13 with the GitHub API.

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

103

Forks

12

Change since Nov 14, 2026: 0 stars·0 forks

Overview

AuditNLG is a Python toolkit for checking whether generated text is factually grounded, safe, and compliant with explicit or implicit instructions. It brings multiple evaluation methods behind a shared interface, helping researchers and developers assess text without wiring each evaluator into their workflow separately.

When a result needs improvement, the toolkit can ask a language model to revise the text and provide explanations for detected issues. It is an evaluation and inference layer, not a toolkit for training or tuning models.

Key Features

  • Scores factual consistency, including against supplied knowledge.
  • Checks for unsafe content using model-based and service-based methods.
  • Evaluates whether output follows instructions and constraints such as format, style, or audience.
  • Offers alternative factualness, safety, and constraint evaluators, including local Hugging Face models and external services.
  • Generates candidate revisions through configurable prompt-refinement strategies.
  • Produces explanations for detected trust issues.
  • Accepts JSON samples and can use shared knowledge across samples.

Use Cases

  • Researchers comparing factual-consistency methods on generated summaries or other text, especially when they need to try multiple evaluators.
  • Product teams screening model responses for unsafe language before review or deployment, with the understanding that scores are not a substitute for policy review.
  • Developers checking whether generated responses follow required formats, styles, or audience instructions.
  • Teams investigating a problematic output and using explanations or suggested revisions to guide human review.

What you need

Detected in the repository

  • Python >=3.7 (from pyproject.toml)

License in plain words

BSD-3-Clausepermissive

  • Commercial use: yes
  • Modify and redistribute: yes
  • You must keep: the copyright and license notice; the authors' names cannot endorse your product
  • Share your changes: no

A summary, not legal advice: the LICENSE file is what applies.

Getting Started

Install the package:

pip install auditnlg

Some evaluators and revision methods require API credentials. See the README for method options, input format, and examples.

Alternatives

  • langtest: LangTest generates and runs broader model-quality tests for robustness, bias, fairness, and accuracy, rather than focusing on factuality, safety, and instruction adherence in generated text.
ProjectLanguageLicenseStarsStatus
AuditNLGPythonBSD-3-Clause103Quiet
langtestPythonApache-2.0561Active

Considerations

The project is marked quiet: it has had no commits in the last 90 days and no release in over a year. Four contributors are recorded, and contribution is not flagged as concentrated, but the repository reports no CI or tests, so adopters should independently verify behavior and compatibility.

Evaluation quality depends on the selected models, services, and training data. Several methods need vendor API tokens, while local-model options may require downloading and running model resources; CUDA is optional in the documented command-line example. The README also notes that the toolkit does not provide model training or tuning and disclaims responsibility for third-party model outputs.

Found this useful?

Share it with someone who would like AuditNLG.

Comparisons