游乐游手机版
首页/AI教程/文章详情

中小企业数字化转型中业务系统与大模型AI融合落地架构实践

时间:2026-08-15 13:35
{ "type ": "doc ", "content ":[{ "type ": "blockquote ", "attrs ":{ "id ": "9f02e8a7-77fa-44bd-b37a-f715a868a35a ", "textAlign ": "inherit ", "isHoverDragHandle ":false}, "c

面向中小企业数字化:业务系统与大模型 AI 融合落地架构实践

{"type":"doc","content":[{"type":"blockquote","attrs":{"id":"9f02e8a7-77fa-44bd-b37a-f715a868a35a","textAlign":"inherit","isHoverDragHandle":false},"content":[{"type":"paragraph","attrs":{"id":"3842388b-6ad1-4323-adff-1193956e078e","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"摘要:在生成式 AI 快速发展的背景下,传统业务软件正从单纯的流程工具,升级为具备智能决策与内容生成能力的业务载体。许多团队在中小企业数字化转型过程中,直接调用大模型 API 来实现 AI 功能,但上线后往往容易暴露出数据泄露、大模型幻觉、服务稳定性不足,以及业务系统与 AI 强耦合等工程难题。本文结合可落地的分层架构实践,介绍如何将大模型能力安全接入小程序与后台管理系统,并实现 RAG 知识库、多模型适配、安全风控、异步任务调度等关键能力。"}]}]},{"type":"heading","attrs":{"id":"d4cdaf59-ca73-4570-a9ad-5e887e6a791b","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"一、AI 业务集成的工程痛点"}]},{"type":"paragraph","attrs":{"id":"9128eb5f-909e-4c30-bd03-34a679db7800","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"在为中小企业业务系统接入 AI 能力时,很多项目只是做了简单的大模型 API 封装,实际落地后通常会遇到以下工程问题:"}]},{"type":"orderedList","attrs":{"id":"81ed1528-a620-4522-a98a-a4da8c6b7498","start":1,"isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"155f546f-71ff-4faa-8abd-4fa85166e026"},"content":[{"type":"paragraph","attrs":{"id":"311fcbba-52f1-41b6-b914-12381ea252ff","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"业务原始数据直接提交给大模型,缺少脱敏处理与安全隔离,存在明显的企业数据泄露风险;"}]}]},{"type":"listItem","attrs":{"id":"49a75778-93e3-473b-8d91-7ec23e77697e"},"content":[{"type":"paragraph","attrs":{"id":"0d8cc5a8-7119-480c-9405-19ed122f7124","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"直接依赖通用大模型输出,缺少私有知识库支持,容易产生严重幻觉,输出结果与真实业务场景不匹配;"}]}]},{"type":"listItem","attrs":{"id":"dc738ef9-b2b0-439c-9619-aec6fcf9b74c"},"content":[{"type":"paragraph","attrs":{"id":"2605460c-40ce-48f7-b785-3e3699d076dc","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"缺少限流、熔断与降级机制,当大模型接口不稳定时,可能直接拖垮核心业务系统;"}]}]},{"type":"listItem","attrs":{"id":"020cf450-ba9f-4c51-8d4d-d47f757e76a1"},"content":[{"type":"paragraph","attrs":{"id":"2c3d29f1-e19c-4b7b-90b7-78d3ab3901df","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"AI 逻辑与业务代码高度耦合,更换大模型服务商时往往需要大范围修改业务代码;"}]}]},{"type":"listItem","attrs":{"id":"64676561-f128-4288-b75b-6e3c76d4eea8"},"content":[{"type":"paragraph","attrs":{"id":"3ebeb83b-9534-49ed-9278-75877dbea320","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"缺少调用审计与 Token 用量统计,无法有效评估和管控 AI 调用成本;"}]}]},{"type":"listItem","attrs":{"id":"ebde02f5-37dc-486b-9536-6e21241b655f"},"content":[{"type":"paragraph","attrs":{"id":"036104a1-c900-4ed9-9665-b71b50ffe224","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"AI 模块与现有用户权限体系相互割裂,无法直接复用已有的 RBAC 权限控制能力。"}]}]}]},{"type":"paragraph","attrs":{"id":"58a9b890-2e78-4515-863c-2bd6901627b0","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"要想让 AI 能力稳定落地,不能停留在简单调用大模型 API 的层面,而是需要建设完整的 AI 中间适配层架构,将业务系统与外部大模型服务有效隔离。"}]},{"type":"heading","attrs":{"id":"207fce9e-24f5-4a7c-bf2e-20c4c6f61e1f","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"二、整体技术栈选型"}]},{"type":"heading","attrs":{"id":"0b68aadf-6388-4c64-b50b-75d2659a669a","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"后端技术栈"}]},{"type":"bulletList","attrs":{"id":"7b15b625-4489-46a4-9943-5072b8e9676f","isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"c688aa91-60a9-4a11-8418-c7664b9f478c"},"content":[{"type":"paragraph","attrs":{"id":"5da1b921-968e-42c6-b6a4-d03d2232c317","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"业务框架:Spring Boot 3.x / NestJS,可根据项目复杂度与团队技术栈二选一"}]}]},{"type":"listItem","attrs":{"id":"8811a276-eda4-420f-bd30-879e3a1c1a92"},"content":[{"type":"paragraph","attrs":{"id":"2e60871d-852e-4fd7-b1f2-4a6b89ee3f92","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"关系数据库:MySQL 8.0,用于存储核心业务数据"}]}]},{"type":"listItem","attrs":{"id":"44421bcf-e101-493c-81b3-7dd4489f9de1"},"content":[{"type":"paragraph","attrs":{"id":"882eaac2-8c6b-4a17-a0be-a524a01502dd","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"缓存中间件:Redis 7,负责会话存储、接口限流以及向量检索缓存"}]}]},{"type":"listItem","attrs":{"id":"9b31a75c-2326-422f-b074-c633463cf5dc"},"content":[{"type":"paragraph","attrs":{"id":"1c56514b-e788-4eae-b5c5-a7b67e66638d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"消息队列:RabbitMQ,用于处理 AI 长耗时任务的异步解耦"}]}]},{"type":"listItem","attrs":{"id":"29d06de5-4027-4900-b80e-97c9671d1fe8"},"content":[{"type":"paragraph","attrs":{"id":"b5c4726e-0538-411f-844b-3aab539aa993","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"部署方式:Docker 容器化,兼容云服务器与 Serverless 等多种部署模式"}]}]},{"type":"listItem","attrs":{"id":"29ae06a3-ff17-4470-9680-ba3da3649743"},"content":[{"type":"paragraph","attrs":{"id":"b689d593-08a2-4905-8ad0-be26608362b3","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"对象存储:用于保存知识库文档、业务附件与静态资源"}]}]}]},{"type":"heading","attrs":{"id":"1962b862-d11f-4242-9edd-d06fb33f72d7","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"AI 中间层技术组件"}]},{"type":"bulletList","attrs":{"id":"6305b7b1-0d6d-480d-a810-2f2014b0d035","isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"a9e98a19-279c-4300-ac63-a239584b3dea"},"content":[{"type":"paragraph","attrs":{"id":"b6c89cf3-51ea-47f1-8c4e-f8f56e8973a6","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"模型适配器:统一封装多家大模型接口,标准化入参与出参,实现模型无感切换"}]}]},{"type":"listItem","attrs":{"id":"e8da9cc8-a483-4a67-99f5-234d4e74c4c4"},"content":[{"type":"paragraph","attrs":{"id":"7a718944-7b7f-48c4-982d-003bf18365c5","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"RAG 检索增强模块:覆盖文档解析、文本切分、向量化与向量召回等关键流程"}]}]},{"type":"listItem","attrs":{"id":"9de62ee8-0594-4e21-b1db-0304548c4eb6"},"content":[{"type":"paragraph","attrs":{"id":"fa9ebfc9-cbc2-417c-84a8-597ee4d45023","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"Prompt 模板管理:支持模板版本化,避免硬编码 Prompt 分散在业务代码中"}]}]},{"type":"listItem","attrs":{"id":"2bca6366-000e-490b-83b1-2a7968ba1255"},"content":[{"type":"paragraph","attrs":{"id":"8242b001-04ee-4022-b600-68de5fa4d8d9","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"任务调度模块:区分同步问答请求与异步生成任务队列"}]}]},{"type":"listItem","attrs":{"id":"57ed8bce-6dc5-4da9-bda4-79413f2969f8"},"content":[{"type":"paragraph","attrs":{"id":"0edc1093-e666-4552-903d-cc16d2c67100","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"安全中间件:支持输入输出过滤、数据脱敏与全链路调用日志记录"}]}]}]},{"type":"heading","attrs":{"id":"29e6cb16-5302-442f-a04a-5215f796eb3a","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"前端与终端"}]},{"type":"bulletList","attrs":{"id":"d835886a-b83a-4e30-afd3-451d85d1304c","isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"e540a8c9-4bf0-4a9b-8840-478776364a39"},"content":[{"type":"paragraph","attrs":{"id":"d6956608-e703-4903-aeaa-92ad71116e2a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"PC 管理后台:Vue3 + Element‑Plus"}]}]},{"type":"listItem","attrs":{"id":"ccd2f402-e1f2-47e9-8e67-5247fb4901b2"},"content":[{"type":"paragraph","attrs":{"id":"ec813367-dee0-426c-8d54-dc1e33719a64","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"多端应用:uni‑app,实现小程序与 H5 一套代码多端发布"}]}]},{"type":"listItem","attrs":{"id":"270394cb-502d-4948-9de8-d0c746b75961"},"content":[{"type":"paragraph","attrs":{"id":"67bbdc00-9447-4e3b-bba0-a15baaab5c69","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"AI 交互组件:封装通用对话组件,可灵活嵌入各类业务页面"}]}]}]},{"type":"heading","attrs":{"id":"4b7d229b-7326-4c68-a1cb-6fabee4d401f","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"三、分层架构设计"}]},{"type":"paragraph","attrs":{"id":"41c3defa-5e3d-47fa-8f41-62b727dc8f94","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"整体架构可划分为五层:接入网关层、业务服务层、AI 适配中台层、数据存储层以及外部大模型服务层,从而实现业务逻辑与 AI 能力的彻底解耦。"}]},{"type":"paragraph","attrs":{"id":"7f881555-5bd9-476b-a5fb-f5472ca34d5d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"plaintext"}]},{"type":"codeBlock","attrs":{"id":"347456b5-38cc-4072-9ab7-87df4b326105","language":"ja vascript","theme":"atom-one-dark","runtimes":0,"isHoverDragHandle":false,"key":"","languageByAi":"ja vascript"},"content":[{"type":"text","text":"客户端(小程序 / H5 / PC后台)n↓n【接入网关层】n鉴权、跨域、请求限流、参数校验、访问日志n↓n【业务服务层】n用户管理、权限RBAC、业务模块、工作流、业务数据组装n↓n【AI适配中台层】n├─多模型适配器:统一大模型接口封装n├─RAG知识库引擎:文档解析、分块、向量检索召回n├─Prompt模板中心:模板版本管理、变量渲染n├─任务调度:同步接口、MQ异步任务队列n├─安全风控:内容过滤、信息脱敏、调用计量与日志n↓n【数据存储层】nMySQL业务库|Redis缓存|向量数据库|对象存储n↓n【外部大模型服务层】n第三方大模型API服务n"}]},{"type":"heading","attrs":{"id":"9efa463c-7c91-480b-b345-5fe098f35c3e","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"3.1 接入网关层"}]},{"type":"paragraph","attrs":{"id":"1492cee5-ed2c-4e2e-bee7-47c7b8725635","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"网关作为所有请求的统一入口,核心职责包括:"}]},{"type":"orderedList","attrs":{"id":"cb01a40c-4fd2-4d09-89b9-c0fc58b0f049","start":1,"isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"8750c118-2f42-4f08-a5db-70a092215e85"},"content":[{"type":"paragraph","attrs":{"id":"60c7cc6e-dc63-495d-a81e-5b9b01dcbddc","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"统一身份鉴权,复用系统原有的权限控制体系;"}]}]},{"type":"listItem","attrs":{"id":"cf19ffae-7020-4bb3-8eec-7f4784b03286"},"content":[{"type":"paragraph","attrs":{"id":"addc81bf-ed08-4580-8f6d-553ec154dc04","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"针对 AI 相关接口实施独立限流,避免突发调用带来高额模型费用;"}]}]},{"type":"listItem","attrs":{"id":"82dc944a-e3d8-4b86-9b79-85cb27efd3ef"},"content":[{"type":"paragraph","attrs":{"id":"ea351b09-91cf-4ca4-ba9c-4755964350ee","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"完整保留请求日志,便于故障排查、调用审计与安全追踪;"}]}]},{"type":"listItem","attrs":{"id":"70e964cd-629f-4062-b398-db90700df3da"},"content":[{"type":"paragraph","attrs":{"id":"ca2f20fa-0953-4a6c-af70-23c6b4563211","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":"none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0)"}}],"text":"禁止前端直接访问大模型密钥"},{"type":"text","text":",所有大模型调用统一通过后端转发处理。"}]}]}]},{"type":"heading","attrs":{"id":"97fd09e2-480d-43be-b147-9a1d72c914bf","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"3.2 业务服务层"}]},{"type":"paragraph","attrs":{"id":"1252c94b-bdcc-4407-aba6-72deb49a8419","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"业务服务层承载原有全部业务逻辑,AI 在这里被定义为能力扩展,而不是独立存在的新系统。"}]},{"type":"paragraph","attrs":{"id":"8b521bc6-e7de-4a3c-83ed-fe307bd268fc","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":" 业务层主要负责:"}]},{"type":"bulletList","attrs":{"id":"726d85d0-423e-43f4-997b-e43c1b075b0d","isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"6fdfe247-91b4-4be6-8c60-2dafb021ffac"},"content":[{"type":"paragraph","attrs":{"id":"83525af6-dc02-4332-95a4-d63fb9b25a9a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"判断当前用户是否具备 AI 功能的访问权限;"}]}]},{"type":"listItem","attrs":{"id":"f8cf6719-7fc8-4de4-9f5d-3f0c3832eb39"},"content":[{"type":"paragraph","attrs":{"id":"311628c3-d331-4ba1-bb43-728ad366a65d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"组装业务上下文数据,并传递给 AI 中台;"}]}]},{"type":"listItem","attrs":{"id":"ce7557c5-07e1-41fb-8568-1631e26d281a"},"content":[{"type":"paragraph","attrs":{"id":"762b7867-2ec9-4eee-b968-a079d7219cdb","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"接收 AI 返回结果,完成业务合法性校验后,再写入业务数据库。"}]}]}]},{"type":"blockquote","attrs":{"id":"38f0e84d-7e64-44ea-9667-3813b882045e","textAlign":"inherit","isHoverDragHandle":false},"content":[{"type":"paragraph","attrs":{"id":"28f888be-74da-4cc8-afa8-401a0c7d5a54","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"业务层无需关心底层具体使用哪家大模型,只需调用 AI 中台提供的标准化接口即可。"}]}]},{"type":"heading","attrs":{"id":"1c011a92-9e8d-4224-85eb-dd49ce3b3767","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"3.3 AI 适配中台层(核心模块)"}]},{"type":"paragraph","attrs":{"id":"58395834-eb67-4a4e-86e7-5c50e0f959b4","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHand这一层可以说是整套架构的关键所在,主要作用就是把业务系统和外部大模型服务稳稳隔开。tent":[{"type":"text","text":" 对各家大模型 API 进行统一封装,并对外输出标准调用协议。业务侧无需感知底层模型差异,通过配置即可切换服务商;当某一家大模型服务出现故障时,也可以快速切换至兜底方案,保障业务系统持续可用。"}]}]},{"type":"listItem","attrs":{"id":"54ada7c3-3bec-40cf-abe6-ccb2433e54b1"},"content":[{"type":"paragraph","attrs":{"id":"36799c14-babe-4f44-a6ce-6ffa6d3ce863","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":"none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0)"}}],"text":"RAG 私有知识库检索增强"}]},{"type":"paragraph","attrs":{"id":"74bc91c9-824f-4fea-8d2c-92a1c2f9cc16","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":" 支持上传业务文档、产品资料等内容,系统自动完成文档解析、文本分块与向量化,并写入向量数据库。"}]},{"type":"paragraph","attrs":{"id":"a07e2c82-18ec-4d98-a88f-e6b477c10352","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":" 当用户发起 AI 请求时,系统优先检索知识库中的相关片段,再将业务资料与用户问题拼接后提交给大模型,从而有效降低幻觉问题,让输出内容更贴合企业自身业务。"}]}]},{"type":"listItem","attrs":{"id":"0bce9f86-2a05-4159-8ca7-65568767882c"},"content":[{"type":"paragraph","attrs":{"id":"ee28e6d5-5571-4cde-a41f-b602f68669ec","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":"none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0)"}}],"text":"任务调度与安全管控"}]}]}]},{"type":"bulletList","attrs":{"id":"a97f15cf-029d-42f1-b1cb-126368c4faf9","isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"c939df22-453c-43bd-b3f4-23498c519579"},"content":[{"type":"paragraph","attrs":{"id":"e4302880-565e-4fb6-b70a-f086852f431b","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"简短问答可同步返回;文档总结、长文案生成等耗时任务则进入消息队列异步处理;"}]}]},{"type":"listItem","attrs":{"id":"7f95b61c-bf42-4df5-a84d-e6d40f60c7d4"},"content":[{"type":"paragraph","attrs":{"id":"51b7351d-71e6-4ef0-aa17-2f30f6b83b51","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"对输入与输出内容执行安全过滤,敏感业务字段自动脱敏;"}]}]},{"type":"listItem","attrs":{"id":"1bc3e57d-25e8-43a9-9305-f7d7ecebe66f"},"content":[{"type":"paragraph","attrs":{"id":"a008246b-6e35-47df-a0cd-2159d88ce06e","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"统计每次调用的 Token 消耗与调用次数,实现 AI 成本可观测、可分析。"}]}]}]},{"type":"heading","attrs":{"id":"1efa38cd-04c3-4f7d-b793-13232c80cda3","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"四、RAG 问答典型调用流程"}]},{"type":"orderedList","attrs":{"id":"be68955c-778c-4027-8c1f-ab24473e3364","start":1,"isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"726063d2-6842-45ae-baa1-10900e6be248"},"content":[{"type":"paragraph","attrs":{"id":"fa0b8b63-835c-4ad8-9e10-03273fe19e68","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"用户侧发起 AI 问答请求,请求首先到达接入网关;"}]}]},{"type":"listItem","attrs":{"id":"1d6f61f6-aff3-45fb-b552-9c5a43d7fcbb"},"content":[{"type":"paragraph","attrs":{"id":"d4549844-a742-48a6-9e8d-1be42e77993c","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"网关完成身份认证与权限校验后,转发至业务服务层;"}]}]},{"type":"listItem","attrs":{"id":"80b1eeba-3613-4433-a312-c7e3488d5afe"},"content":[{"type":"paragraph","attrs":{"id":"841e643b-8413-4321-b46a-6820aa7572f3","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"业务层组装业务上下文,并调用 AI 中台标准化接口;"}]}]},{"type":"listItem","attrs":{"id":"c221e0d2-1ce0-4a9c-a419-dac64890dfbd"},"content":[{"type":"paragraph","attrs":{"id":"5e44df54-69e6-42b2-80dc-b23983a3a245","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"AI 中台执行向量检索,召回私有知识库中的相关内容片段;"}]}]},{"type":"listItem","attrs":{"id":"3b3d4699-d888-45fc-ba5f-e6fd5dc526f0"},"content":[{"type":"paragraph","attrs":{"id":"dab53e0f-2d00-41e5-8912-bfa791ec3f87","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"将召回片段、用户问题以及版本化 Prompt 模板组合成请求报文;"}]}]},{"type":"listItem","attrs":{"id":"85a9eccf-bfee-44f0-90bf-c11866a48f5d"},"content":[{"type":"paragraph","attrs":{"id":"7f93ca56-1e07-45f0-87e7-a590074e08ad","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"通过模型适配器调用外部大模型服务;"}]}]},{"type":"listItem","attrs":{"id":"6f650c4e-977e-4c2c-8a68-e3486b7690a1"},"content":[{"type":"paragraph","attrs":{"id":"f03bf631-4f66-40b7-9847-c02b078aae00","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"返回结果经过安全风控与脱敏处理;"}]}]},{"type":"listItem","attrs":{"id":"e9c3bd36-bced-4d0c-a2ed-52e0e70bed33"},"content":[{"type":"paragraph","attrs":{"id":"5b97c26d-afb7-4873-8c60-3feb13750fb8","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"结果回传至业务层,业务层完成业务校验后再返回前端;"}]}]},{"type":"listItem","attrs":{"id":"031d0a7d-474b-457e-b544-987388e6d3d8"},"content":[{"type":"paragraph","attrs":{"id":"96d0f0c1-bc7d-4b63-941c-3788e67a2b0d","textAlign":"inherit","indent":0,"color":null,"background":null,"isH全链路的调用信息都会统一落库保存。五、架构带来的工程价值"}}],"text":"全链路调用信息统一落库保存。"}]}]},{"type":"listItem","attrs":{"id":"8071f98b-cd03-4865-abef-2c0e6de8b4e2"},"content":[{"type":"paragraph","attrs":{"id":"6de5cacc-2c6a-4b45-918d-82db76fc71f8","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":"none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0)"}}],"text":"业务与 AI 解耦"}]},{"type":"paragraph","attrs":{"id":"8571fb9a-4c5f-4fe7-8b4f-251518a4c072","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":" 迭代升级 AI 模块或更换大模型服务商时,无需改动上层业务代码。"}]}]},{"type":"listItem","attrs":{"id":"60101425-1127-4f80-b8c0-e7be57fb0361"},"content":[{"type":"paragraph","attrs":{"id":"6de5cacc-2c6a-4b45-918d-82db76fc71f8","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":"none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0)"}}],"text":"业务数据安全可控"}]},{"type":"paragraph","attrs":{"id":"8571fb9a-4c5f-4fe7-8b4f-251518a4c072","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":" 私有业务数据经过检索增强与脱敏处理后再提交给大模型,密钥统一由后端保管,进一步降低泄露风险。"}]}]},{"type":"listItem","attrs":{"id":"34cbf0fe-5fd5-4fc1-9311-253ac01cbdba"},"content":[{"type":"paragraph","attrs":{"id":"77307092-773d-47d9-b6bd-da5e38b3664d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":"none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0)"}}],"text":"调用成本可观测"}]},{"type":"paragraph","attrs":{"id":"85c85d6d-6155-487d-a270-3e38edd3b661","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":" 每一次 AI 调用都会进行埋点统计,可按功能维度、用户维度分析消耗情况,便于持续优化成本。"}]}]},{"type":"listItem","attrs":{"id":"d617e215-3ac2-40cc-9f62-7342cb9fa2a3"},"content":[{"type":"paragraph","attrs":{"id":"5543eaff-fec9-4767-be2d-25bcfa0700a3","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":"none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0)"}}],"text":"能力多场景复用"}]},{"type":"paragraph","attrs":{"id":"5ce4fd6b-4e77-4841-83bc-4455d99c1782","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":" 同一套 AI 中台架构,可同时支撑智能客服、文案生成、文档解析、企业知识库问答等多种业务场景。"}]}]},{"type":"listItem","attrs":{"id":"8b3e58c5-35ce-4c13-8186-efb07ba3d9ad"},"content":[{"type":"paragraph","attrs":{"id":"be017656-76d5-4d6d-94aa-29b5ccf8749f","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":"none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0)"}}],"text":"云环境友好"}]},{"type":"paragraph","attrs":{"id":"a04f40ab-aab6-4031-9ac6-87434f1d3047","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":" 容器化部署支持云服务器、Serverless 等多种云环境,小型项目更节省成本,大型项目则可支持弹性扩容。"}]}]}]},{"type":"heading","attrs":{"id":"f198b99b-21eb-458b-96cb-30b55c54ea42","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"六、业务落地场景"}]},{"type":"paragraph","attrs":{"id":"0f1267a8-8f64-4760-aa75-d209cc6e4d3e","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"基于这套大模型落地架构,可应用于多种中小企业数字化升级场景:"}]},{"type":"orderedList","attrs":{"id":"00a5fd20-ee52-4607-8ec1-bd3676791c8d","start":1,"isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"a7022fd6-71b5-47c4-b47e-65b47ddd9846"},"content":[{"type":"paragraph","attrs":{"id":"7d8bc591-dba4-4d01-91e3-7b024b467182","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"小程序系统集成 AI 能力,实现智能文案生成与智能问答客服;"}]}]},{"type":"listItem","attrs":{"id":"597d422c-6d31-4d1e-8910-dc0b8059c776"},"content":[{"type":"paragraph","attrs":{"id":"d6949e5d-a5b2-46a3-94af-d924fc19d84f","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"SaaS 管理后台场景中的文档解析、业务数据总结与智能辅助;"}]}]},{"type":"listItem","attrs":{"id":"0f50a48d-48cb-47c2-a314-e927984bcad4"},"content":[{"type":"paragraph","attrs":{"id":"d19883f7-6dd5-4156-b86e-8014315c72ef","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"私有知识库系统,面向企业内部资料与业务文档问答;"}]}]},{"type":"listItem","attrs":{"id":"0de2c96a-09c6-4c63-9229-6394a9e8a331"},"content":[{"type":"paragraph","attrs":{"id":"5c54a364-2e6d-4771-9df5-4d6961d96a2c","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"各类行业定制系统的智能化升级与 AI 功能扩展。"}]}]}]},{"type":"blockquote","attrs":{"id":"5c2c7b84-3705-4ef9-bb9d-0fe983906cf0","textAlign":"inherit","isHoverDragHandle":false},"content":[{"type":"paragraph","attrs":{"id":"5d36f50c-69cf-40ff-992b-7312dce28b76","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"在实际项目实践中,更建议将 AI 能力深度嵌入业务流程,避免停留在演示型 Demo 或简单套壳阶段。"}]}]},{"type":"heading","attrs":{"id":"3c822645-07fa-44e2-8c2f-214d0bc8ef08","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"七、总结"}]},{"type":"paragraph","attrs":{"id":"ffb838a9-b67f-4b90-a2c6-6c0b951c6a6c","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"业务系统接入大模型,关键不在于单纯选择性能最强的模型,而在于是否具备合理、稳定、可扩展的工程架构设计。"}]},{"type":"paragraph","attrs":{"id":"6e0f4c0c-ffc4-4fe9-9d6f-21801b37fa37","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":" 通过分层架构设计,将鉴权、限流、RAG 知识库、多模型适配与安全风控统一收敛到独立的 AI 中台,上层业务只需专注于业务本身。这套方案兼顾开发效率、数据安全与成本可控,尤其适合小程序、SaaS 系统以及定制化业务软件进行智能化升级。"}]},{"type":"paragraph","attrs":{"id":"37463948-85c7-4206-a442-45bf7df25eb2","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":"none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0)"}}],"text":"项目实践来源:河北爵图网络科技有限公司"}]},{"type":"paragraph","attrs":{"id":"b766b3e5-e8fc-4d78-ba46-c00d828a5188","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false}}]}","createTime":1786604680,"ext":{"closeTextLink":0,"comment_ban":0,"description":"","focusRead":0},"fa vNum":0,"html":"","isOriginal":0,"likeNum":0,}
来源:https://cloud.tencent.com.cn/developer/article/2725614
上一篇阿里云国际站注册后SAE自动扩容无效实例不就绪排查指南 下一篇云原生视角下传统RPA向智能自动化演进及公有云私有化部署对比
本站内容用于信息整理与展示,如有侵权或内容问题请及时联系处理。

相关推荐

补充同频道和同主题内容,方便继续浏览更多相关内容。

同类最新

继续查看同栏目最近更新的文章。

更多
CAD零基础入门教程:坐标输入、图层管理与基础绘图命令
AI教程 · 2026-09-01

CAD零基础入门教程:坐标输入、图层管理与基础绘图命令

本文面向CAD零基础学习者,系统讲解坐标输入、图层管理与基础绘图命令的核心用法。通过分步实操与常见问题排查,帮助新手建立精确绘图习惯,掌握规范出图的基础能力。

CAD从入门到项目交付:绘图、标注、图块与实战工作流
AI教程 · 2026-09-01

CAD从入门到项目交付:绘图、标注、图块与实战工作流

掌握CAD的核心在于建立“画得准、标得清、复用快、交付稳”的工作流。本文提供从环境设置、高频命令组合、标注规范、图块标准化到项目分阶段交付的完整路径,帮助初学者避免常见返工陷阱,独立完成可检查、可复用、可打印的工程图纸。

Claude Code 登录指南:个人、Teams 与企业账号区分与授权步骤
AI教程 · 2026-09-01

Claude Code 登录指南:个人、Teams 与企业账号区分与授权步骤

本文详细解析 Claude Code 登录前的账号类型区分方法,涵盖个人订阅、Teams 席位与企业 Enterprise 席位的授权路径差异。提供终端登录命令、环境变量排查及常见异常处理步骤,帮助用户快速完成正确授权并避免登录路径混淆。

Claude Code 文件修改前的权限模式配置与命令审批指南
AI教程 · 2026-09-01

Claude Code 文件修改前的权限模式配置与命令审批指南

本文详细介绍Claude Code在修改文件前的权限模式配置方法,包括defaultMode可选值、permissions allow与deny规则设置、多层级配置文件管理以及 status验证技巧,帮助开发者安全高效地使用AI编程助手。

Claude Code接入VS Code后先测扩展和终端命令
AI教程 · 2026-09-01

Claude Code接入VS Code后先测扩展和终端命令

在VS Code中接入Claude Code后,建议优先验证扩展面板与集成终端两条入口。本文提供标准检查顺序、关键命令与常见故障排查路径,帮助你快速确认环境就绪,避免后续开发受阻。