Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yeco_lens-1.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

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

Hashes for yeco_lens-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4b574c45da109dfd21e103ea471bbf933d30620a808fbe0cf4447d3daba351ff
MD5 fb07a41f0b48f2a790be1afdb659f087
BLAKE2b-256 86a0429e2ef929cb3e2e117b77eb09984da63605b1e65438135da6dae42e5cb8

See more details on using hashes here.

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

Hashes for yeco_lens-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1dcbf1d2d2d55f6399fcb78f36a6877d3289b831f782303eab804144addd3b0
MD5 1adc3b63cf10b702704319e5ae552c77
BLAKE2b-256 62ded46d9d86ad11c996132e93417bf19061ce3653b8e1888176ef54dab34db4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page