微信扫码
添加专属顾问
我要投稿
利用DeepSeek打造智能金融理财助手,开启自动数据分析新篇章。 核心内容: 1. AI大模型在金融领域的应用及其交互方式 2. XXL-JOB与DeepSeek结合搭建定时数据分析系统 3. DeepSeek模型选择及其本地部署步骤详解
概述
内容创作:比如通过你的名字给你作一首诗。比如给你生成吸引人的广告文案。
聊天机器人:比如客服答疑,比如英语口语陪练。
风险监控:定时监控系统指标,由大模型进行智能分析,发现潜在的风险。
如何搭建系统
搭建Deepseek
搭建XXL-JOB
可以定时发起AI任务请求。
可以把prompt和返回格式放在任务参数上,动态修改。
可以使用广播分片任务,把大任务拆分成多个小任务,加快AI任务运行速度。
方案一:本地部署
定时推送财经新闻
@Componentpublic class AIJob {@Value("${dashscope.api.key}")private String apiKey;@XxlJob(value = "sinaNews")public ReturnT<String> sinaNews() throws Exception {String url = "https://finance.sina.com.cn/topnews/";String model = "deepseek-r1";// promptString jobParam = XxlJobContext.getXxlJobContext().getJobParam();ReturnT<String> rtn = ReturnT.SUCCESS;Document document = Jsoup.connect(url).get();// 定位到“汇总榜”部分Element summaryBlock = document.selectFirst("div.lbti:has(h2:containsOwn(汇总榜))");if (summaryBlock != null) {// 找到该块中的<script>标签Element scriptTag = summaryBlock.parent().selectFirst("script[src]");if (scriptTag != null) {// 提取src属性值String srcValue = scriptTag.attr("src");HttpResponse<String> httpResponse = Unirest.get(srcValue).asString();String news = httpResponse.getBody();Map<String, Object> bodyMap = new HashMap<>();bodyMap.put("model", model);List<Map<String, String>> messagesList = new ArrayList<>();Map<String, String> message = new HashMap<>();message.put("role", "system");message.put("content", jobParam);messagesList.add(message);message = new HashMap<>();message.put("role", "user");message.put("content", "这是今天的财经新闻,帮我按规则解析:" + news );messagesList.add(message);bodyMap.put("messages", messagesList);String bodyJson = new Gson().toJson(bodyMap);Unirest.setTimeouts(120000, 120000); //加大timeout,防止超时退出HttpResponse<JsonNode> jsonHttpResponse =Unirest.post("https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions").header("Authorization", "Bearer " + apiKey).header("Content-Type", "application/json").body(bodyJson).asJson();OpenAIResponse openAIResponse =new Gson().fromJson(jsonHttpResponse.getBody().getObject().toString(), OpenAIResponse.class);rtn.setContent(openAIResponse.getChoices().get(0).getMessage().getContent());XxlJobHelper.log(openAIResponse.getChoices().get(0).getMessage().getContent());//TODO 通过钉钉发送分析总结sendMessage(openAIResponse);} else {rtn.setCode(ReturnT.FAIL_CODE);rtn.setMsg("未找到汇总榜的<script>标签");}} else {rtn.setCode(ReturnT.FAIL_CODE);rtn.setMsg("未找到汇总榜部分");}return rtn;}private void sendMessage(OpenAIResponse message){//TODO}}
定时做金融数据分析
总结
53AI,企业落地大模型首选服务商
产品:场景落地咨询+大模型应用平台+行业解决方案
承诺:免费POC验证,效果达标后再合作。零风险落地应用大模型,已交付160+中大型企业
2025-10-28
2025 Evident AI Index 重磅解读:AI鸿沟之下,你的银行是否已被时代抛弃?
2025-10-21
花旗银行要求8成员工参加AI提示词培训
2025-09-04
人工智能:AI大模型加速金融行业基于AI原生的智能重构
2025-08-25
智能体落地的真相:10%是AI,90%是软件工程
2025-08-22
行业落地分享:浦银理财AI Agent应用案例
2025-08-19
银行业AI治理框架与风险平衡
2025-08-14
金融领域AI任务通用核心能力分类体系
2025-08-12
当AI预见你的消费,看Paypal如何打造"未付先知"的智能支付新世界
2025-09-04
2025-08-25
2025-08-22
2025-08-14
2025-08-06
2025-08-02
2025-08-11
2025-08-19
2025-08-12
2025-10-28