langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
51.67k stars 7.47k forks source link

The advanced workflow orchestration of the chat assistant can automatically connect to the context when used in Dify, but not when using the API #9027

Open cabinai opened 1 month ago

cabinai commented 1 month ago

Self Checks

Dify version

0.9.1

Cloud or Self Hosted

Cloud, Self Hosted (Docker)

Steps to reproduce

The advanced workflow orchestration of the chat assistant can automatically connect to the context when used in Dify, but not when using the API 1.Create an advanced workflow orchestration for the chat assistant 2.Directly carry out the preview test, the first message is "Hello", the second message is "What I said in the last sentence", and the AI successfully returns "Hello in the previous sentence" 3.Using the API test (bring in conversation_id), the first message is "Hello", the second message is "What did I say in the last sentence", and the AI returns "I can't know the content of your last sentence" image

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

dosubot[bot] commented 1 month ago

I found some similar discussions that might be relevant to your issue:

  1. Question Regarding Chat Assistant - Workflow Orchestration Dialogue API: /chat-messages - This discussion is unsolved and was last updated on 2024-08-21. It might provide insights into issues with the chat assistant's workflow orchestration and API usage [1].

  2. I am a self-trained model. Why is there such a significant difference in the accuracy of responses between the dialogue box and API calls? - This unsolved discussion, last updated on 2024-08-16, addresses discrepancies in response accuracy between the dialogue box and API calls, which could be related to your context handling issue [2].

  3. Why doesn't the /chat-messages API allow passes context messages as a list? - This unsolved discussion, last updated on 2024-06-27, discusses limitations in passing context messages through the API, which might be relevant to your problem [3].

These discussions might help you understand the differences in context handling between the Dify platform and the API. If you need further assistance, reviewing these discussions could provide additional context or solutions.

To continue talking to Dosu, mention @dosu.

xiaocuanChina commented 3 weeks ago

Whether there is a suitable solution to the problem in question