[PR #1858] [MERGED] fix: various rag api calls and ui cleanup #91853

Closed
opened 2026-05-15 17:22:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/1858
Author: @buroa
Created: 4/29/2024
Status: Merged
Merged: 4/29/2024
Merged by: @tjbck

Base: devHead: buroa/fixes


📝 Commits (1)

  • 5b8fd14 fix: various api rag results

📊 Changes

6 files changed (+55 additions, -37 deletions)

View changed files

📝 backend/apps/rag/main.py (+6 -6)
📝 backend/apps/rag/utils.py (+16 -14)
📝 src/lib/components/admin/UserChatsModal.svelte (+4 -1)
📝 src/lib/components/documents/Settings/General.svelte (+27 -14)
📝 src/lib/components/layout/Sidebar/ChatMenu.svelte (+1 -1)
📝 src/lib/i18n/locales/de-DE/translation.json (+1 -1)

📄 Description

  1. Cleaned up the query params to be on the same row (if hybrid search is set)
  2. Fixed the api calls to rag/api/v1/query/collection which were broken
  3. Hybrid search without a reranker uses embeddings with a cosine similarity, so their score is always 0.0 - 1.0; just like a reranking model. So always reverse the filter.
Screenshot 2024-04-29 at 12 18 24 PM

🔄 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/1858 **Author:** [@buroa](https://github.com/buroa) **Created:** 4/29/2024 **Status:** ✅ Merged **Merged:** 4/29/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `buroa/fixes` --- ### 📝 Commits (1) - [`5b8fd14`](https://github.com/open-webui/open-webui/commit/5b8fd144702afd217873e636853659f80596ecab) fix: various api rag results ### 📊 Changes **6 files changed** (+55 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/rag/main.py` (+6 -6) 📝 `backend/apps/rag/utils.py` (+16 -14) 📝 `src/lib/components/admin/UserChatsModal.svelte` (+4 -1) 📝 `src/lib/components/documents/Settings/General.svelte` (+27 -14) 📝 `src/lib/components/layout/Sidebar/ChatMenu.svelte` (+1 -1) 📝 `src/lib/i18n/locales/de-DE/translation.json` (+1 -1) </details> ### 📄 Description 1. Cleaned up the query params to be on the same row (if hybrid search is set) 2. Fixed the api calls to `rag/api/v1/query/collection` which were broken 3. Hybrid search without a reranker uses embeddings with a cosine similarity, so their score is always 0.0 - 1.0; just like a reranking model. So always reverse the filter. <img width="864" alt="Screenshot 2024-04-29 at 12 18 24 PM" src="https://github.com/open-webui/open-webui/assets/36205263/0f305d8e-c277-470b-8c9d-6af2f5ad10d6"> --- <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 2026-05-15 17:22:06 -05: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#91853