mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #16419] [MERGED] feat: qdrant client improvements #24123
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/16419
Author: @expruc
Created: 8/9/2025
Status: ✅ Merged
Merged: 8/9/2025
Merged by: @tjbck
Base:
dev← Head:feat/qdrant_improvements📝 Commits (2)
88abd01qdrant client improvements8af9ad3updated query function with scroll too📊 Changes
3 files changed (+34 additions, -13 deletions)
View changed files
📝
backend/open_webui/config.py(+2 -0)📝
backend/open_webui/retrieval/vector/dbs/qdrant.py(+14 -6)📝
backend/open_webui/retrieval/vector/dbs/qdrant_multitenancy.py(+18 -7)📄 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
This PR presents some improvements for the qdrant client, including better control over hnsw config and timeout. Also changed the
getandqueryretrieval logic which should make these faster.Added
QDRANT_TIMEOUTwhich controls the timeout of all the queries to qdrantQDRANT_HNSW_Mwhich controls the way the hnsw index is constructedChanged
getandqueryfunctions retrieval function changed toscrollinstead of the genericquery_pointswhich should improve retrieval speed if no search is used.payload_min multitenancy mode with theQDRANT_HNSW_Mconfig.Additional Information
Tested it mostly on multitenancy mode, but the logic is the same on the non-multitenancy mode
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.