mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #14559] [CLOSED] fix utils.py Web Search Vector Retrieval #46551
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/14559
Author: @PVBLIC-F
Created: 5/31/2025
Status: ❌ Closed
Base:
dev← Head:fix/utils📝 Commits (2)
3acd737Update utils.py2f3658dUpdate utils.py📊 Changes
1 file changed (+340 additions, -70 deletions)
View changed files
📝
backend/open_webui/retrieval/utils.py(+340 -70)📄 Description
Vector database queries occurred too quickly after document insertion , before indexing completed in services like Pinecone, leading to inconsistent retrieval behavior.
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
Changed
Deprecated
Removed
Fixed
Logic Flow Fix in get_sources_from_files
Problem: Faulty elif condition prevented web search files from vector retrieval
Change: Modified conditional logic to ensure web search collections flow through vector pipeline
Impact: Web search files now properly reach vector database operations
Race Condition Resolution
Problem: Vector queries happened too quickly after insertion (0.9s), before indexing completed
Change: Replaced blind retry loops with intelligent waiting mechanisms
Impact: Consistent 100% document retrieval vs previous timeouts
Security
Breaking Changes
Additional Information
Screenshots or Videos
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.