FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
27.16k stars 13.99k forks source link

[BUG] Langfuse incomplete trace when prompt chaining #2247

Open AdamSGit opened 2 months ago

AdamSGit commented 2 months ago

Describe the bug When chaining prompts on a flow (see prompt chaining example in flows library), and configure Langfuse to analyse the flow, only the last llm chain, trace and generation is tracked.

To Reproduce Steps to reproduce the behavior:

  1. Create a flow from the prompt chaining example
  2. Use a langfuse local instance or the langfuse cloud
  3. Configure langfuse tracking in the flow
  4. Run the flow

Expected behavior All the chained generations are correctly tracked by langfuse

Thanks

HenryHengZJ commented 2 months ago

working on it! https://github.com/FlowiseAI/Flowise/pull/2195