mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
AttributeError: 'NoneType' object has no attribute 'encode' #3825
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 @Yepeng-hup on GitHub (Feb 14, 2025).
Upload files to the knowledge base error!
Traceback (most recent call last): File "D:\python3-11\Lib\site-packages\open_webui\routers\retrieval.py", line 961, in process_file raise e File "D:\python3-11\Lib\site-packages\open_webui\routers\retrieval.py", line 933, in process_file result = save_docs_to_vector_db( ^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python3-11\Lib\site-packages\open_webui\routers\retrieval.py", line 806, in save_docs_to_vector_db raise e File "D:\python3-11\Lib\site-packages\open_webui\routers\retrieval.py", line 784, in save_docs_to_vector_db embeddings = embedding_function( ^^^^^^^^^^^^^^^^^^^ File "D:\python3-11\Lib\site-packages\open_webui\retrieval\utils.py", line 265, in <lambda> return lambda query, user=None: embedding_function.encode(query).tolist() ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'encode'