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.1.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.1-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trainloop_llm_logging-0.7.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0

File hashes

Hashes for trainloop_llm_logging-0.7.1.tar.gz
Algorithm Hash digest
SHA256 bd2e4e26dc05092e0abbac2ab91f09f3b55a1eecdf7259b81477e95319a80c6c
MD5 e4ac0fa7a7fde53b923fd8c4348b436f
BLAKE2b-256 ae2f46afffce1577ea21719eaa36d7c2f1064c232b0616696f007962e1619d7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trainloop_llm_logging-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b979d4926a2ed919f0ac9b9c5f89852450202e5119e77270f066f1b1b0cb30a6
MD5 43450cd106d99ecd350aab2feef0edb7
BLAKE2b-256 7607f53edc2e2c98f1b0396b459e6684578bb5d12072fda9df9d6d34ca12e978

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