mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #11970] issue: websearch collections causing memory exhaustion in vectordb #31949
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?
Originally created by @patbernard on GitHub (Mar 23, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11970
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Using Docker image
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The current vectordb pattern for websearch uses separate collections for each query and indexing operation. This ends up creating many small collections, which leads to significant resource consumption overhead. The bug is that this approach leads to excessive memory usage and potential exhaustion, particularly with Qdrant, violating best practices.
Reference: https://qdrant.tech/documentation/faq/qdrant-fundamentals/#how-many-collections-can-i-create
The application should efficiently manage vector database resources, perhaps by using a single collection with additional tags and an index for queries and indexing. Memory usage should remain within reasonable bounds even with a high volume of searches and indexing.
Actual Behavior
The application creates separate collections for each query and indexing operation, leading to high memory consumption and potential memory exhaustion of the vector database, specifically Qdrant.
Steps to Reproduce
VECTOR_DB->qdrantQDRANT_URI->http://my.qdrant.instance.local:6333Logs & Screenshots
This is the error I start receiving in Open WebUI server logs after the vector_db starts going out of memory.
Here's a small snippet from the
GET collectionsresults in qdrantAdditional Information
The short-term work-around I am executing for now is having a script that runs periodically to wipe my websearch collections from qdrant.
I haven't tested if this similar issue happens in other vector_dbs.