人工智能初体验(二):开发简单的图灵智能聊天工具

简介:

一 API Key申请

申请地址:http://www.tuling123.com/

中间的注册登录过程不说,最后把API Key值记录下来

wKioL1Z6wKnBTZM-AACsrY_4uSo226.png

二 核心功能开发

这个小项目的目录结构:

wKiom1Z6wLqQcmKIAAAUJMMUXq4852.png

核心功能文件TuringRobot.java,代码很简单,一看就明白,代码如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package  action;
 
import  java.io.BufferedReader;
import  java.io.IOException;
import  java.io.InputStream;
import  java.io.InputStreamReader;
import  java.io.UnsupportedEncodingException;
import  java.net.HttpURLConnection;
import  java.net.MalformedURLException;
import  java.net.URL;
import  java.net.URLEncoder;
import  java.util.regex.Matcher;
import  java.util.regex.Pattern;
 
public  class  TuringRobot {
     /**
      * 使用图灵机器人接口获取回答
      * 
      * @param apikey API认证
      * @param info 想要请求的问题
      * @return 获取的回复
      * */
     public  static  String getResponse(String apikey,String info){
         String httpUrl;
         try  {
             httpUrl =  "http://www.tuling123.com/openapi/api?key="  + apikey +  "&info="  + URLEncoder.encode(info, "UTF-8" );
             URL url =  new  URL(httpUrl);
             HttpURLConnection connection = (HttpURLConnection) url.openConnection();
             connection.setRequestMethod( "GET" );
             connection.setReadTimeout( 5000 );
             connection.setConnectTimeout( 5000 );
             
             InputStream inputStream = connection.getInputStream();
             BufferedReader reader =  new  BufferedReader( new  InputStreamReader(inputStream, "UTF-8" ));
             String line =  "" ;
             String reg =  "\"text\":\"(.*)?\"}" ;
             Pattern pattern = Pattern.compile(reg);
             Matcher matcher;
             while ((line = reader.readLine()) !=  null ){
                 matcher = pattern.matcher(line);
                 if (matcher.find()){
                     connection.disconnect();
                     return  matcher.group( 1 );
                 }
             }
             connection.disconnect();   
         }  catch  (UnsupportedEncodingException e1) {
             e1.printStackTrace();
         }  catch  (MalformedURLException e) {
             e.printStackTrace();
         }  catch  (IOException e) {
             e.printStackTrace();
         }
         return  "" ;
     }
     
     /**
      * 使用百度接口获取回答
      * 
      * @param key 默认值:879a6cb3afb84dbf4fc84a1df2ab7319
      * @param ApiKey 在APIStore调用服务所需要的API密钥,申请地址:http://apistore.baidu.com
      * @param info 想要请求的问题
      * @param userid 用户id 默认值:eb2edb736
      * 
      * @return 获取的回复
      * */
     public  static  String getResponse(String key,String ApiKey,String info,String userid){
         String httpUrl =  "http://apis.baidu.com/turing/turing/turing?" ;
         try  {
             info = URLEncoder.encode(info, "UTF-8" );  
         }  catch  (UnsupportedEncodingException e1) {
             e1.printStackTrace();
         }
         String httpArg =  "key="  + key +  "&info="  + info +  "&userid="  + userid;
         try  {
             URL url =  new  URL(httpUrl + httpArg);
             HttpURLConnection connection = (HttpURLConnection) url.openConnection();
             connection.setRequestMethod( "GET" );
             connection.setRequestProperty( "apikey" , ApiKey);
             
             InputStream inputStream = connection.getInputStream();
             BufferedReader reader =  new  BufferedReader( new  InputStreamReader(inputStream, "UTF-8" ));
             String line =  "" ;
             String reg =  "\"text\":\"(.*)?\",\"code\"" ;
             Pattern pattern = Pattern.compile(reg);
             Matcher matcher;
             while ((line = reader.readLine()) !=  null ){
                 matcher = pattern.matcher(line);
                 if (matcher.find()){
                     connection.disconnect();
                     return  matcher.group( 1 );
                 }
             }  
             connection.disconnect();
         }  catch  (MalformedURLException e) {
             e.printStackTrace();
         }  catch  (IOException e) {
             e.printStackTrace();
         }
         return  "" ;
         
     }
 
}

三 前台界面开发

在界面开发中有几个关键点需要注意:

(1)使用了新的线程来执行数据获取过程,并且通过SwingUtilities.invokeLater()来通知EDT更新界面。具体技术可以参考我写的这篇文章:http://www.zifangsky.cn/2015/12/java中事件分发线程(edt)与swingutilities-invokelater相关总结/

(2)本来最开始是使用了JTextArea来显示聊天记录,后来发现不能对聊天双方的记录分别左对齐和右对齐,而且也不能对聊天记录中的文字颜色和字体进行个性化设置,因此后来将聊天界面的JTextArea改成了JTextPane。这是一个强大的控件,我这里仅仅只是进行了简单使用,看代码就明白了

(3)API Key保存在配置文件config/config.txt中了

wKiom1Z6wWCxse0VAACqxU87uhk974.png

界面代码如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
package  view;
 
import  java.awt.BorderLayout;
import  java.awt.Color;
import  java.awt.Dimension;
import  java.awt.FlowLayout;
import  java.awt.Font;
import  java.awt.Toolkit;
import  java.awt.event.ActionEvent;
import  java.awt.event.ActionListener;
import  java.awt.event.KeyEvent;
import  java.awt.event.KeyListener;
import  java.awt.event.WindowEvent;
import  java.awt.event.WindowListener;
import  java.io.BufferedReader;
import  java.io.File;
import  java.io.FileNotFoundException;
import  java.io.FileReader;
import  java.io.IOException;
import  java.text.Format;
import  java.text.SimpleDateFormat;
import  java.util.Date;
import  java.util.regex.Matcher;
import  java.util.regex.Pattern;
 
import  javax.swing.JButton;
import  javax.swing.JFrame;
import  javax.swing.JMenu;
import  javax.swing.JMenuBar;
import  javax.swing.JMenuItem;
import  javax.swing.JOptionPane;
import  javax.swing.JPanel;
import  javax.swing.JScrollPane;
import  javax.swing.JTextArea;
import  javax.swing.JTextPane;
import  javax.swing.SwingUtilities;
import  javax.swing.text.BadLocationException;
import  javax.swing.text.DefaultStyledDocument;
import  javax.swing.text.MutableAttributeSet;
import  javax.swing.text.SimpleAttributeSet;
import  javax.swing.text.StyleConstants;
 
import  action.TuringRobot;
 
public  class  MainView  extends  JFrame  implements  ActionListener, WindowListener, KeyListener{
     /**
      * @author zifangsky
      * @blog www.zifangsky.cn
      * @date 2015-12-21
      * @version v1.0.0
      * 
      * */
     private  static  final  long  serialVersionUID = 1L;
     private  JPanel mainJPanel,tipJPanel;
     private  JScrollPane message_JScrollPane,edit_JScrollPane;
     private  JTextArea edit_JTextArea;
     private  JButton close,submit;
     private  JTextPane messageJTextPane;
     private  DefaultStyledDocument doc;
     
     private  JMenuBar jMenuBar;
     private  JMenu help;
     private  JMenuItem author,contact,version,readme;
 
     private  Font contentFont =  new  Font( "宋体" , Font.LAYOUT_NO_LIMIT_CONTEXT,  16 );   //正文字体
     private  Font menuFont =  new  Font( "宋体" , Font.LAYOUT_NO_LIMIT_CONTEXT,  14 );   //菜单字体
     private  Color buttonColor =  new  Color( 85 , 76 , 177 );   //按钮背景色
     Color inputColor1 =  new  Color( 31 , 157 , 255 );   //输入相关颜色
     Color inputColor2 =  new  Color( 51 , 51 , 51 );   //输入相关颜色
     Color outputColor1 =  new  Color( 0 , 186 , 4 );   //返回相关颜色
     Color outputColor2 =  new  Color( 51 , 51 , 51 );   //返回相关颜色
     
 
     private  DataOperating dataOperating =  null ;   //数据操作线程
     private  Runnable updateInputInterface,updateResponseInterface;   //更新界面线程
     
     private  String inputString =  "" ,responseString =  "" ; 
     private  String key =  "" ;  
     
     public  MainView(){
         super ( "图灵智能聊天" );
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
         screenSize = Toolkit.getDefaultToolkit().getScreenSize();   //屏幕大小
         setPreferredSize( new  Dimension( 350 ,  600 ));
         int  frameWidth =  this .getPreferredSize().width;   //界面宽度
         int  frameHeight =  this .getPreferredSize().height;   //界面高度
         setSize(frameWidth,frameHeight);
         setLocation((screenSize.width - frameWidth) /  2 ,(screenSize.height - frameHeight) /  2 );
         //初始化
         mainJPanel =  new  JPanel();
         tipJPanel =  new  JPanel();
         message_JScrollPane =  new  JScrollPane();
         edit_JScrollPane =  new  JScrollPane();
         messageJTextPane =  new  JTextPane();
         doc =  new  DefaultStyledDocument();
         edit_JTextArea =  new  JTextArea( 5 ,  10 );
         close =  new  JButton( "关闭" );
         submit =  new  JButton( "发送" );     
         jMenuBar =  new  JMenuBar();
         help =  new  JMenu( "帮助" );
         author =  new  JMenuItem( "作者" );
         contact =  new  JMenuItem( "联系方式" );
         version =  new  JMenuItem( "版本" );
         readme =  new  JMenuItem( "说明" );
         
         //设置字体
         messageJTextPane.setFont(contentFont);
         edit_JTextArea.setFont(contentFont);
         close.setFont(contentFont);
         submit.setFont(contentFont);
         help.setFont(menuFont);
         author.setFont(menuFont);
         contact.setFont(menuFont);
         version.setFont(menuFont);
         readme.setFont(menuFont);
         //布局
         mainJPanel.setLayout( new  BorderLayout());
         mainJPanel.add(message_JScrollPane,BorderLayout.NORTH);
         mainJPanel.add(edit_JScrollPane,BorderLayout.CENTER);
         mainJPanel.add(tipJPanel,BorderLayout.SOUTH);
         messageJTextPane.setPreferredSize( new  Dimension( 350 ,  350 ));
         messageJTextPane.setBackground( new  Color( 204 , 232 , 207 ));
         message_JScrollPane.getViewport().add(messageJTextPane);
         edit_JScrollPane.getViewport().add(edit_JTextArea);
         edit_JTextArea.setBackground( new  Color( 204 , 232 , 207 ));
         edit_JTextArea.requestFocus();
         tipJPanel.setLayout( new  FlowLayout(FlowLayout.RIGHT,  10 ,  10 ));
         tipJPanel.add(close);
         tipJPanel.add(submit);
         close.setBackground(buttonColor);
         close.setForeground(Color.WHITE);
         submit.setBackground(buttonColor);
         submit.setForeground(Color.WHITE);
         
         messageJTextPane.setEditable( false );
         edit_JTextArea.setLineWrap( true );
         edit_JTextArea.setWrapStyleWord( true );
         
         jMenuBar.add(help);
         help.add(author);
         help.add(contact);
         help.add(version);
         help.add(readme);
 
         add(mainJPanel);
         setJMenuBar(jMenuBar);
         setVisible( true );
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         addWindowListener( this );
         //获取配置文件中的配置信息
         try  {
             BufferedReader reader =  new  BufferedReader( new  FileReader( new  File( "config/config.txt" )));
             String line = reader.readLine();   //第一行不要
             Pattern pattern = Pattern.compile( "key=(.*)?" );
             Matcher matcher;
             while ((line = reader.readLine()) !=  null ){
                 matcher = pattern.matcher(line);
                 if (matcher.find())
                     key = matcher.group( 1 );
                 break ; 
             }  
             reader.close();
         }  catch  (FileNotFoundException e) {
             e.printStackTrace();
         }  catch  (IOException e) {
             e.printStackTrace();
         }
         
         //点击事件
         close.addActionListener( this );
         submit.addActionListener( this );
         author.addActionListener( this );
         contact.addActionListener( this );
         version.addActionListener( this );
         readme.addActionListener( this );
         //键盘时间
         edit_JTextArea.addKeyListener( this );
         //输入对话,提交后触发,更新界面
         updateInputInterface =  new  Runnable() {
             public  void  run() {
                 messageJTextPane.setEditable( true );
                 
                 setInputString( "我["  + getDateString() +  "]:" , inputColor1,  true , contentFont);
                 setInputString(inputString +  "\n" , inputColor2,  false , menuFont);
                 messageJTextPane.selectAll();
                 messageJTextPane.setCaretPosition(messageJTextPane.getSelectionEnd());
                 messageJTextPane.setEditable( false );
             }
         };
         //获取到回答后触发,更新界面
         updateResponseInterface =  new  Runnable() {
             public  void  run() {
                 messageJTextPane.setEditable( true );
 
                 setResponseString( "智子["  + getDateString() +  "]:" , outputColor1,  true , contentFont);
                 setResponseString(responseString +  "\n" , outputColor2,  false , menuFont);
                 messageJTextPane.selectAll();
                 messageJTextPane.setCaretPosition(messageJTextPane.getSelectionEnd());
                 messageJTextPane.setEditable( false );
                 
                 inputString =  "" ;
                 responseString =  "" ;
                 edit_JTextArea.setText( "" );
                 edit_JTextArea.requestFocus();
                 dataOperating =  null ;
             }
         };
     }
     
     
     public  static  void  main(String[] args) {
         SwingUtilities.invokeLater( new  Runnable() {
             public  void  run() {
                 new  MainView();
             }
         });
     }
 
     /**
      * 输入的信息在界面显示出来
      * */
     private  void  setInputString(String str,Color color, boolean  bold,Font font){
         MutableAttributeSet attributeSet =  new  SimpleAttributeSet();
         StyleConstants.setForeground(attributeSet, color);   //设置文字颜色
         if (bold)
             StyleConstants.setBold(attributeSet,  true );   //设置加粗
         StyleConstants.setFontFamily(attributeSet,  "Consolas" );   //设置字体
         StyleConstants.setFontSize(attributeSet, font.getSize());   //设置字体大小
         StyleConstants.setAlignment(attributeSet, StyleConstants.ALIGN_RIGHT);   //左对齐
         insertText(str,attributeSet);
     }
     /**
      * 返回的信息在界面显示出来
      * */
     private  void  setResponseString(String str,Color color, boolean  bold,Font font){
         MutableAttributeSet attributeSet =  new  SimpleAttributeSet();
         StyleConstants.setForeground(attributeSet, color);
         if (bold)
             StyleConstants.setBold(attributeSet,  true );
         StyleConstants.setFontFamily(attributeSet,  "Consolas" );
         StyleConstants.setFontSize(attributeSet, font.getSize());
         StyleConstants.setAlignment(attributeSet, StyleConstants.ALIGN_LEFT);
         insertText(str,attributeSet);
     }
 
     /**
      * 在JTextPane中插入文字
      * */
     private  void  insertText(String str, MutableAttributeSet attributeSet) {
         messageJTextPane.setStyledDocument(doc);
         str +=  "\n" ;
         doc.setParagraphAttributes(doc.getLength(), str.length(), attributeSet,  false );
         try  {
             doc.insertString(doc.getLength(), str, attributeSet);
         }  catch  (BadLocationException e) {
             e.printStackTrace();
         }
     }
 
     /**
      * 点击事件
      * */
     public  void  actionPerformed(ActionEvent e) {
         if (e.getSource() == close){
             System.exit( 0 );
         }
         else  if (e.getSource() == submit){
             if (dataOperating ==  null ){
                 dataOperating =  new  DataOperating();
                 new  Thread(dataOperating).start();
             }
         }
         else  if (e.getSource() == author){
             JOptionPane.showMessageDialog( this ,  "zifangsky" , "作者:" ,JOptionPane.INFORMATION_MESSAGE);
         }
         else  if (e.getSource() == contact){
             JOptionPane.showMessageDialog( this ,  "邮箱:admin@zifangsky.cn\n"  +
                     "博客:www.zifangsky.cn" , "联系方式:" ,JOptionPane.INFORMATION_MESSAGE);
         }
         else  if (e.getSource() == version){
             JOptionPane.showMessageDialog( this ,  "v1.0.0" , "版本号:" ,JOptionPane.INFORMATION_MESSAGE);
         }
         else  if (e.getSource() == readme){
             JOptionPane.showMessageDialog( this ,  "本程序只是简单的智能聊天,没有多余的功能。源码已经在我博客进行开源,\n"  +
                     "有需求的可以在此基础上进行APP开发,移植到Android平台上去。" , "说明:" ,JOptionPane.INFORMATION_MESSAGE);
         }
         
     }
     
     /**
      * 具体的数据处理内部类
      * */
     private  class  DataOperating  implements  Runnable{
         public  void  run() {
             //获取输入
             inputString = edit_JTextArea.getText().trim();
             if (inputString ==  null  ||  "" .equals(inputString))
                 return ;
             SwingUtilities.invokeLater(updateInputInterface);
             //获取回复
             responseString = TuringRobot.getResponse(key, inputString);
             SwingUtilities.invokeLater(updateResponseInterface);
         }
         
     }
     
     /**
      * 获取当前时间的字符串
      * @return 当前时间的字符串
      * */
     private  String getDateString(){
         Date date =  new  Date();
         Format format =  new  SimpleDateFormat( "HH:mm:ss" );
         return  format.format(date);               
     }
 
     public  void  windowOpened(WindowEvent e) {
         
     }
 
     public  void  windowClosing(WindowEvent e) {
         System.exit( 0 );
     }
 
     public  void  windowClosed(WindowEvent e) {
 
     }
 
     public  void  windowIconified(WindowEvent e) {
 
     }
 
     public  void  windowDeiconified(WindowEvent e) {
 
     }
 
     public  void  windowActivated(WindowEvent e) {
         
     }
 
     public  void  windowDeactivated(WindowEvent e) {
         
     }
 
     public  void  keyTyped(KeyEvent e) {
         
     }
     /**
      * 键盘事件,键盘按下ENTER键触发
      * */
     public  void  keyPressed(KeyEvent e) {
         if (e.getKeyCode() == KeyEvent.VK_ENTER){
             if (dataOperating ==  null ){
                 dataOperating =  new  DataOperating();
                 new  Thread(dataOperating).start();
             }
         }
         
     }
 
     public  void  keyReleased(KeyEvent e) {
         
     }
 
}

四 运行效果

wKioL1Z6wbyiZlN2AACOPuFzQss301.png

wKioL1Z6wcGA_YvgAACSu28BBqg995.png



本文转自 pangfc 51CTO博客,原文链接:http://blog.51cto.com/983836259/1727742,如需转载请自行联系原作者

相关文章
|
机器学习/深度学习 人工智能 自然语言处理
人工智能:有多少人工,才能有多少智能?
当下AI大模型的能力,特别是Agent领域,到底离不开多少“人工”的加持?本文将结合我的实际经验,深入探讨高质量数据与有效评价体系在Agent发展中的决定性作用,并通过编码Agent、Web Agent和GUI Agent的成熟度分析,揭示AI智能体发展面临的挑战与机遇。
532 89
|
机器学习/深度学习 人工智能 测试技术
EdgeMark:嵌入式人工智能工具的自动化与基准测试系统——论文阅读
EdgeMark是一个面向嵌入式AI的自动化部署与基准测试系统,支持TensorFlow Lite Micro、Edge Impulse等主流工具,通过模块化架构实现模型生成、优化、转换与部署全流程自动化,并提供跨平台性能对比,助力开发者在资源受限设备上高效选择与部署AI模型。
1131 9
EdgeMark:嵌入式人工智能工具的自动化与基准测试系统——论文阅读
|
人工智能 并行计算 PyTorch
以Lama Cleaner的AI去水印工具理解人工智能中经常会用到GPU来计算的CUDA是什么? 优雅草-卓伊凡
以Lama Cleaner的AI去水印工具理解人工智能中经常会用到GPU来计算的CUDA是什么? 优雅草-卓伊凡
1210 4
|
机器学习/深度学习 人工智能 供应链
决策智能是新的人工智能平台吗?
决策智能融合数据、决策与行动,通过AI与自动化技术提升企业决策质量与效率,支持从辅助到自动化的多级决策模式,推动业务敏捷性与价值转化。
|
机器学习/深度学习 人工智能 自动驾驶
人机融合智能 | 以人为中心的人工智能伦理体系
本章探讨“以人为中心”的人工智能伦理体系,分析人工智能伦理与传统伦理学的关系、主要分支内容及核心原则。随着人工智能技术快速发展,其在推动社会进步的同时也引发了隐私、公平、责任等伦理问题。文章指出,人工智能伦理需融入传统伦理框架,并构建适应智能技术发展的新型伦理规范体系,以确保技术发展符合人类价值观和利益。
776 4
|
机器学习/深度学习 人工智能 算法
人机融合智能 | 以人为中心人工智能新理念
本文探讨了“以人为中心的人工智能”(HCAI)理念,强调将人的需求、价值和能力置于AI设计与开发的核心。HCAI旨在确保AI技术服务于人类,增强而非取代人类能力,避免潜在危害。文章分析了AI的双刃剑效应及其社会挑战,并提出了HCAI的设计目标与实施路径,涵盖技术、用户和伦理三大维度。通过系统化方法,HCAI可推动AI的安全与可持续发展,为国内外相关研究提供重要参考。
1501 3
|
机器学习/深度学习 人工智能 自然语言处理
人机融合智能 | 数据与知识双驱动式人工智能
本章系统介绍了数据驱动、知识驱动及双驱动人工智能的理论与应用。数据驱动方法依赖大数据和深度学习,在图像识别、自然语言处理等领域取得突破,但面临标注成本高、可解释性差等问题。知识驱动方法通过知识表示与推理提升系统理解能力,却在泛化性和适应性上受限。为弥补单一范式的不足,数据与知识双驱动融合两者优势,致力于构建更智能、可解释且安全可靠的AI系统,兼顾伦理与隐私保护。文章还回顾了AI发展历程,从早期神经网络到当前大规模语言模型(如GPT、BERT)的技术演进,深入解析了各类机器学习与深度学习模型的核心原理与应用场景,展望未来AI发展的潜力与挑战。
1102 0
|
数据采集 机器学习/深度学习 人工智能
数据驱动智能,智能优化数据——大数据与人工智能的双向赋能
数据驱动智能,智能优化数据——大数据与人工智能的双向赋能
961 4
|
机器学习/深度学习 存储 人工智能
AI职场突围战:夸克应用+生成式人工智能认证,驱动“打工人”核心竞争力!
在AI浪潮推动下,生成式人工智能(GAI)成为职场必备工具。文中对比了夸克、豆包、DeepSeek和元宝四大AI应用,夸克以“超级入口”定位脱颖而出。同时,GAI认证为职场人士提供系统学习平台,与夸克结合助力职业发展。文章还探讨了职场人士如何通过加强学习、关注技术趋势及培养合规意识,在AI时代把握机遇。
|
机器学习/深度学习 人工智能 运维
人工智能在事件管理中的应用
人工智能在事件管理中的应用
563 21

热门文章

最新文章