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.6.0.tar.gz (11.1 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.6.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trainloop_llm_logging-0.6.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.2.0

File hashes

Hashes for trainloop_llm_logging-0.6.0.tar.gz
Algorithm Hash digest
SHA256 e8c305e5073127f9e3a3f90d704fc8785e9873c6b0fc0177cbb1aef787e9079c
MD5 ed365710ded5c2f10d6b13b3e61efc3b
BLAKE2b-256 fe4fb1ca1aac59bdecac7f11d1f100d531ca0640dd3a54cca1ca534c23bffc40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trainloop_llm_logging-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0be3c39087df25001d40f079c9cb35fb63558f01da494d6d0d4a0d919175dd43
MD5 868e057fc029b9b0cb4e65ffb956e8c0
BLAKE2b-256 87168b52f925d98019278fd8d37ab66ba8819ae983d8f8ae0f1f2dfc3d5332ed

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