LangTest Release Notes

Β 

1.0.0

πŸ“’ Highlights

LangTest 1.0.0 Release by John Snow Labs πŸš€: We are very excited to release John Snow Labs’ latest library: LangTest! πŸš€, formerly known as NLP Test. This is our first major step towards building responsible AI.

LangTest is an open-source library for testing LLMs, NLP models and datasets from all major NLP libraries in a few lines of code. πŸ§ͺ The library has 1 goal: delivering safe & effective models into production. 🎯

πŸ”₯ Features

  • Generate & run over 50 test types in a few lines of code πŸ’»
  • Test all aspects of model quality: robustness, bias, representation, fairness and accuracy
  • Automatically augment training data based on test results (for select models)​ πŸ’ͺ
  • Support for popular NLP frameworks for NER, Translation and Text-Classifcation: Spark NLP, Hugging Face & spaCy πŸŽ‰
  • Support for testing LLMS ( OpenAI, Cohere, AI21, Hugging Face Inference API and Azure-OpenAI LLMs) for question answering, toxicity and summarization tasks. πŸŽ‰

❓ How to Use

pip install langtest

Create your test harness in 3 lines of code :test_tube:

# Import and create a Harness object
from langtest import Harness
h = Harness(task='ner', model='dslim/bert-base-NER', hub='huggingface')

# Generate test cases, run them and view a report
h.generate().run().report()

πŸ“– Documentation

❀️ Community support

  • Slack For live discussion with the LangTest community, join the #langtest channel
  • GitHub For bug reports, feature requests, and contributions
  • Discussions To engage with other community members, share ideas, and show off how you use NLP Test!

We would love to have you join the mission :point_right: open an issue, a PR, or give us some feedback on features you’d like to see! :raised_hands:

πŸš€ Mission


While there is a lot of talk about the need to train AI models that are safe, robust, and fair - few tools have been made available to data scientists to meet these goals. As a result, the front line of NLP models in production systems reflects a sorry state of affairs.

We propose here an early stage open-source community project that aims to fill this gap, and would love for you to join us on this mission. We aim to build on the foundation laid by previous research such as Ribeiro et al. (2020), Song et al. (2020), Parrish et al. (2021), van Aken et al. (2021) and many others.

John Snow Labs has a full development team allocated to the project and is committed to improving the library for years, as we do with other open-source libraries. Expect frequent releases with new test types, tasks, languages, and platforms to be added regularly. We look forward to working together to make safe, reliable, and responsible NLP an everyday reality.

βš’οΈ Previous Versions

Last updated