Skip to content
Discussion options

You must be logged in to vote

Hi @xyzhu68! I'm Dosu and I’m helping the ragflow team.

When you chat with the RAGFlow API using chat_id, the system prompt is automatically used. If you do not provide a custom prompt configuration, the API assigns a default system prompt, which includes a section referencing the knowledge base with the placeholder {knowledge}. This variable is not optional and must be present in the system prompt for proper knowledge base integration. The {knowledge} variable is a reserved placeholder that RAGFlow replaces with the actual content (chunks) retrieved from your selected knowledge base(s) during each API call—it should not be manually replaced with the knowledge base name; just keep it as {…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xyzhu68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant