ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: Can't use Generate component as the input of Retrieval component in agent

Open chenbbc opened this issue 1 year ago • 2 comments

Image

Self Checks

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

Describe your problem

I encountered an issue when using the agent module in Ragflow. This problem did not occur in version 0.16 but started appearing in version 0.17. When using the generate component as the input for the Retrieval component during knowledge base searches, the search results are empty. However, if I use interact directly as the input, the knowledge base can return results.

For example, when searching for information related to January,February, if I input the keyword "January,February" directly into interact, I can get relevant results. But if I use generate to produce "January,February" as the input for Retrieval, the search returns nothing.

How can I resolve this issue?

chenbbc avatar Mar 15 '25 02:03 chenbbc

About the retrieval, we've fixed some bugs laterly. What about pulling the nightly version of docker image?

KevinHuSh avatar Mar 17 '25 03:03 KevinHuSh

Thank you for your reply. I pulled the nightly version(0.17.2-26-g89a69eed slim), but the problem is still the same.

chenbbc avatar Mar 17 '25 14:03 chenbbc

我感觉是我遇到的那个格式问题,比方说你输入的文本里面有换行或者\n,他就会出现截断。比方说你的输入是123/n45,他就只检索前面的123。会出现三种情况,一个是文本太少例如一个字符就会直接报错erro,一种是返回空结果,一种是返回知识库无结果。

hero8152 avatar Mar 20 '25 14:03 hero8152

The newer nightly version solved it, thanks。

chenbbc avatar Mar 22 '25 03:03 chenbbc