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.5.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.5.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trainloop_llm_logging-0.5.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.2 Darwin/24.2.0

File hashes

Hashes for trainloop_llm_logging-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b5f8b5902d921ed12bb643edd5f6498f1d1bc5f1349de07f0054a924799c7c83
MD5 01c32edd406aff994b6dd99acf93fcb7
BLAKE2b-256 0062c5a97fa1b440c04f312f267134076dc96368e135d7d3f6bb9bf54a1d7ed9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trainloop_llm_logging-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 434ef8ff23081ba68b20284927e50e97bdf3d341b4b60fd5fd6d98731a9f7ccc
MD5 77f3078f75ae4989fb2d4f42a2a9f79e
BLAKE2b-256 594a8d42359da26195118630cb050810b7c74bbfc4d9edff14645450761d3f04

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