Skip to main content

Package to use llm monitoring via LightHouse service

Project description

lighthouse-monitoring

Python package with simple to use decorator for llm monitoring

pip install lighthouse-monitoring

Перед применением:

  1. Поднять основной сервис lighthouse-server
  2. Добавить в него анализаторы admin/add_analyzer/
  3. Создать продукт для конкретной модели admin/add_product/
  4. Для каждого анализатора добавить Vault vault/add/. Для каждого анализатора можно получить пример структуры его вольта vault/example/.
  5. Затем использовать декоратор из данной модели

Пример использования

from lighthouse-monitoring import LightHouseHandler

@LightHouseHandler(
    input_param_name="user_input",
    api_key="****",
    address="http://example.ru:8080",
)
async def llm_process(user_id: str, user_input: str) -> str:
    output = await model(user_input)
    return output

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

lighthouse_monitoring-0.1.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

lighthouse_monitoring-0.1.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file lighthouse_monitoring-0.1.3.tar.gz.

File metadata

  • Download URL: lighthouse_monitoring-0.1.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.8.16 Darwin/23.5.0

File hashes

Hashes for lighthouse_monitoring-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f9a60cbbcbcba35d8eacb5677b28b954deb4c1541840f513b87681416f5f5657
MD5 809d0c5e8c9eb8aab571309b3c0a6854
BLAKE2b-256 c7a6382c50141835ae9c59ce4b30b436adb0a5827a6ea9754bedbd9706d053d0

See more details on using hashes here.

File details

Details for the file lighthouse_monitoring-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for lighthouse_monitoring-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d106abb08339faa3d9ae5ce0d8f4507659efd3b350b55fab7a43f7fb034bb1e6
MD5 b7eebfb8e0e93479cea6a6571bf3ae87
BLAKE2b-256 723111baad160132f581f539af54e42315f55135ec21331012feef028597f54f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page