A collection of scripts I use for my Open WebUI instance. The main one is react_langfuse_pipe.py
. Langfuse is not needed for this to work. The other scripts are just Langfuse integrations.
If you're not using OpenAI/Ollama/Langfuse just leave their respective valves empty.
You need to add this in the Functions tab in OpenWebUI. It won't affect anything unless you've got any Tools enabled. Apart from streaming/citations related fuff, the implementation is quite straightforward, relying on LangGraph's create_react_agent
.
Modifies OWUI's existing like/dislike buttons to forward the rating to Langfuse. It still creates a dialogue for more information, which doesn't really do anything.
Create a new button for like and dislike, to be used with ENABLE_MESSAGE_RATING=false
. More configurable than langfuse_capture_rating.py
but the theme is a bit off.