ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: The knowledge and template are used together in the agent

Open setty1007 opened this issue 7 months ago • 1 comments

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

When using both the knowledge and template in the agent, the final output will change the reference to the knowledge base to # # 1$$

setty1007 avatar May 20 '25 07:05 setty1007

The agent in RAGFlow uses both the knowledge base and templates during the generation process by retrieving information from specified knowledge bases, assessing its relevance, and generating responses based on the retrieved information. The templates guide this process, ensuring that the responses are professional and accurate, and include references to the knowledge base in markdown format with appropriate URL links [1][2].

If the final output is altering the reference to the knowledge base to an unexpected format like "# # 1$$", it might be due to a formatting issue in the template or the way the agent processes the references. You may want to check the template settings and ensure that the formatting instructions are correctly specified. Additionally, reviewing the code that handles the formatting of references might help identify any discrepancies.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar May 20 '25 07:05 dosubot[bot]