X-ray vision for your LLM. Stream real logprobs to the Yeco-Lens dashboard.
Project description
Yeco-Lens Python SDK
Instrumentation SDK that streams real LLM logprobs to the Yeco-Lens dashboard.
from yeco_lens import YecoLens
yeco = YecoLens() # connects to ws://127.0.0.1:7531 (or YECO_LENS_ENDPOINT)
with yeco.trace(model="gpt-4o", system_prompt="Be concise."):
for chunk in yeco.openai_chat(client, model="gpt-4o", messages=..., top_logprobs=10):
print(chunk.token, end="") # streams to your app AND the dashboard
See the main repo README for the full guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yeco_lens-1.0.0.tar.gz
(9.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yeco_lens-1.0.0.tar.gz.
File metadata
- Download URL: yeco_lens-1.0.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b574c45da109dfd21e103ea471bbf933d30620a808fbe0cf4447d3daba351ff
|
|
| MD5 |
fb07a41f0b48f2a790be1afdb659f087
|
|
| BLAKE2b-256 |
86a0429e2ef929cb3e2e117b77eb09984da63605b1e65438135da6dae42e5cb8
|
File details
Details for the file yeco_lens-1.0.0-py3-none-any.whl.
File metadata
- Download URL: yeco_lens-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1dcbf1d2d2d55f6399fcb78f36a6877d3289b831f782303eab804144addd3b0
|
|
| MD5 |
1adc3b63cf10b702704319e5ae552c77
|
|
| BLAKE2b-256 |
62ded46d9d86ad11c996132e93417bf19061ce3653b8e1888176ef54dab34db4
|