Unable to query PDF document from the document library, but inline in the chat #1162

Closed
opened 2025-11-11 14:38:58 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @drupol on GitHub (Jun 7, 2024).

Bug Report

Description

Hello,

I helped into packaging Open-WebUI in Nix these last days (https://github.com/NixOS/nixpkgs/pull/316248, https://github.com/NixOS/nixpkgs/pull/317705) and since then, I'm using it on a server in my basement, so far, I'm super happy, I really love it.

I started to import my "Knowledge Base" why is essentially a directory with PDFs on different topics.

In my document library, I have uploaded this paper: https://hal.science/hal-04482192 which is freely accessible.

image

After a couple of minutes, the embeddings are done, and I open a new chat, select that document using # <tab>, and submit my request.

image

But I never get a reply... see the log below.

jun 07 08:10:52 nixos open-webui[2524022]: INFO:apps.ollama.main:generate_ollama_embeddings model='mxbai-embed-large:latest' prompt='Can you summarize this?' options=None keep_alive=None
jun 07 08:10:52 nixos open-webui[2524022]: INFO:apps.ollama.main:url: http://127.0.0.1:11434
jun 07 08:10:52 nixos open-webui[2524022]: INFO:apps.ollama.main:generate_ollama_embeddings {'embedding': [0.37043070793151855, -0.06566978245973587, -0.3806518316268921, 0.8437524437904358, 0.019884765148162842, -0.698334276676178, -0.18634085357189178, -0.40700265765190125, 0.16011814773082733, 0.4908120632171631, ...<hundred-of-lines-here-removed-for-brevity>... -0.7956122756004333, -0.0767681896686554, -0.17286916077136993, 0.8422256708145142, 0.6626044511795044, 0.01473831944167614, -0.1939517855644226, -0.09396416693925858, 0.1517101526260376]}
jun 07 08:11:24 nixos open-webui[2524022]: [47B blob data]
jun 07 08:11:24 nixos systemd[1]: open-webui.service: Main process exited, code=dumped, status=8/FPE
jun 07 08:11:24 nixos systemd[1]: open-webui.service: Failed with result 'core-dump'.
jun 07 08:11:24 nixos systemd[1]: open-webui.service: Consumed 25.017s CPU time, received 7.9M IP traffic, sent 1.7M IP traffic.
^

At this point, the open-webui systemd service is dead and I must restart it to get it working again.

However, when I try to make a query on the same document I upload inline in the chat window, it works pretty fine:

image

I don't use specific settings or a fancy model:

image

Environment

  • Open WebUI Version: 0.2.5
  • Ollama (if applicable): 0.1.41
  • Operating System: Linux NixOS
  • Browser (if applicable): Firefox

Reproduction Details

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.

Installation Method

A couple of lines in the NixOS configuration file:

    services = {
      open-webui = {
        enable = true;
        environment = {
          OLLAMA_API_BASE_URL = "http://127.0.0.1:11434";
          HF_HOME = "/var/lib/open-webui/";
          SENTENCE_TRANSFORMERS_HOME = "/var/lib/open-webui/";
          WEBUI_AUTH = "False";
        };
        openFirewall = true;
        host = "0.0.0.0";
      };

      ollama = {
        enable = true;
      };
    };

Additional Information

Note

If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

Originally created by @drupol on GitHub (Jun 7, 2024). # Bug Report ## Description Hello, I helped into packaging Open-WebUI in Nix these last days (https://github.com/NixOS/nixpkgs/pull/316248, https://github.com/NixOS/nixpkgs/pull/317705) and since then, I'm using it on a server in my basement, so far, I'm super happy, I really love it. I started to import my "Knowledge Base" why is essentially a directory with PDFs on different topics. In my document library, I have uploaded this paper: https://hal.science/hal-04482192 which is freely accessible. ![image](https://github.com/open-webui/open-webui/assets/252042/b516403c-7a67-4d45-8bbb-8b0dab6e8ac1) After a couple of minutes, the embeddings are done, and I open a new chat, select that document using `# <tab>`, and submit my request. ![image](https://github.com/open-webui/open-webui/assets/252042/4474679c-c8ec-4643-add1-f4f1cfc8f7c1) But I never get a reply... see the log below. <details> ``` jun 07 08:10:52 nixos open-webui[2524022]: INFO:apps.ollama.main:generate_ollama_embeddings model='mxbai-embed-large:latest' prompt='Can you summarize this?' options=None keep_alive=None jun 07 08:10:52 nixos open-webui[2524022]: INFO:apps.ollama.main:url: http://127.0.0.1:11434 jun 07 08:10:52 nixos open-webui[2524022]: INFO:apps.ollama.main:generate_ollama_embeddings {'embedding': [0.37043070793151855, -0.06566978245973587, -0.3806518316268921, 0.8437524437904358, 0.019884765148162842, -0.698334276676178, -0.18634085357189178, -0.40700265765190125, 0.16011814773082733, 0.4908120632171631, ...<hundred-of-lines-here-removed-for-brevity>... -0.7956122756004333, -0.0767681896686554, -0.17286916077136993, 0.8422256708145142, 0.6626044511795044, 0.01473831944167614, -0.1939517855644226, -0.09396416693925858, 0.1517101526260376]} jun 07 08:11:24 nixos open-webui[2524022]: [47B blob data] jun 07 08:11:24 nixos systemd[1]: open-webui.service: Main process exited, code=dumped, status=8/FPE jun 07 08:11:24 nixos systemd[1]: open-webui.service: Failed with result 'core-dump'. jun 07 08:11:24 nixos systemd[1]: open-webui.service: Consumed 25.017s CPU time, received 7.9M IP traffic, sent 1.7M IP traffic. ^ ``` At this point, the `open-webui` systemd service is dead and I must restart it to get it working again. </details> However, when I try to make a query on the same document I upload inline in the chat window, it works pretty fine: ![image](https://github.com/open-webui/open-webui/assets/252042/8fa421b5-56c8-4254-bf86-228b29a3fb84) I don't use specific settings or a fancy model: ![image](https://github.com/open-webui/open-webui/assets/252042/3516d70a-f99c-4b42-9984-d6762d5a3b3e) ## Environment - **Open WebUI Version:** 0.2.5 - **Ollama (if applicable):** 0.1.41 - **Operating System:** Linux NixOS - **Browser (if applicable):** Firefox ## Reproduction Details **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. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. ## Installation Method A couple of lines in the NixOS configuration file: ```nix services = { open-webui = { enable = true; environment = { OLLAMA_API_BASE_URL = "http://127.0.0.1:11434"; HF_HOME = "/var/lib/open-webui/"; SENTENCE_TRANSFORMERS_HOME = "/var/lib/open-webui/"; WEBUI_AUTH = "False"; }; openFirewall = true; host = "0.0.0.0"; }; ollama = { enable = true; }; }; ``` ## Additional Information ## Note If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1162