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

Uploaded Python 3

File details

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

File metadata

  • Download URL: trainloop_llm_logging-0.7.2.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.2.tar.gz
Algorithm Hash digest
SHA256 7075a951f978b79ff92cb7f0919afa900f8d394ec0a22b5257e1767bef022ce9
MD5 99409223a41c3e38221e1b4c02ea7786
BLAKE2b-256 388822b4d64c5feada2d9ec94ef5cbec8c0eb4da6f45dd4f9117f55618f6d9bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trainloop_llm_logging-0.7.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6e7a3400a9745ea4dccf54ba94e5ed5c5fd0fac27519ec9a6a94d46cd16f0dcc
MD5 9220101f7155380315a1d18554819e55
BLAKE2b-256 ceee9d489f65be4bca048fba1228f1fb835310d5c94dc70b6d7cc2e0c1e051d0

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