ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: How to save the original input?

Open hit-wsy opened this issue 11 months ago • 4 comments

Describe your problem

For example, there is now a workflow where I want to implement the following function: first, use input to search for content in a specified knowledge base. Once relevant information is found, output it directly. If there is no relevant information, use the general knowledge base to retrieve and reply with a large model. However, I encountered a problem where when the content was not retrieved in the first step, the content passed to the general retrieval also becomes empty, meaning the original problem disappears. I want to know how to solve this problem.

Image

hit-wsy avatar Feb 17 '25 08:02 hit-wsy

What about setting up input reference to Retrieval?

Image

KevinHuSh avatar Feb 18 '25 01:02 KevinHuSh

I have tried to do this, but after setting it up, when the workflow reaches this point, the input displayed becomes the first retrieval. I don't know if this is a bug. If the input interface is directly connected to the second step retrieval, it means that the second step retrieval must always be performed, which is obviously not what I want to achieve.

Image

Image

hit-wsy avatar Feb 18 '25 02:02 hit-wsy

I can't reproduce it for nightly version of docker image. Give it a try that pull the nightly again.

KevinHuSh avatar Feb 18 '25 04:02 KevinHuSh

Okay, I will try it in the new version, but please let me show you the details. This is a very simple workflow, as you have shown, the problem lies in the last image, where the set input does not match the actual input. The content of the two knowledge bases is not important. In fact, when the content returned by Retrieveval_1 is empty, this workflow will get stuck in Retrieveval_1 precisely because the input provided to it is empty, but theoretically it should be the original input.

Image

Image

Image

Image

hit-wsy avatar Feb 18 '25 06:02 hit-wsy