Our take
Activeregular commits and releases- Activity
- 46
- Community
- 67
- Issues
- 41
- Pull requests
- 61
+0 stars in the last 30 days
LangTest is an actively maintained Python evaluation library with broad testing coverage and a contributor base that is not concentrated in one person.
Good fit if
- You need structured safety, fairness, robustness, or quality checks for NLP models or LLMs.
- Your work uses Python and one of the supported NLP frameworks or LLM services.
- You want an Apache-2.0-licensed tool and can build tests into your model-evaluation workflow.
Look elsewhere if
- You need a standalone model-serving or training platform rather than an evaluation toolkit.
- Your models or providers are outside the integrations and tasks documented by the project.
- You need evaluation without a Python runtime.
All health signals
| Last commit | 2026-08-13 (3 months ago) |
|---|---|
| Commits, last 90 days | 11 |
| Releases, last 12 months | 1 (latest 2.8.0, 2026-08-17) |
| Contributors | 16 (top contributor: 26% of commits) |
| Issues closed, last 90 days | 3 (typically closed in 25 days) |
| Pull requests merged, last 90 days | 4 (typically merged in 0 days) |
| Project age | 3 years |
Checked on 2026-10-29 with the GitHub API.
Project history
Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.
Stars
561Forks
53Change since Nov 14, 2026: 0 stars·0 forks
Overview
LangTest is a Python library for assessing whether language models and NLP systems behave safely and effectively. It helps teams test for issues such as robustness failures, bias, fairness concerns, and accuracy problems, rather than relying on a single performance score. It supports NLP workflows using Spark NLP and Hugging Face Transformers, as well as testing LLMs from services including OpenAI, Cohere, AI21, Hugging Face Inference API, and Azure OpenAI.
The library generates and runs test cases through a Harness interface, and can use test results to augment training data for select models. It is aimed at NLP practitioners and teams building or evaluating language-model applications who need repeatable checks across tasks such as named entity recognition, translation, text classification, and question answering.
Key Features
- Generate and run more than 60 types of language-model and NLP tests.
- Assess robustness, bias, representation, fairness, and accuracy.
- Test NLP models used for named entity recognition, translation, and text classification.
- Connect to Spark NLP and Hugging Face Transformers workflows.
- Test LLMs through supported providers and APIs, including OpenAI and Azure OpenAI.
- Apply automated training-data augmentation based on test results for select models.
- Use benchmark datasets for evaluation scenarios including question answering and summarization.
Use Cases
- NLP engineers can probe named entity recognition models for robustness before deploying them in production pipelines.
- Responsible-AI teams can evaluate language models for demographic or stereotype-related bias.
- LLM developers can test question-answering or summarization systems against relevant benchmark datasets.
- Model owners can use test results to guide data augmentation for models supported by that workflow.
What you need
Detected in the repository
- Python (from pyproject.toml)
- A test suite and automated checks on GitHub Actions
License in plain words
Apache-2.0permissive
- Commercial use: yes
- Modify and redistribute: yes
- You must keep: the license, the NOTICE file and a note of your changes
- Share your changes: no
- Includes an explicit patent grant from the contributors:
A summary, not legal advice: the LICENSE file is what applies.
Getting Started
Install the Transformers integration and run a test harness:
pip install 'langtest[transformers]'
See the README and documentation for model setup, test configuration, and examples.
Alternatives
- AuditNLG: AuditNLG focuses on generated-text factuality, safety, and instruction-following, while langtest covers broader model testing such as robustness, bias, and fairness.
| Project | Language | License | Stars | Status |
|---|---|---|---|---|
| langtest | Python | Apache-2.0 | 561 | Active |
| AuditNLG | Python | BSD-3-Clause | 103 | Quiet |
Considerations
LangTest is an evaluation and testing library, not a replacement for model hosting or a complete model-development platform. Its integrations cover a range of NLP frameworks and LLM services, but teams should confirm that their model, task, and provider are supported before adopting it. A Python runtime is required, and some workflows may depend on the external model services or frameworks they use. The project is actively maintained, with recent commits and a release in the past year; work is shared across multiple contributors rather than being concentrated in one. The Apache-2.0 license permits commercial use, modification, and distribution, subject to its terms.
Found this useful?
Share it with someone who would like langtest.