生成式 AI 应用创新引擎,开源的 LLM 应用开发平台。提供从 Agent 构建到 AI workflow 编排、RAG 检索、模型管理等能力,轻松构建和运营生成式 AI 原生应用,比 LangChain 更易用。一个平台,接入全球大型语言模型。不同应用场景,自由体验、无缝切换,实现业务层和模型层解耦。
1.开放灵活的生成式 AI应用开发框架。
Dify 涵盖了构建生成式 AI 原生应用所需的核心技术栈,开发者可以聚焦于创造应用的核心价值。
(1)Dify Orchestration Studio:可视化编排生成式 AI 应用的专业工作站,All in One Place。
cd dify/docker git pull origin main docker compose down docker compose pull docker compose up -d
4.访问Dify
访问 Difyll在浏览器中输入 http://localhost 访问 Dify。
四.相关问题
1.db-1容器restarting
fixing permissions on existing directory /var/lib/postgresql/data ... initdb: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
创建数据卷解决操作权限问题:
# The postgres database. db: image: postgres:15-alpine restart: always environment: PGUSER: postgres # The password for the default postgres user. POSTGRES_PASSWORD: difyai123456 # The name of the default postgres database. POSTGRES_DB: dify # postgres data directory PGDATA: /var/lib/postgresql/data/pgdata volumes: - db_data:/var/lib/postgresql/data # uncomment to expose db(postgresql) port to host # ports: # - "5432:5432" healthcheck: test: [ "CMD", "pg_isready" ] interval: 1s timeout: 3s retries: 30