Package to use llm monitoring via LightHouse service
Project description
lighthouse-monitoring
Python package with simple to use decorator for llm 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
Close
Hashes for lighthouse_monitoring-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 708b8fc9d043fb7d16067d21980ff01b7e176a966c4132537191eb976eaa3def |
|
MD5 | b5ce02ce2900585a18099ebe12fe37cf |
|
BLAKE2b-256 | 93d36cef758e87a97c6f466eff4bead4bfdd13a38f4d01d53a657ba35919cb6e |
Close
Hashes for lighthouse_monitoring-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eddfd204979f0be94ad6184f11d4b88e0e24080bea99339f1e1d60c754dd5b4e |
|
MD5 | 5e814e3ff95b656f5370d6f3bc0cd9a6 |
|
BLAKE2b-256 | ab597dee20064e43783a03401098b893bc92b81de74e74e7870156005608053a |