Introduction
This document describes how to develop Dify on Kunpeng servers, including Dify source code check, web frontend build, and development verification.
Dify is an open-source enterprise-level AI application development platform that integrates the concepts of Backend as a Service (BaaS) and LLMOps. It significantly lowers the barrier to deploying large language models (LLMs) in production through visual process orchestration and Retrieval-Augmented Generation (RAG) knowledge base enhancement. Deploying Dify on Kunpeng servers leverages the high-concurrency, multi-core architecture and optimized instruction set to provide high-performance and cost-effective computing power for tasks such as RAG retrieval and workflow orchestration.
Dify source code verification needs to be performed separately for the API service and web frontend. Therefore, this document verifies the following two aspects:
- The boundary of running the API service based on the service source code is correct.
- The web frontend can generate bootable build products from the source code.
Table 1 describes the source code processing methods and build products corresponding to the API service and web frontend.
Category |
Source Code Handling Method |
Build Product |
Remarks |
|---|---|---|---|
API |
Check the source code version, Python version constraints, and project configuration. |
No build required |
The API is a service process. During running, directly use the api/ source code directory and Python dependency. |
Web frontend |
Build from source code using pnpm install and pnpm build. |
.next/ directory and the Next.js build files in it |
Web is a frontend application. To start it, you need to compile files related to pages, routes, and server rendering. |