TrainLoop Evaluations SDK for data collection and evaluation
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
TrainLoop Evals SDK
A lightweight Python SDK for collecting, submitting, and evaluating LLM responses with TrainLoop.
Installation
pip install trainloop-evals-sdk
Usage
Data Collection
from trainloop_evals import collect
# Set this up during the initialization of your application
# to collect data from all LLM calls
collect()
# Annotate llm calls with the trainloop_tag parameter
# the sdk will intelligently remove the parameter and collect information about the llm call
import openai
openai.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "2+2"}],
trainloop_tag="math.addition"
)
Configuration
The SDK can be configured using environment variables:
TRAINLOOP_DATA_FOLDER: Directory where the registry file will be saved. If this is not set,collect()becomes a no-op.
Advanced Usage
See the documentation for complete API reference.
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 trainloop_evals_sdk-0.1.9.tar.gz.
File metadata
- Download URL: trainloop_evals_sdk-0.1.9.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90c5546cc7b3d03b3a2cab9f11e7fd457186074df11a868936c30c70aff7f51f
|
|
| MD5 |
c504890e7e39f1cf29b62e0ab7289ef9
|
|
| BLAKE2b-256 |
032e3574ff0b71ef08d152f45097fc4e1148f8f288e1688a6238d35dbf161c88
|
File details
Details for the file trainloop_evals_sdk-0.1.9-py3-none-any.whl.
File metadata
- Download URL: trainloop_evals_sdk-0.1.9-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7636643ac2a623f21d6d912ad15a10d10cab08df096cd0ac6c502106d388aae
|
|
| MD5 |
9129dd8edeeb7eec97ebd07b2d2c115c
|
|
| BLAKE2b-256 |
174fbfc343bc3f31e33cb74da0c11e1c03266265761e48b471f362d009b25214
|