Skip to content

John Snow Labs LangTest 1.3.0: Clinical Test Support, Model & Dataset Uploading to HF, Prompt-Injection Exploration, Codebase Refinement, Enhanced Unit Test Coverage and Support for custom column names for CSV loading.

Choose a tag to compare

@ArshaanNazir ArshaanNazir released this 18 Aug 19:02
· 2790 commits to main since this release
375e6fd

πŸ“’ Overview

LangTest 1.3.0 πŸš€ by John Snow Labs is here with an array of advancements: We've amped up our support for Clinical-Tests, made it simpler to upload models and augmented datasets to HF, and ventured into the domain of Prompt-Injection tests. Streamlined codebase, bolstered unit test coverage, added support for custom column names in harness for CSVs and polished contribution protocols with bug fixes!

A big thank you to our early-stage community for their contributions, feedback, questions, and feature requests πŸŽ‰

Make sure to give the project a star right here ⭐


πŸ”₯ New Features & Enhancements

  • Adding support for clinical-tests #707
  • Adding support for prompt-injection test #708
  • Updated Harness format #706
  • Adding support for model/dataset upload to HF #713
  • Adding contribution guidelines #701
  • Improving Unittest coverage #700
  • Adding support for custom column names in harness for csv #650

πŸ› Bug Fixes

  • Fix fairness scores #709

❓ How to Use

Get started now! πŸ‘‡

pip install "langtest[langchain,openai,transformers]"

import os

os.environ["OPENAI_API_KEY"] = <ADD OPEN-AI-KEY>

Create your test harness in 3 lines of code πŸ§ͺ

# Import and create a Harness object
from langtest import Harness

harness = Harness(task="clinical-tests",model={"model": "text-davinci-003", "hub": "openai"},data = {"data_source": "Gastroenterology-files"})

# 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 LangTest!

We would love to have you join the mission πŸ‘‰ open an issue, a PR, or give us some feedback on features you'd like to see! πŸ™Œ


♻️ Changelog

What's Changed

Full Changelog: 1.2.0...1.3.0