Skip to main content

llama-index callbacks langfuse integration

Project description

LlamaIndex Callbacks Integration: Langfuse

Langfuse is an open source LLM engineering platform to help teams collaboratively debug, analyze and iterate on their LLM Applications. With the Langfuse integration, you can seamlessly track and monitor performance, traces, and metrics of your LlamaIndex application. Detailed traces of the LlamaIndex context augmentation and the LLM querying processes are captured and can be inspected directly in the Langfuse UI.

Usage Pattern

import llama_index.core.instrumentation as inst
from llama_index.callbacks.langfuse import LangfuseSpanHandler

langfuse_span_handler = LangfuseSpanHandler(
    public_key="<Your public key>",
    secret_key="<Your secret key>",
    host="<Host URL>",
)
dispatcher = inst.get_dispatcher()
dispatcher.add_span_handler(langfuse_span_handler)

langfuse-tracing

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

llama_index_callbacks_langfuse-0.1.5.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_callbacks_langfuse-0.1.5.tar.gz.

File metadata

File hashes

Hashes for llama_index_callbacks_langfuse-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f74c83391ea796631c9cbca8fa429aaeef9e3bed7f9a206d2576ef5fca072a0d
MD5 0707b3e1aaa77c0c76445ce6fcd4d390
BLAKE2b-256 6a7cf9bdc23925153d88ef43851fc8efd9d854bf1a06f70b39d5b9d02b2a89b1

See more details on using hashes here.

File details

Details for the file llama_index_callbacks_langfuse-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_callbacks_langfuse-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b9b244945c3131c668612f127c80a076d94cdc783a67a55a7a9f687f161bfe04
MD5 8fbd54c938317e7c37e356a408973c46
BLAKE2b-256 8efa42013e9180afa4f593c06862a54fbfbc5f65aff3fc5bb0351c986ce3c234

See more details on using hashes here.

Supported by

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