AI创想

标题: Dify_SQLAgent:基于 Dify+MCP 的金融数据库 Agent 搭建 [打印本页]

作者: 含湄素依    时间: 昨天 08:40
标题: Dify_SQLAgent:基于 Dify+MCP 的金融数据库 Agent 搭建
作者:CSDN博客
Dify_SQLAgent

The project aims to use the latest AI technology platform to build a dedicated Agent, achieve semi-automated business processes, and comprehensively improve production efficiency and reduce production costs.
代码详见 GitHub:https://github.com/ismxk/Dify_SQLAgent.git
项目介绍

Dify_SQLAgent 项目旨在利用最新的人工智能技术平台,构建一个专属的 Agent,以实现半自动化的业务流程,全面提升生产效率并降低生产成本。项目的核心目标是基于大模型领域的 Dify 和 MCP 技术,构建金融大数据数据库的智能 Agent。
你可以通过 cursor 进行编写代码的同时,方便的检索业务数据库!可以实时测试代码、查看数据库内容 等等。
项目结构

Dify 部分

该部分实现 dify 工作流以及智能体的搭建。
Agent

在 dify 中构建 agent,加入 RAG 知识库(数据库表的详细说明,包括库名、表名、字段名、字段类型、字段介绍等),定义外部工具(自定义的 workflow、其他想用到的工具),定义好 LLM (本地模型 or 闭源模型)、系统 prompt ,使得 LLM 可以通过用户的 query ,提取关键词,检索知识库,构造上下文,发送到 workflow ,最后返回查询结果以及分析。
WorkFlo


原文地址:https://blog.csdn.net/qq_64889217/article/details/147170318




欢迎光临 AI创想 (https://llms-ai.com/) Powered by Discuz! X3.4