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.6.tar.gz
(4.2 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.6.tar.gz.
File metadata
- Download URL: trinityml-0.0.6.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67dc2f1ce08da3a66cb10c7f555a299e386d2d68f54e6849708b7720987fe69f
|
|
| MD5 |
9830224b62f438b073899a055765aa0a
|
|
| BLAKE2b-256 |
271d8fc777274c0fa1ea5cf047972ee44f9f32d3e4fc30ff97683e68f3bae30a
|
File details
Details for the file trinityml-0.0.6-py3-none-any.whl.
File metadata
- Download URL: trinityml-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24318acd11a3fa91eacd6bbe6a5c8ded7ab0a580d0453a6b1985d7bd5c0dd171
|
|
| MD5 |
26e377555716905937843ed2e1568b9f
|
|
| BLAKE2b-256 |
4903ebdbf869aef47783a332ec9955e96fabff5b3e7de03e3a88df1a94c12346
|