Skip to main content

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


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.12.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

trinityml-0.0.12-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file trinityml-0.0.12.tar.gz.

File metadata

  • Download URL: trinityml-0.0.12.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.10

File hashes

Hashes for trinityml-0.0.12.tar.gz
Algorithm Hash digest
SHA256 febe53fc5571e04f75bfbb954c2d1ee4180a931ddf08431e599109502b3a1d66
MD5 af7936b4f40f21876408209cf55bbe96
BLAKE2b-256 d97e85ffea67d2bd101b05a0b0579833a5f0bc0273af0f5b03690f893e83dd24

See more details on using hashes here.

File details

Details for the file trinityml-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: trinityml-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.10

File hashes

Hashes for trinityml-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 bef957ebed80b8b4b819e32a9fc11789d6f6738ebbce0d93d60938296908a02a
MD5 dbdc63dca40f580bc2ef7f2beaf25193
BLAKE2b-256 a2680db6adccf1e26287c7d5ed1b8bf10d27d5aa86068e29f5d57dcca16fc23b

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