Skip to content

Add trace-guided RAG failure mode checklist notebook (WFGY Problem Map No.1–No.16)#2552

Open
onestardao wants to merge 4 commits intolangfuse:mainfrom
onestardao:main
Open

Add trace-guided RAG failure mode checklist notebook (WFGY Problem Map No.1–No.16)#2552
onestardao wants to merge 4 commits intolangfuse:mainfrom
onestardao:main

Conversation

@onestardao
Copy link

Hi Langfuse team,

This PR adds a new cookbook notebook: cookbook/rag_failure_mode_checklist.ipynb.

It demonstrates a simple workflow to:

take a failing RAG/LLM run from Langfuse traces

copy prompt + answer + retrieved context + relevant logs into the notebook

map the failure to a consistent label using a shared failure-mode vocabulary (Problem Map No.1–No.16)

reuse that label inside Langfuse as a tag/metadata field to filter and aggregate recurring failures over time

Notes:

The notebook does not send anything to Langfuse automatically (copy/paste workflow only).

It downloads the WFGY Problem Map and TXTOS prompt directly from GitHub at runtime.

Default configuration is set to the official OpenAI endpoint (https://api.openai.com/v1) with gpt-4o, but users can swap in any OpenAI-compatible base URL/model if desired.

Happy to adjust naming/location/formatting to match the cookbook conventions.

Thanks!

Add a new cookbook notebook that demonstrates how to:

- classify RAG / LLM failures using a structured failure map (No.1–No.16)
- map symptoms from traces to concrete inspection points
- apply minimal structural fixes instead of generic advice

The notebook uses an OpenAI-compatible endpoint and is designed
as a practical debugging checklist for Langfuse users.
@vercel
Copy link

vercel bot commented Feb 18, 2026

@onestardao is attempting to deploy a commit to the langfuse Team on Vercel.

A member of the Team first needs to authorize it.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Feb 18, 2026
@CLAassistant
Copy link

CLAassistant commented Feb 18, 2026

CLA assistant check
All committers have signed the CLA.

@onestardao
Copy link
Author

Noticed that the Vercel preview build failed, which I believe requires maintainer permissions to re-run or fix.

Just let me know if there’s anything I should adjust on my side — happy to update the PR if needed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants