A Python SDK for recording the LLM Experiment Execution
Project description
Installation
To install the Trinity package, run the following command:
pip install trinityml
Setup the Environment Variable
export TRINITY_SECRET_KEY="your_secret_key"
export TRINITY_PUBLIC_KEY="your_public_key"
export TRINITY_HOST="http://your_trinity_host"
Record the Experiment
To use the record function, ensure that you have properly set up your environment and then call the function as shown below:
# Import the Trinity package
import trinityml
# Call the record() function
trinityml.record(
experiment_name=experiment_name,
questions=questions,
contexts=contexts,
generated_prompts=generated_prompts,
answers=answers,
ground_truths=ground_truths,
model_temperature=model_temperature,
top_k=top_k,
model_name=model_name,
prompt_template=prompt_template
)
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
trinityml-0.0.17.tar.gz
(5.0 kB
view details)
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 trinityml-0.0.17.tar.gz.
File metadata
- Download URL: trinityml-0.0.17.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
787e3a9fa7ded2d7cac4b5bc4054d24bc594df9f90072bde21e5a5a2728b9955
|
|
| MD5 |
5ed3aa9083b44a98b809562d5eb20877
|
|
| BLAKE2b-256 |
7d5db03071a8a8c52ede187bcacef2f91d18143cf725ff53c58d3c5bf724d1e0
|
File details
Details for the file trinityml-0.0.17-py3-none-any.whl.
File metadata
- Download URL: trinityml-0.0.17-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13977bdba017b9457328571713a3fc55c51ba9d03e6f2834c3b69d761bf35f09
|
|
| MD5 |
2da7964c54e50276b63e7600d34f7618
|
|
| BLAKE2b-256 |
8239c427d5a194e2b8a63d2fcceeca6aef2d4777d5e6cc3220b1c1550bc48613
|