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.10.tar.gz (4.3 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.10-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trinityml-0.0.10.tar.gz
  • Upload date:
  • Size: 4.3 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.10.tar.gz
Algorithm Hash digest
SHA256 53acbf52537343c38affb91175ab44c85175bc9b91a2c2bc05c935909931fa16
MD5 e2b9f51050e4d8c6308b57afb6a54987
BLAKE2b-256 24798af84b35a5e2ac233c9b1629eab641a421ca79fe818d1ddfe5f7d7f70203

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trinityml-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 85b0bf8588d6029d2db04ff67a0a21572d6eb16b9d2909518c05c28cef2a8830
MD5 05cc9969ad29b4a7b715a724ba075c2e
BLAKE2b-256 030c15661616bbe0d305f9bad53245c47575a4bf3b515c12adbbc2f6cb727f09

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