When rag's chatbot is called through the api, the llm context is lost #3372

Closed
opened 2026-02-21 17:57:00 -05:00 by yindo · 0 comments
Owner

Originally created by @jiandanfeng on GitHub (May 16, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.7

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Create a RAG chatbot
    2.Call via api
    3.Tracing logs show that the llm context is lost
    image
    image
    4.During the debug and preview execution of the orchestration, view the trace log, the context is normal, as shown in the following figure
    image

✔️ Expected Behavior

The context of the llm is not lost
image

Actual Behavior

The context of the llm is lost

Originally created by @jiandanfeng on GitHub (May 16, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.7 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Create a RAG chatbot 2.Call via api 3.Tracing logs show that the llm context is lost ![image](https://github.com/langgenius/dify/assets/24525960/e96305a1-9be0-4980-a2ee-ae2ccc5b7262) ![image](https://github.com/langgenius/dify/assets/24525960/ca84b467-9182-4a6a-9e1a-3fd13853386e) 4.During the debug and preview execution of the orchestration, view the trace log, the context is normal, as shown in the following figure ![image](https://github.com/langgenius/dify/assets/24525960/9d826d63-69a8-421e-86be-9713c9815a44) ### ✔️ Expected Behavior The context of the llm is not lost ![image](https://github.com/langgenius/dify/assets/24525960/9d826d63-69a8-421e-86be-9713c9815a44) ### ❌ Actual Behavior The context of the llm is lost
yindo closed this issue 2026-02-21 17:57:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#3372