Replies: 1 comment
-
Embedding faild. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When Parsing the file, the task_server reported an error:
2025-02-21 16:51:24,537 INFO 14 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-02-21T16:51:24.537+08:00", "boot_at": "2025-02-21T14:43:46.751+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 47, "current": null}
2025-02-21 16:51:42,049 INFO 14 handle_task begin for task {"id": "1224af84f03111efb5ac0242ac120006", "doc_id": "11108c76f03111efbd580242ac120006", "from_page": 0, "to_page": 4, "retry_count": 0, "kb_id": "f6df62def02911ef9cdb0242ac120006", "parser_id": "naive", "parser_config": {"auto_keywords": 0, "auto_questions": 0, "raptor": {"use_raptor": false}, "graphrag": {"use_graphrag": false}, "chunk_token_num": 128, "delimiter": "\n!?;\u3002\uff1b\uff01\uff1f", "layout_recognize": "DeepDOC", "html4excel": false}, "name": "deepseekxxx.pdf", "type": "pdf", "location": "deepseekxxx.pdf", "size": 134149, "tenant_id": "d53b7862f02811efb68919597628483d", "language": "Chinese", "embd_id": "BAAI/bge-large-zh-v1.5@BAAI", "pagerank": 0, "kb_parser_config": {"auto_keywords": 0, "auto_questions": 0, "raptor": {"use_raptor": false}, "graphrag": {"use_graphrag": false}, "chunk_token_num": 128, "delimiter": "\n!?;\u3002\uff1b\uff01\uff1f", "layout_recognize": "DeepDOC", "html4excel": false}, "img2txt_id": "qwen-vl-max@Tongyi-Qianwen", "asr_id": "paraformer-realtime-8k-v1@Tongyi-Qianwen", "llm_id": "qwen-plus@Tongyi-Qianwen", "update_time": 1740127902030, "task_type": ""}
2025-02-21 16:51:42,065 INFO 14 set_progress(1224af84f03111efb5ac0242ac120006), progress: -1, progress_msg: 16:51:42 [ERROR][Exception]: 'NoneType' object has no attribute 'encode'
2025-02-21 16:51:42,077 ERROR 14 handle_task got exception for task {"id": "1224af84f03111efb5ac0242ac120006", "doc_id": "11108c76f03111efbd580242ac120006", "from_page": 0, "to_page": 4, "retry_count": 0, "kb_id": "f6df62def02911ef9cdb0242ac120006", "parser_id": "naive", "parser_config": {"auto_keywords": 0, "auto_questions": 0, "raptor": {"use_raptor": false}, "graphrag": {"use_graphrag": false}, "chunk_token_num": 128, "delimiter": "\n!?;\u3002\uff1b\uff01\uff1f", "layout_recognize": "DeepDOC", "html4excel": false}, "name": "deepseekxxx.pdf", "type": "pdf", "location": "deepseekxxx.pdf", "size": 134149, "tenant_id": "d53b7862f02811efb68919597628483d", "language": "Chinese", "embd_id": "BAAI/bge-large-zh-v1.5@BAAI", "pagerank": 0, "kb_parser_config": {"auto_keywords": 0, "auto_questions": 0, "raptor": {"use_raptor": false}, "graphrag": {"use_graphrag": false}, "chunk_token_num": 128, "delimiter": "\n!?;\u3002\uff1b\uff01\uff1f", "layout_recognize": "DeepDOC", "html4excel": false}, "img2txt_id": "qwen-vl-max@Tongyi-Qianwen", "asr_id": "paraformer-realtime-8k-v1@Tongyi-Qianwen", "llm_id": "qwen-plus@Tongyi-Qianwen", "update_time": 1740127902030, "task_type": ""}
Traceback (most recent call last):
File "/ragflow/rag/svr/task_executor.py", line 626, in handle_task
do_handle_task(task)
File "/ragflow/rag/svr/task_executor.py", line 489, in do_handle_task
vts, _ = embedding_model.encode(["ok"])
File "<@beartype(api.db.services.llm_service.LLMBundle.encode) at 0x7fea9cbb1d80>", line 31, in encode
File "/ragflow/api/db/services/llm_service.py", line 238, in encode
embeddings, used_tokens = self.mdl.encode(texts)
File "<@beartype(rag.llm.embedding_model.DefaultEmbedding.encode) at 0x7fea9ed9f010>", line 31, in encode
File "/ragflow/rag/llm/embedding_model.py", line 104, in encode
ress.extend(self._model.encode(texts[i:i + batch_size]).tolist())
AttributeError: 'NoneType' object has no attribute 'encode'
query es:
curl -X GET "http://es01:9200/ragflow_d53b7862f02811efb68919597628483d/_search" \
result:
{"took":4,"timed_out":false,"_shards":{"total":1,"successful":1,"skipped":0,"failed":0},"hits":{"total":{"value":0,"relation":"eq"},"max_score":null,"hits":[]}}
What's the problem with that?
Beta Was this translation helpful? Give feedback.
All reactions