Skip to main content

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

Release files for lighthouse-monitoring 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lighthouse-monitoring 0.1.3
File Size Uploaded
lighthouse_monitoring-0.1.3.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lighthouse-monitoring 0.1.3
File Interpreter ABI Platform
lighthouse_monitoring-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / lighthouse_monitoring-0.1.3.tar.gz

Download URL lighthouse_monitoring-0.1.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f9a60cbbcbcba35d8eacb5677b28b954deb4c1541840f513b87681416f5f5657
BLAKE2b-256 checksum
How to use checksums
c7a6382c50141835ae9c59ce4b30b436adb0a5827a6ea9754bedbd9706d053d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.8.16 Darwin/23.5.0

Release files / lighthouse_monitoring-0.1.3-py3-none-any.whl

Download URL lighthouse_monitoring-0.1.3-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d106abb08339faa3d9ae5ce0d8f4507659efd3b350b55fab7a43f7fb034bb1e6
BLAKE2b-256 checksum
How to use checksums
723111baad160132f581f539af54e42315f55135ec21331012feef028597f54f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.8.16 Darwin/23.5.0

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page