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
Перед применением:
- Поднять основной сервис lighthouse-server
- Добавить в него анализаторы
admin/add_analyzer/
- Создать продукт для конкретной модели
admin/add_product/
- Для каждого анализатора добавить Vault
vault/add/
. Для каждого анализатора можно получить пример структуры его вольтаvault/example/
. - Затем использовать декоратор из данной модели
Пример использования
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9a60cbbcbcba35d8eacb5677b28b954deb4c1541840f513b87681416f5f5657 |
|
MD5 | 809d0c5e8c9eb8aab571309b3c0a6854 |
|
BLAKE2b-256 | c7a6382c50141835ae9c59ce4b30b436adb0a5827a6ea9754bedbd9706d053d0 |
File details
Details for the file lighthouse_monitoring-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: lighthouse_monitoring-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.8.16 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d106abb08339faa3d9ae5ce0d8f4507659efd3b350b55fab7a43f7fb034bb1e6 |
|
MD5 | b7eebfb8e0e93479cea6a6571bf3ae87 |
|
BLAKE2b-256 | 723111baad160132f581f539af54e42315f55135ec21331012feef028597f54f |