mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 18:43:44 -05:00
[GH-ISSUE #9695] Why can't the AI recognize the content in the uploaded document? #15613
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 @a506488043 on GitHub (Feb 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9695
Bug Report
Important Notes
Installation Method
I installed OpenWebUI via pip
Environment
Linux My-System 6.8.0-52-generic #53-Ubuntu SMP PREEMPT_DYNAMIC Sat Jan 11 00:06:25 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Google Chrome 132.0.6834.196(正式版本) (64 位)
Confirmation:
ERROR [open_webui.retrieval.utils] Error when querying the collection with hybrid_search: 'NoneType' object has no attribute 'ids'
Traceback (most recent call last):
File "/usr/local/lib/python3.12/dist-packages/open_webui/retrieval/utils.py", line 228, in query_collection_with_hybrid_search
result = query_doc_with_hybrid_search(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/open_webui/retrieval/utils.py", line 137, in query_doc_with_hybrid_search
raise e
File "/usr/local/lib/python3.12/dist-packages/open_webui/retrieval/utils.py", line 124, in query_doc_with_hybrid_search
result = compression_retriever.invoke(query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/langchain_core/retrievers.py", line 259, in invoke
result = self._get_relevant_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/langchain/retrievers/contextual_compression.py", line 44, in _get_relevant_documents
docs = self.base_retriever.invoke(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/langchain/retrievers/ensemble.py", line 118, in invoke
raise e
File "/usr/local/lib/python3.12/dist-packages/langchain/retrievers/ensemble.py", line 115, in invoke
result = self.rank_fusion(input, run_manager=run_manager, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/langchain/retrievers/ensemble.py", line 223, in rank_fusion
retriever.invoke(
File "/usr/local/lib/python3.12/dist-packages/langchain_core/retrievers.py", line 259, in invoke
result = self._get_relevant_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/open_webui/retrieval/utils.py", line 53, in _get_relevant_documents
ids = result.ids[0]
^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'ids'
Expected Behavior:
When referencing a document for a knowledge base;
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!