infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
18.18k stars 1.84k forks source link

[Feature Request]: Rewriting question should consider chat history #2484

Closed Defozo closed 3 days ago

Defozo commented 1 week ago

Is there an existing issue for the same feature request?

Is your feature request related to a problem?

Example: Firstly, a user asks about Michael Jackson and receives an answer. Secondly, a user asks "When was he born?" and doesn't receive an answer because chat history is taken into account only in the last step - when LLM is generating an answer. The workflow exceeds maximum question rewrites as the retrieval doesn't return anything for "When was he born?".

Describe the feature you'd like

I believe question rewrite should take into account chat history so that the question "When was he born?" can be rewritten as "When was Michael Jackson born?".