Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
RAGFlow workspace code commit ID
v0.16.0
RAGFlow image version
v0.16.0 full
Other environment information
Actual behavior
when I use manual to parse pdf, I define some entities, and try to use graphrag, I select the "light" mode. Then the follow error occured.
2025-02-27 15:56:22,613 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,614 INFO 20 HTTP Request: POST http://10.36.162.18:30002/v1/chat/completions "HTTP/1.1 400 Bad Request" 2025-02-27 15:56:22,615 INFO 20 HTTP Request: POST http://10.36.162.18:30002/v1/chat/completions "HTTP/1.1 400 Bad Request" 2025-02-27 15:56:22,616 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,617 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,619 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,620 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,622 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,624 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,625 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,627 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,628 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,630 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,632 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,634 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,635 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,637 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,639 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,641 ERROR 20 error extracting graph Traceback (most recent call last): File "/ragflow/graphrag/light/graph_extractor.py", line 99, in _process_single_content glean_result = self._chat(self._continue_prompt, history, gen_conf) File "/ragflow/graphrag/general/extractor.py", line 63, in _chat raise Exception(response) Exception: **ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,650 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,656 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,662 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,667 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,673 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,679 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,685 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,691 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,697 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,702 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,708 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,714 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,720 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,725 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,731 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,737 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,743 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,749 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,755 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,760 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,766 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,772 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,778 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,784 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,789 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,795 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,801 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,807 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,813 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,818 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,824 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,830 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,836 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,842 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,847 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,853 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,859 INFO 20 set_progress(55715b94f4e011efbcf10242ac120006), progress: None, progress_msg: 15:56:22 Knowledge graph extraction error:**ERROR**: Error code: 400 - {'detail': 'Invalid input. Please specify the prompt.'} 2025-02-27 15:56:22,863 INFO 20 Inserting entities into storage... 2025-02-27 15:56:22,864 INFO 20 Inserting relationships into storage... 2025-02-27 15:56:22,864 WARNING 20 Didn't extract any entities and relationships, maybe your LLM is not working 2025-02-27 15:56:22,864 WARNING 20 Didn't extract any entities 2025-02-27 15:56:22,864 WARNING 20 Didn't extract any relationships
I found that others also submitted the same error, but it hasn't been resolved. I added: print(history, flush=True) at line 46 in /ragflow/rag/llm/chat_model.py.
I restarted the ragflow-server, then checked the logs using the command: docker logs --tail 100 -f ragflow-server, but didn't see any new error output.
Expected behavior
No response
Steps to reproduce
1. create dataset:
2. enable light graph
3. upload document
4. parse document
Additional information
No response