[GH-ISSUE #5034] If empty [context] RAG should crash #13834

Closed
opened 2026-04-19 20:25:29 -05:00 by GiteaMirror · 0 comments
Owner

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:

  • [ x ] I have read and followed all the instructions provided in the README.md.
  • [ x ] I am on the latest version of both Open WebUI and Ollama.
  • [ x ] I have included the browser console logs.
  • [ x ] I have included the Docker container logs.
  • [ x ] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

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.

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:** - [ x ] I have read and followed all the instructions provided in the README.md. - [ x ] I am on the latest version of both Open WebUI and Ollama. - [ x ] I have included the browser console logs. - [ x ] I have included the Docker container logs. - [ x ] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#13834