Skip to main content

TrainLoop LLM Logging SDK for data collection

Project description

TrainLoop Evals SDK (Python)

Automatically capture LLM calls from Python apps so they can be graded later.

Install

pip install trainloop-llm-logging

Quick example

from trainloop_llm_logging import collect, trainloop_tag
collect()  # patch HTTP clients
openai.chat.completions.create(..., trainloop_tag("my-tag"))

Set TRAINLOOP_DATA_FOLDER to choose where event files are written or set data_folder in your trainloop.config.yaml file.

See the project README for more details.

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

trainloop_llm_logging-0.7.4.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

trainloop_llm_logging-0.7.4-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file trainloop_llm_logging-0.7.4.tar.gz.

File metadata

  • Download URL: trainloop_llm_logging-0.7.4.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1015-azure

File hashes

Hashes for trainloop_llm_logging-0.7.4.tar.gz
Algorithm Hash digest
SHA256 c5d8b489b8973c183d8f4003e1e949a1b05412c7ffa132d13cc46b8ca720925f
MD5 e009d7a915c48892413512d618d9cb67
BLAKE2b-256 e88131bb6aeed34e473c1b2f2424d5168392da6297c1db7aea3d5a41c37cb440

See more details on using hashes here.

File details

Details for the file trainloop_llm_logging-0.7.4-py3-none-any.whl.

File metadata

  • Download URL: trainloop_llm_logging-0.7.4-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1015-azure

File hashes

Hashes for trainloop_llm_logging-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9f7488866364e75503584ed16f8b69e28fef1a55d801646c045386d8c0fa2493
MD5 6eee2624cff7b8edbd250228aa6db8dd
BLAKE2b-256 c9046e2bd003c0ade8f6c32ad677c65c26f9c2cffdf1f126b3b4083ea7044a34

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