FlowiseAI / Flowise

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

LunaryAI automatic Thread and User tracking #2667

Open vincelwt opened 2 weeks ago

vincelwt commented 2 weeks ago

Hi!

This PR extends the Lunary integration to automatically report user conversations using the Threads feature (not just the LLM calls), as well as report the user data if lead capture is enabled.

(Lunary is an open-source LLM monitoring toolkit :) ).

This was requested by many of our mutual users.

For example this is a Flowise conversation:

Screenshot 2024-06-18 at 18 58 39

Now visible into Lunary:

Screenshot 2024-06-18 at 18 59 05

Also with full support for tracing each assistant's message:

Screenshot 2024-06-18 at 18 59 18

I extensively tested this (both with and without Lunary enabled) but let me know if something else is required!

Cheers

BigFoxMedia commented 1 week ago

Great contribution! Is this also supporting the open source variant of lunary?

So, if we install lunary locally, can we use your integration in this PR to natively connect to the local variant or only the commercial one?

vincelwt commented 1 week ago

Hi @BigFoxMedia yes absolutely, this is completely compatible with the open-source version. If you install Lunary locally, you just have to set the correct endpoint to http://localhost:3333 in the settings :)