dify-docs/en/guides/application-orchestrate
Mark Sun 38cad79b54
En cn sync (#114)
* Align en cn folder structure

* Fix folder structure

* Align folder structure

* Machine translation of cn to en
2024-06-17 17:35:59 +08:00
..
app-toolkits En cn sync (#114) 2024-06-17 17:35:59 +08:00
prompt-engineering En cn sync (#114) 2024-06-17 17:35:59 +08:00
README.md En cn sync (#114) 2024-06-17 17:35:59 +08:00
agent.md En cn sync (#114) 2024-06-17 17:35:59 +08:00
conversation-application.md En cn sync (#114) 2024-06-17 17:35:59 +08:00
creating-an-application.md En cn sync (#114) 2024-06-17 17:35:59 +08:00
llms-use-faq.md En cn sync (#114) 2024-06-17 17:35:59 +08:00
overview.md En cn sync (#114) 2024-06-17 17:35:59 +08:00
text-generation-application.md En cn sync (#114) 2024-06-17 17:35:59 +08:00

README.md

Application Orchestration

In Dify, an "application" refers to a practical scenario application built on large language models like GPT. By creating an application, you can apply intelligent AI technology to specific needs. It encompasses both the engineering paradigm for developing AI applications and the specific deliverables.

In short, an application provides developers with:

  • A user-friendly API that can be directly called by backend or frontend applications, authenticated via Token
  • A ready-to-use, aesthetically pleasing, and hosted WebApp, which you can further develop using the WebApp template
  • An easy-to-use interface that includes prompt engineering, context management, log analysis, and annotation

You can choose any one or all of these to support your AI application development.

Application Types

Dify offers four types of applications:

  • Chat Assistant: A conversational assistant built on LLM
  • Text Generation: An assistant for text generation tasks such as writing stories, text classification, translation, etc.
  • Agent: A conversational intelligent assistant capable of task decomposition, reasoning, and tool invocation
  • Workflow: Defines more flexible LLM workflows based on process orchestration

The differences between Text Generation and Chat Assistant are shown in the table below:

Text GenerationChat Assistant
WebApp InterfaceForm + ResultsChat-based
WebAPI Endpointcompletion-messageschat-messages
Interaction ModeOne question, one answerMulti-turn conversation
Streaming ResultsSupportedSupported
Context PreservationPer sessionContinuous
User Input FormSupportedSupported
Datasets and PluginsSupportedSupported
AI Opening RemarksNot supportedSupported
Example ScenariosTranslation, judgment, indexingChatting