Skip to content

[Question]: Strange issue, Chat doesn't retrieve answer from knowledge base on latest source code #12347

@simonjhy

Description

@simonjhy

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Describe your problem

Chat doesn't retrieve answer from knowledge. The knowledge is worked when I use the search. I start ragflow docker base on latest git main version. After I uplaod a document. I meet one strange issue that the chat can not search the query content, but I can manually query content in knowledge.

Image

I searched the log of docker-ragflow-cpu-1, find several logs show errors while server executed some tasks.

Image

when I use workfolw to define a agent and test. I found an error

2025-12-31 11:01:49,995 ERROR 17 'LLMBundle' object has no attribute 'chat'
Traceback (most recent call last):
File "/ragflow/graphrag/search.py", line 161, in retrieval
ty_kwds, ents = self.query_rewrite(llm, qst, [index_name(tid) for tid in tenant_ids], kb_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ragflow/graphrag/search.py", line 49, in query_rewrite
result = self._chat(llm, hint_prompt, [{"role": "user", "content": "Output:"}], {})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ragflow/graphrag/search.py", line 39, in _chat
response = llm_bdl.chat(system, history, gen_conf)
^^^^^^^^^^^^
AttributeError: 'LLMBundle' object has no attribute 'chat'
2025-12-31 11:01:50,089 INFO 17 POST http://es01:9200/ragflow_4a910a08e58c11f0966baa6ad0bc0da0/_search [status:200 duration:0.014s]
2025-12-31 11:01:50,192 INFO 17 POST http://es01:9200/ragflow_4a910a08e58c11f0966baa6ad0bc0da0/_search [status:200 duration:0.016s]
2025-12-31 11:01:50,192 INFO 17 Retrieved entities: []
2025-12-31 11:01:50,193 INFO 17 Retrieved relations: []
2025-12-31 11:01:50,193 INFO 17 Retrieved entities from types([]): []
2025-12-31 11:01:50,193 INFO 17 Retrieved N-hops: []
2025-12-31 11:01:50,209 INFO 17 POST http://es01:9200/ragflow_4a910a08e58c11f0966baa6ad0bc0da0/_search [status:200 duration:0.007s]
2025-12-31 11:01:50,242 INFO 17 POST http://es01:9200/ragflow_4a910a08e58c11f0966baa6ad0bc0da0/_search [status:200 duration:0.007s]
2025-12-31 11:01:50,243 ERROR 17 'LLMBundle' object has no attribute 'chat'
Traceback (most recent call last):
File "/ragflow/graphrag/search.py", line 161, in retrieval
ty_kwds, ents = self.query_rewrite(llm, qst, [index_name(tid) for tid in tenant_ids], kb_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ragflow/graphrag/search.py", line 49, in query_rewrite
result = self._chat(llm, hint_prompt, [{"role": "user", "content": "Output:"}], {})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ragflow/graphrag/search.py", line 39, in _chat
response = llm_bdl.chat(system, history, gen_conf)
^^^^^^^^^^^^
AttributeError: 'LLMBundle' object has no attribute 'chat'

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working, pull request that fix bug.🙋‍♀️ questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions