mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #5034] If empty [context] RAG should crash #13834
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thiswillbeyourgithub on GitHub (Aug 30, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5034
Bug Report
Installation Method
Docker compose
Environment
Open WebUI Version: 0.3.16
Operating System: ubuntu 22
Browser (if applicable): Brave
Confirmation:
Expected Behavior:
The expected behavior is that if the context is empty an error should happen.
Actual Behavior:
No error happens and thr LLM just hallucinates answer.
Description
Bug Summary:
It seems my RAG setup is broken. No matter what type of document I send, which browser I use etc looking at the traffic via langfuse shows me that the [context] is replaced by an empty string. The purpose of this issue is to add an exception when the context.strip() is empty.
Reproduction Details
Steps to Reproduce:
Irrelevant.