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)
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
File details
Details for the file llama_index_callbacks_langfuse-0.1.5.tar.gz
.
File metadata
- Download URL: llama_index_callbacks_langfuse-0.1.5.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f74c83391ea796631c9cbca8fa429aaeef9e3bed7f9a206d2576ef5fca072a0d |
|
MD5 | 0707b3e1aaa77c0c76445ce6fcd4d390 |
|
BLAKE2b-256 | 6a7cf9bdc23925153d88ef43851fc8efd9d854bf1a06f70b39d5b9d02b2a89b1 |
File details
Details for the file llama_index_callbacks_langfuse-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: llama_index_callbacks_langfuse-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9b244945c3131c668612f127c80a076d94cdc783a67a55a7a9f687f161bfe04 |
|
MD5 | 8fbd54c938317e7c37e356a408973c46 |
|
BLAKE2b-256 | 8efa42013e9180afa4f593c06862a54fbfbc5f65aff3fc5bb0351c986ce3c234 |