[PR #1868] [MERGED] 📌 fixed a bug where RAG would not reply after not reading the file correctly #7617

Closed
opened 2025-11-11 17:31:38 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/1868
Author: @Yanyutin753
Created: 4/30/2024
Status: Merged
Merged: 4/30/2024
Merged by: @tjbck

Base: devHead: rag-dev


📝 Commits (1)

  • c0bb32d 📌 fixed a bug where RAG would not reply after not reading the file correctly

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 backend/apps/rag/utils.py (+6 -2)

📄 Description

Pull Request Checklist

Description

fix #1869

📌 fixed a bug where RAG would not reply after not reading the file correctly


Changelog Entry

Fixed

optimize open-webui/backend/apps/rag/utils.py

resolved the error in

  File "/app/backend/apps/rag/utils.py", line 325, in rag_messages
    context_string += "\n\n".join(items)
                      ^^^^^^^^^^^^^^^^^^
TypeError: sequence item 0: expected str instance, NoneType found

Changed

  • fixed a bug where RAG would not reply after not reading the file correctly

Additional Information

At present, it can self-test and run normal operation and reply !!!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/1868 **Author:** [@Yanyutin753](https://github.com/Yanyutin753) **Created:** 4/30/2024 **Status:** ✅ Merged **Merged:** 4/30/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `rag-dev` --- ### 📝 Commits (1) - [`c0bb32d`](https://github.com/open-webui/open-webui/commit/c0bb32d76820fbb6b46fd214c4a06b1d6bdd8c73) 📌 fixed a bug where RAG would not reply after not reading the file correctly ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/rag/utils.py` (+6 -2) </details> ### 📄 Description ## Pull Request Checklist ## Description fix #1869 📌 fixed a bug where RAG would not reply after not reading the file correctly --- ### Changelog Entry ### Fixed optimize open-webui/backend/apps/rag/utils.py resolved the error in ``` File "/app/backend/apps/rag/utils.py", line 325, in rag_messages context_string += "\n\n".join(items) ^^^^^^^^^^^^^^^^^^ TypeError: sequence item 0: expected str instance, NoneType found ``` ### Changed - fixed a bug where RAG would not reply after not reading the file correctly --- ### Additional Information At present, it can self-test and run normal operation and reply !!! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:31:38 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7617