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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| lighthouse_monitoring-0.1.3.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|