Helper functions for Melodi
Project description
Melodi
Melodi is a platform for feedback, QA, and evaluations of LLM applications. This package provides a custom reporter for use with Braintrust evaluations, allowing users to log results to Melodi and generate shareable links for experiments.
This is very much a work in progress and should be considered an alpha release.
Installation
To install melodi, simply use pip:
pip install melodi
Usage
This package contains a custom Reporter for the Braintrust Data evaluation framework.
After installation, you can import the reporter in your project as follows:
from melodi import braintrust_reporter
To use the reporter with Braintrust's Eval class:
from braintrust import Eval
# Other imports as necessary
# Define your evaluation task, data, etc.
# ...
Eval(
"Your Project Name",
data=your_data_function,
task=your_task_function,
scores=your_scores_list,
reporter=braintrust_reporter.melodi_reporter,
)
Make sure that you set your Melodi API key in your environment variables:
export MELODI_API_KEY='your_melodi_api_key_here'
Features
- Easy integration with Braintrust evaluations.
- Automatic logging to Melodi for result comparison.
- Generation of shareable Melodi experiment links.
Development
For development purposes, you can clone the repository and install the dependencies as follows:
git clone https://github.com/yourusername/melodi-braintrust-reporter.git
cd melodi-braintrust-reporter
pip install -r requirements.txt
Testing
To run the tests included in the package:
python -m unittest discover tests
License
This project is licensed under the MIT License.
Contact
If you have any questions or feedback, please contact info@melodi.fyi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file melodi-0.0.1.tar.gz.
File metadata
- Download URL: melodi-0.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cf9c0f3483e29a0445e7ef1a033829dc275140a15137b6f61c154f7e574a304
|
|
| MD5 |
f865e170dcdccc2c3efe19333c594de3
|
|
| BLAKE2b-256 |
cf09c36f2f6133f66fdda38986ccc83dd7077a75f8fa5db5c4c7441f2b8bcdef
|
File details
Details for the file melodi-0.0.1-py3-none-any.whl.
File metadata
- Download URL: melodi-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df25af3c236aeb4fb09cd7034fbaa49167eb88db4ffff468b92bf8108678f42c
|
|
| MD5 |
a49dc410b8484c63a1aad3be8c787dd0
|
|
| BLAKE2b-256 |
67336862dabe568c91d0aefcdfffcc13761f4ad2f47ee44c81032687f4027cdd
|