Skip to main content

Tools for evaluating large language models.

Project description

[!WARNING] This project is a work in progress. Critical components may be missing, inoperative or incomplete, and the API can undergo major changes without any notice. Please check back later for a more stable version.

EvalSense: LLM Evaluation

status: experimental license: MIT EvalSense status Guide status Python TypeScript React

Python v3.12 uv Ruff Checked with pyright ESLint

About

This repository holds a Python package enabling systematic evaluation of large language models (LLMs) on open-ended generation tasks, with a particular focus on healthcare and summarisation. It also includes supplementary documentation and assets related to the NHS England project on LLM evaluation, such as the code for an interactive LLM evaluation guide (located in the guide/ directory`). You can find more information about the project in the original project proposal.

Note: Only public or fake data are shared in this repository.

Project Stucture

  • The main code for the EvalSense Python package can be found under evalsense/.
  • The accompanying documentation is available in the docs/ folder.
  • Code for the interactive LLM evaluation guide is located under guide/.
  • Jupyter notebooks with the evaluation experiments and examples are located under notebooks/.

Getting Started

Installation for Development

To install the project for local development, you can follow the steps below:

To clone the repo:

git clone git@github.com:nhsengland/evalsense.git

To setup the Python environment for the project:

  • Install uv if it's not installed already
  • uv sync --all-extras
  • source .venv/bin/activate
  • pre-commit install

To setup the Node environment for the LLM evaluation guide (located under guide/):

  • Install node if it's not installed already
  • npm install in the guide/ directory
  • npm run start to run the development server

Usage

For an example illustrating the usage of EvalSense, please check the Demo notebook under the notebooks/ folder.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/amazing-feature)
  3. Commit your Changes (git commit -m 'Add some amazing feature')
  4. Push to the Branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

See CONTRIBUTING.md for detailed guidance.

License

Unless stated otherwise, the codebase is released under the MIT Licence. This covers both the codebase and any sample code in the documentation.

See LICENSE for more information.

The documentation is © Crown copyright and available under the terms of the Open Government 3.0 licence.

Contact

To find out more about the NHS England Data Science visit our project website or get in touch at datascience@nhs.net.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evalsense-0.1.0.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evalsense-0.1.0-py3-none-any.whl (54.3 kB view details)

Uploaded Python 3

File details

Details for the file evalsense-0.1.0.tar.gz.

File metadata

  • Download URL: evalsense-0.1.0.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for evalsense-0.1.0.tar.gz
Algorithm Hash digest
SHA256 08237750efba73fb83b1822d97e07eb7f2747b32a86fbd4c8e7cc5f290a216a9
MD5 afe9591ee21b489abbbbe3f3e341dec9
BLAKE2b-256 a18b8bed09a4e22eea5f99fd1743d5a1d7ec8300d70e7804d28d28260211e943

See more details on using hashes here.

File details

Details for the file evalsense-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: evalsense-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 54.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for evalsense-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e75336ba261b71bf89471fe64b1f5b39057b88c073582881883ccb4f8ab477c
MD5 be058b5687bbf095d392b107535e57ce
BLAKE2b-256 b887599f2ce6d6f8960553ca49e99ecf2bbbaa3edca4d62fe6d29662f6a676ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page