mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
issue: Web search via searxng leads to chromadb.errors.InvalidCollectionException: Collection web-search-xxx does not exist. #5272
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 @brx19 on GitHub (May 22, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.10
Ollama Version (if applicable)
LM Studio 0.3.15
Operating System
Windows 11
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Web search results passed to the model
Actual Behavior
When loading a model and executing a web search via searxng exception is being thrown and no context is processed by the UI model gemma-3-27b-it-qat-UD-Q6_K_XL.gguf
Steps to Reproduce
Logs & Screenshots
2025-05-21T10:40:06.237610751Z 2025-05-21 10:40:06.235 | ERROR | open_webui.retrieval.utils:get_doc:106 - Error getting doc web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8: Collection web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8 does not exist. - {}
2025-05-21T10:40:06.237801513Z Traceback (most recent call last):
2025-05-21T10:40:06.237852173Z
2025-05-21T10:40:06.237888153Z File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap
2025-05-21T10:40:06.237938184Z self._bootstrap_inner()
2025-05-21T10:40:06.237975894Z │ └ <function Thread._bootstrap_inner at 0x7ff205028860>
2025-05-21T10:40:06.238020244Z └ <Thread(ThreadPoolExecutor-15_0, started 140675966277312)>
2025-05-21T10:40:06.238059615Z File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
2025-05-21T10:40:06.238099095Z self.run()
2025-05-21T10:40:06.238131225Z │ └ <function Thread.run at 0x7ff205028540>
2025-05-21T10:40:06.238166625Z └ <Thread(ThreadPoolExecutor-15_0, started 140675966277312)>
2025-05-21T10:40:06.238202426Z File "/usr/local/lib/python3.11/threading.py", line 982, in run
2025-05-21T10:40:06.238241206Z self._target(*self._args, **self._kwargs)
2025-05-21T10:40:06.238281756Z │ │ │ │ │ └ {}
2025-05-21T10:40:06.238313157Z │ │ │ │ └ <Thread(ThreadPoolExecutor-15_0, started 140675966277312)>
2025-05-21T10:40:06.238473818Z │ │ │ └ (<weakref at 0x7ff1c4241760; to 'ThreadPoolExecutor' at 0x7ff1c9d09e90>, <_queue.SimpleQueue object at 0x7ff1c4221120>, None,...
2025-05-21T10:40:06.238532618Z │ │ └ <Thread(ThreadPoolExecutor-15_0, started 140675966277312)>
2025-05-21T10:40:06.238571188Z │ └ <function _worker at 0x7ff203f3b920>
2025-05-21T10:40:06.238605769Z └ <Thread(ThreadPoolExecutor-15_0, started 140675966277312)>
2025-05-21T10:40:06.238640119Z File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 83, in _worker
2025-05-21T10:40:06.238681309Z work_item.run()
2025-05-21T10:40:06.238712710Z │ └ <function _WorkItem.run at 0x7ff203f3ba60>
2025-05-21T10:40:06.238752330Z └ <concurrent.futures.thread._WorkItem object at 0x7ff1ca100590>
2025-05-21T10:40:06.238794830Z File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
2025-05-21T10:40:06.238837120Z result = self.fn(*self.args, **self.kwargs)
2025-05-21T10:40:06.238875521Z │ │ ��� │ │ └ {}
2025-05-21T10:40:06.238908441Z │ │ │ │ └ <concurrent.futures.thread._WorkItem object at 0x7ff1ca100590>
2025-05-21T10:40:06.238944551Z │ │ │ └ ()
2025-05-21T10:40:06.238978582Z │ │ └ <concurrent.futures.thread._WorkItem object at 0x7ff1ca100590>
2025-05-21T10:40:06.239015532Z │ └ <function chat_completion_files_handler.. at 0x7ff205029d00>
2025-05-21T10:40:06.239054422Z └ <concurrent.futures.thread._WorkItem object at 0x7ff1ca100590>
2025-05-21T10:40:06.239091382Z
2025-05-21T10:40:06.239154953Z File "/app/backend/open_webui/utils/middleware.py", line 595, in
2025-05-21T10:40:06.239200103Z lambda: get_sources_from_files(
2025-05-21T10:40:06.239233833Z └ <function get_sources_from_files at 0x7ff1d4395120>
2025-05-21T10:40:06.239269084Z
2025-05-21T10:40:06.239295884Z File "/app/backend/open_webui/retrieval/utils.py", line 533, in get_sources_from_files
2025-05-21T10:40:06.239330104Z context = get_all_items_from_collections(collection_names)
2025-05-21T10:40:06.239366284Z │ └ {'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8'}
2025-05-21T10:40:06.239399475Z └ <function get_all_items_from_collections at 0x7ff1d43953a0>
2025-05-21T10:40:06.239432845Z
2025-05-21T10:40:06.239459625Z File "/app/backend/open_webui/retrieval/utils.py", line 245, in get_all_items_from_collections
2025-05-21T10:40:06.239497905Z result = get_doc(collection_name=collection_name)
2025-05-21T10:40:06.239531306Z │ └ 'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8'
2025-05-21T10:40:06.239565086Z └ <function get_doc at 0x7ff1d4395620>
2025-05-21T10:40:06.239598706Z
2025-05-21T10:40:06.239626586Z > File "/app/backend/open_webui/retrieval/utils.py", line 99, in get_doc
2025-05-21T10:40:06.239662677Z result = VECTOR_DB_CLIENT.get(collection_name=collection_name)
2025-05-21T10:40:06.239695707Z │ │ └ 'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8'
2025-05-21T10:40:06.239729447Z │ └ <function ChromaClient.get at 0x7ff1d760c360>
2025-05-21T10:40:06.239766327Z └ <open_webui.retrieval.vector.dbs.chroma.ChromaClient object at 0x7ff1da017bd0>
2025-05-21T10:40:06.239816798Z
2025-05-21T10:40:06.239843918Z File "/app/backend/open_webui/retrieval/vector/dbs/chroma.py", line 126, in get
2025-05-21T10:40:06.239879468Z collection = self.client.get_collection(name=collection_name)
2025-05-21T10:40:06.239912238Z │ │ │ └ 'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8'
2025-05-21T10:40:06.239945429Z │ │ └ <function Client.get_collection at 0x7ff1da0e02c0>
2025-05-21T10:40:06.239980529Z │ └ <chromadb.api.client.Client object at 0x7ff1da008a50>
2025-05-21T10:40:06.240016989Z └ <open_webui.retrieval.vector.dbs.chroma.ChromaClient object at 0x7ff1da017bd0>
2025-05-21T10:40:06.240051009Z
2025-05-21T10:40:06.240078730Z File "/usr/local/lib/python3.11/site-packages/chromadb/api/client.py", line 171, in get_collection
2025-05-21T10:40:06.240116910Z model = self._server.get_collection(
2025-05-21T10:40:06.240148620Z │ │ └ <function SegmentAPI.get_collection at 0x7ff1d74e4540>
2025-05-21T10:40:06.240184560Z │ └ <chromadb.api.segment.SegmentAPI object at 0x7ff1da00aed0>
2025-05-21T10:40:06.240230131Z └ <chromadb.api.client.Client object at 0x7ff1da008a50>
2025-05-21T10:40:06.240266901Z File "/usr/local/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/init.py", line 150, in wrapper
2025-05-21T10:40:06.240308361Z return f(*args, **kwargs)
2025-05-21T10:40:06.240342082Z │ │ └ {'name': 'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8', 'tenant': 'default_tenant', 'database': 'default_...
2025-05-21T10:40:06.240385112Z │ └ (<chromadb.api.segment.SegmentAPI object at 0x7ff1da00aed0>,)
2025-05-21T10:40:06.240418622Z └ <function SegmentAPI.get_collection at 0x7ff1d74e44a0>
2025-05-21T10:40:06.240453232Z File "/usr/local/lib/python3.11/site-packages/chromadb/api/segment.py", line 103, in wrapper
2025-05-21T10:40:06.240491373Z return self._rate_limit_enforcer.rate_limit(func)(*args, **kwargs)
2025-05-21T10:40:06.240525193Z │ │ │ │ │ └ {'name': 'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8', 'tenant': 'default_tenant', 'database': 'default_...
2025-05-21T10:40:06.240563723Z │ │ │ │ └ (<chromadb.api.segment.SegmentAPI object at 0x7ff1da00aed0>,)
2025-05-21T10:40:06.240600924Z │ │ │ └ <function SegmentAPI.get_collection at 0x7ff1d74e4400>
2025-05-21T10:40:06.240636534Z │ │ └ <function SimpleRateLimitEnforcer.rate_limit at 0x7ff1d72dd800>
2025-05-21T10:40:06.240671854Z │ └ <chromadb.rate_limit.simple_rate_limit.SimpleRateLimitEnforcer object at 0x7ff1d729fc10>
2025-05-21T10:40:06.240706204Z └ <chromadb.api.segment.SegmentAPI object at 0x7ff1da00aed0>
2025-05-21T10:40:06.240736985Z File "/usr/local/lib/python3.11/site-packages/chromadb/rate_limit/simple_rate_limit/init.py", line 24, in wrapper
2025-05-21T10:40:06.240788525Z return func(*args, **kwargs)
2025-05-21T10:40:06.240863966Z │ │ └ {'name': 'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8', 'tenant': 'default_tenant', 'database': 'default_...
2025-05-21T10:40:06.240899876Z │ └ (<chromadb.api.segment.SegmentAPI object at 0x7ff1da00aed0>,)
2025-05-21T10:40:06.240921546Z └ <function SegmentAPI.get_collection at 0x7ff1d74e4400>
2025-05-21T10:40:06.240942136Z File "/usr/local/lib/python3.11/site-packages/chromadb/api/segment.py", line 316, in get_collection
2025-05-21T10:40:06.240981966Z raise InvalidCollectionException(f"Collection {name} does not exist.")
2025-05-21T10:40:06.241013867Z └ <class 'chromadb.errors.InvalidCollectionException'>
2025-05-21T10:40:06.241041387Z
2025-05-21T10:40:06.241059027Z chromadb.errors.InvalidCollectionException: Collection web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8 does not exist.
2025-05-21T10:40:06.241079017Z 2025-05-21 10:40:06.237 | ERROR | open_webui.retrieval.utils:get_all_items_from_collections:249 - Error when querying the collection: Collection web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8 does not exist. - {}
2025-05-21T10:40:06.241107107Z Traceback (most recent call last):
2025-05-21T10:40:06.241124407Z
2025-05-21T10:40:06.241138838Z File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap
2025-05-21T10:40:06.241158358Z self._bootstrap_inner()
2025-05-21T10:40:06.241173988Z │ └ <function Thread._bootstrap_inner at 0x7ff205028860>
2025-05-21T10:40:06.241192868Z └ <Thread(ThreadPoolExecutor-15_0, started 140675966277312)>
2025-05-21T10:40:06.241211658Z File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
2025-05-21T10:40:06.241230178Z self.run()
2025-05-21T10:40:06.241246388Z │ └ <function Thread.run at 0x7ff205028540>
2025-05-21T10:40:06.241264259Z └ <Thread(ThreadPoolExecutor-15_0, started 140675966277312)>
2025-05-21T10:40:06.241282239Z File "/usr/local/lib/python3.11/threading.py", line 982, in run
2025-05-21T10:40:06.241300549Z self._target(*self._args, **self._kwargs)
2025-05-21T10:40:06.241317109Z │ │ │ │ │ └ {}
2025-05-21T10:40:06.241333109Z │ │ │ │ └ <Thread(ThreadPoolExecutor-15_0, started 140675966277312)>
2025-05-21T10:40:06.241351849Z │ │ │ └ (<weakref at 0x7ff1c4241760; to 'ThreadPoolExecutor' at 0x7ff1c9d09e90>, <_queue.SimpleQueue object at 0x7ff1c4221120>, None,...
2025-05-21T10:40:06.241373859Z │ │ └ <Thread(ThreadPoolExecutor-15_0, started 140675966277312)>
2025-05-21T10:40:06.241391959Z │ └ <function _worker at 0x7ff203f3b920>
2025-05-21T10:40:06.241409040Z └ <Thread(ThreadPoolExecutor-15_0, started 140675966277312)>
2025-05-21T10:40:06.241426760Z File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 83, in _worker
2025-05-21T10:40:06.241447300Z work_item.run()
2025-05-21T10:40:06.241464570Z │ └ <function _WorkItem.run at 0x7ff203f3ba60>
2025-05-21T10:40:06.241483190Z └ <concurrent.futures.thread._WorkItem object at 0x7ff1ca100590>
2025-05-21T10:40:06.241502030Z File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
2025-05-21T10:40:06.241520910Z result = self.fn(*self.args, **self.kwargs)
2025-05-21T10:40:06.241538141Z │ │ │ │ │ └ {}
2025-05-21T10:40:06.241554091Z │ │ │ │ └ <concurrent.futures.thread._WorkItem object at 0x7ff1ca100590>
2025-05-21T10:40:06.241575181Z │ │ │ └ ()
2025-05-21T10:40:06.241591521Z │ │ └ <concurrent.futures.thread._WorkItem object at 0x7ff1ca100590>
2025-05-21T10:40:06.241610541Z │ └ <function chat_completion_files_handler.. at 0x7ff205029d00>
2025-05-21T10:40:06.241632691Z └ <concurrent.futures.thread._WorkItem object at 0x7ff1ca100590>
2025-05-21T10:40:06.241651291Z
2025-05-21T10:40:06.241665661Z File "/app/backend/open_webui/utils/middleware.py", line 595, in
2025-05-21T10:40:06.241685052Z lambda: get_sources_from_files(
2025-05-21T10:40:06.241701262Z └ <function get_sources_from_files at 0x7ff1d4395120>
2025-05-21T10:40:06.241720902Z
2025-05-21T10:40:06.241735402Z File "/app/backend/open_webui/retrieval/utils.py", line 533, in get_sources_from_files
2025-05-21T10:40:06.241753742Z context = get_all_items_from_collections(collection_names)
2025-05-21T10:40:06.241784072Z │ └ {'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8'}
2025-05-21T10:40:06.241806023Z └ <function get_all_items_from_collections at 0x7ff1d43953a0>
2025-05-21T10:40:06.241823883Z
2025-05-21T10:40:06.241839403Z > File "/app/backend/open_webui/retrieval/utils.py", line 245, in get_all_items_from_collections
2025-05-21T10:40:06.241858983Z result = get_doc(collection_name=collection_name)
2025-05-21T10:40:06.241875683Z │ └ 'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8'
2025-05-21T10:40:06.241892703Z └ <function get_doc at 0x7ff1d4395620>
2025-05-21T10:40:06.241909293Z
2025-05-21T10:40:06.241923603Z File "/app/backend/open_webui/retrieval/utils.py", line 107, in get_doc
2025-05-21T10:40:06.241942454Z raise e
2025-05-21T10:40:06.241958874Z
2025-05-21T10:40:06.241973504Z File "/app/backend/open_webui/retrieval/utils.py", line 99, in get_doc
2025-05-21T10:40:06.241991454Z result = VECTOR_DB_CLIENT.get(collection_name=collection_name)
2025-05-21T10:40:06.242008694Z │ │ └ 'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8'
2025-05-21T10:40:06.242026124Z │ └ <function ChromaClient.get at 0x7ff1d760c360>
2025-05-21T10:40:06.242045684Z └ <open_webui.retrieval.vector.dbs.chroma.ChromaClient object at 0x7ff1da017bd0>
2025-05-21T10:40:06.242065204Z
2025-05-21T10:40:06.242079495Z File "/app/backend/open_webui/retrieval/vector/dbs/chroma.py", line 126, in get
2025-05-21T10:40:06.242098355Z collection = self.client.get_collection(name=collection_name)
2025-05-21T10:40:06.242115725Z │ │ │ └ 'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8'
2025-05-21T10:40:06.242134755Z │ │ └ <function Client.get_collection at 0x7ff1da0e02c0>
2025-05-21T10:40:06.242153985Z │ └ <chromadb.api.client.Client object at 0x7ff1da008a50>
2025-05-21T10:40:06.242171775Z └ <open_webui.retrieval.vector.dbs.chroma.ChromaClient object at 0x7ff1da017bd0>
2025-05-21T10:40:06.242190735Z
2025-05-21T10:40:06.242206046Z File "/usr/local/lib/python3.11/site-packages/chromadb/api/client.py", line 171, in get_collection
2025-05-21T10:40:06.242228196Z model = self._server.get_collection(
2025-05-21T10:40:06.242245426Z │ │ └ <function SegmentAPI.get_collection at 0x7ff1d74e4540>
2025-05-21T10:40:06.242264206Z │ └ <chromadb.api.segment.SegmentAPI object at 0x7ff1da00aed0>
2025-05-21T10:40:06.242282066Z └ <chromadb.api.client.Client object at 0x7ff1da008a50>
2025-05-21T10:40:06.242299656Z File "/usr/local/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/init.py", line 150, in wrapper
2025-05-21T10:40:06.242320466Z return f(*args, **kwargs)
2025-05-21T10:40:06.242337987Z │ │ └ {'name': 'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8', 'tenant': 'default_tenant', 'database': 'default_...
2025-05-21T10:40:06.242358067Z │ └ (<chromadb.api.segment.SegmentAPI object at 0x7ff1da00aed0>,)
2025-05-21T10:40:06.242377727Z └ <function SegmentAPI.get_collection at 0x7ff1d74e44a0>
2025-05-21T10:40:06.242397957Z File "/usr/local/lib/python3.11/site-packages/chromadb/api/segment.py", line 103, in wrapper
2025-05-21T10:40:06.242422527Z return self._rate_limit_enforcer.rate_limit(func)(*args, **kwargs)
2025-05-21T10:40:06.242443487Z │ │ │ │ │ └ {'name': 'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8', 'tenant': 'default_tenant', 'database': 'default_...
2025-05-21T10:40:06.242464617Z │ │ │ │ └ (<chromadb.api.segment.SegmentAPI object at 0x7ff1da00aed0>,)
2025-05-21T10:40:06.242482788Z │ │ │ └ <function SegmentAPI.get_collection at 0x7ff1d74e4400>
2025-05-21T10:40:06.242501218Z │ │ └ <function SimpleRateLimitEnforcer.rate_limit at 0x7ff1d72dd800>
2025-05-21T10:40:06.242521258Z │ └ <chromadb.rate_limit.simple_rate_limit.SimpleRateLimitEnforcer object at 0x7ff1d729fc10>
2025-05-21T10:40:06.242538528Z └ <chromadb.api.segment.SegmentAPI object at 0x7ff1da00aed0>
2025-05-21T10:40:06.242555268Z File "/usr/local/lib/python3.11/site-packages/chromadb/rate_limit/simple_rate_limit/init.py", line 24, in wrapper
2025-05-21T10:40:06.242575138Z return func(*args, **kwargs)
2025-05-21T10:40:06.242590998Z │ │ └ {'name': 'web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8', 'tenant': 'default_tenant', 'database': 'default_...
2025-05-21T10:40:06.242610679Z │ └ (<chromadb.api.segment.SegmentAPI object at 0x7ff1da00aed0>,)
2025-05-21T10:40:06.242628619Z └ <function SegmentAPI.get_collection at 0x7ff1d74e4400>
2025-05-21T10:40:06.242645289Z File "/usr/local/lib/python3.11/site-packages/chromadb/api/segment.py", line 316, in get_collection
2025-05-21T10:40:06.242666309Z raise InvalidCollectionException(f"Collection {name} does not exist.")
2025-05-21T10:40:06.242686399Z └ <class 'chromadb.errors.InvalidCollectionException'>
2025-05-21T10:40:06.242704199Z
2025-05-21T10:40:06.242717839Z chromadb.errors.InvalidCollectionException: Collection web-search-df212421a367e9397c26a72792fc0aac488db3ecad79b97e26d8 does not exist.
Additional Information
No response