Cleaned up the query params to be on the same row (if hybrid search is set)
Fixed the api calls to rag/api/v1/query/collection which were broken
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.
🔄 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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
dev← Head:buroa/fixes📝 Commits (1)
5b8fd14fix: 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
rag/api/v1/query/collectionwhich were broken🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.