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

Uploaded Python 3

File details

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

File metadata

  • Download URL: trainloop_llm_logging-0.7.5.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.5.tar.gz
Algorithm Hash digest
SHA256 d03ef0ecfab0676e34b85da09a791c41980fd2b84dec45fee4ffec21989e7542
MD5 3962cf71b74363b814131811be787168
BLAKE2b-256 4f510d58d90091681cf67c2d969f510fb1bbe7106081c8ea6133114060ae7cf1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trainloop_llm_logging-0.7.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4c48bd6282e5d5ffc7fdfd3b1a86fa6759384044e1e5441cd5f768a7163a7699
MD5 afd391a9ceac51a017e0add3bd616c2a
BLAKE2b-256 173bdf6aaa8b5fc45bfe33847e56ed8bbeedaa5b4dac2d57cfd1906bfe0a9a87

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