Skip to main content

medplexity helps with evaluation of LLMs for medical use-cases.

Project description

Medplexity

Documentation Status Discord License: MIT

Medplexity is a python library to help with evaluation of LLMs for medical applications.

medplexity-logo

It is designed to help with the following tasks:

  • Evaluating performance of LLMs on existing medical datasets and benchmarks. E.g. MedQA, PubMedQA, etc.
  • Comparing performance of different prompts, models, and architectures.
  • Exporting results of evaluation for visualisation and further analysis.

The goal is to help answer questions like "How much better would GPT-4 perform given a vector database to load certain resources?".

🔧 Quick install

pip install medplexity

📖 Documentation

Documentation can be found here.

Example

See MedQA notebook for a full example with MedQA dataset.

Contributions

Contributions are welcome! Check out the todos below, and feel free to open a pull request. Remember to install pre-commit to be compliant with our standards:

pre-commit install

Feel free to raise any questions on Discord

Todos

Some initial todos include:

  • Multiple-Choice datasets
    • Add MedMCQA dataset
    • Add PubMedQA dataset
    • Add MedQA dataset
    • Add MMLU dataset
  • Long-form question answering datasets
    • Add HealthSearchQA dataset
    • Add MedicationQA dataset
    • Add LiveQA dataset
  • Explore datasets for multi-modality, specifically vision tasks for GPT-4V.
  • LLMs
    • Wrapper for OpenAI
    • Wrapper for deepinfra
    • Wrapper for Google PALM
    • Wrapper for HuggingFace text-gen
  • Jupyter notebook quickstart
  • Example with langchain integration
  • Visualisation of results
    • Add export of evaluations
    • Frontend for exploring exported results

📜 License

Medplexity is licensed under the MIT License. See the LICENSE file for more details.

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

medplexity-0.1.2.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

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

medplexity-0.1.2-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

Details for the file medplexity-0.1.2.tar.gz.

File metadata

  • Download URL: medplexity-0.1.2.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.10 Darwin/22.6.0

File hashes

Hashes for medplexity-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9544525ad22338d102944f8ecea1a8fcf490740dea16a2b430bc327deee56c2c
MD5 9182ef7773d316f824d73282112b2c46
BLAKE2b-256 e45a27e5bf855a5ebe86e889cbadb7a918ce728285a8bbce926c6a15f063b036

See more details on using hashes here.

File details

Details for the file medplexity-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: medplexity-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 35.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.10 Darwin/22.6.0

File hashes

Hashes for medplexity-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7c797af8ca3aaf2279d134858541fb11bd7c66a9f1fadd2cbedf626534a9de9
MD5 a903ff3cf72a9c9cf3d99fff19176998
BLAKE2b-256 1bfadbce3718672ff48b49c1db2f5908e5562f1dacb97ea9a50d7bdf91a815e2

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