|
|
|
|
|
|
|
|
slug: /tracing |
|
|
slug: /tracing |
|
|
--- |
|
|
--- |
|
|
|
|
|
|
|
|
# Observability & Tracing with Langfuse |
|
|
|
|
|
|
|
|
# Tracing |
|
|
|
|
|
|
|
|
|
|
|
Observability & Tracing with Langfuse. |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
:::info KUDOS |
|
|
|
|
|
This document is contributed by our community contributor [jannikmaierhoefer](https://github.com/jannikmaierhoefer). 👏 |
|
|
|
|
|
::: |
|
|
|
|
|
|
|
|
RAGFlow ships with a built-in [Langfuse](https://langfuse.com) integration so that you can **inspect and debug every retrieval and generation step** of your RAG pipelines in near real-time. |
|
|
RAGFlow ships with a built-in [Langfuse](https://langfuse.com) integration so that you can **inspect and debug every retrieval and generation step** of your RAG pipelines in near real-time. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3. Fill in you Langfuse **Host**, **Public Key** and **Secret Key**. |
|
|
3. Fill in you Langfuse **Host**, **Public Key** and **Secret Key**. |
|
|
4. Click **Save**. |
|
|
4. Click **Save**. |
|
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
|
Once saved, RAGFlow starts emitting traces automatically – no code change required. |
|
|
Once saved, RAGFlow starts emitting traces automatically – no code change required. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
• **spans** for retrieval, ranking and generation steps |
|
|
• **spans** for retrieval, ranking and generation steps |
|
|
• the complete **prompts**, **retrieved documents** and **LLM responses** as metadata |
|
|
• the complete **prompts**, **retrieved documents** and **LLM responses** as metadata |
|
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
|
([Example trace in Langfuse](https://cloud.langfuse.com/project/cloramnkj0002jz088vzn1ja4/traces/0bde9629-4251-4386-b583-26101b8e7561?timestamp=2025-05-09T19%3A15%3A37.797Z&display=details&observation=823997d8-ac40-40f3-8e7b-8aa6753b499e)) |
|
|
([Example trace in Langfuse](https://cloud.langfuse.com/project/cloramnkj0002jz088vzn1ja4/traces/0bde9629-4251-4386-b583-26101b8e7561?timestamp=2025-05-09T19%3A15%3A37.797Z&display=details&observation=823997d8-ac40-40f3-8e7b-8aa6753b499e)) |
|
|
|
|
|
|