mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-11 08:22:09 -05:00
[PR #11497] [MERGED] feat: Added new k_reranker parameter #61603
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/11497
Author: @mahenning
Created: 3/10/2025
Status: ✅ Merged
Merged: 3/27/2025
Merged by: @tjbck
Base:
dev← Head:k_reranker📝 Commits (8)
41a4cf7Added new k_reranker parameter8b5b3f1Add translation (partially)c877b59Address edge case with k < k_reranker, sort results for cutting offf13948dFixed typoba676b7Use k_reranker also for result merge, and add special sorting use case for ChromaDB5ab789eAdd documentation on chroma special case5f48af5Revert the ordering change with chromadb, not necessary with reranker results9d834a8Merge branch 'dev' into k_reranker📊 Changes
9 files changed (+57 additions, -5 deletions)
View changed files
📝
backend/open_webui/config.py(+5 -0)📝
backend/open_webui/main.py(+2 -0)📝
backend/open_webui/retrieval/utils.py(+20 -5)📝
backend/open_webui/routers/retrieval.py(+8 -0)📝
backend/open_webui/utils/middleware.py(+1 -0)📝
src/lib/components/admin/Settings/Documents.svelte(+18 -0)📝
src/lib/i18n/locales/de-DE/translation.json(+1 -0)📝
src/lib/i18n/locales/en-GB/translation.json(+1 -0)📝
src/lib/i18n/locales/en-US/translation.json(+1 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Additional Information
top_k=100results from the embedding space, then rerank them and give thetop_k_reranker=20document chunks to the LLM. Right now you have to decide to set top k high and clutter the LLM context indow, or use a low top k i embedding space. Embedding🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.