Skip to content

Commit e1cc5ce

Browse files
authored
Merge pull request #922 from zhangairku/master
models change
2 parents 9b18cb3 + 340c05d commit e1cc5ce

File tree

133 files changed

+275
-275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+275
-275
lines changed

NEW_README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ template_str = "你扮演{role}, 请回答我的问题。\n\n问题:{question}
101101
# 定义输入,调用playground组件
102102
input = appbuilder.Message({"role": "java工程师", "question": "请简要回答java语言的内存回收机制是什么,要求100字以内"})
103103

104-
playground = appbuilder.Playground(prompt_template=template_str, model="Qianfan-Agent-Speed-8K")
104+
playground = appbuilder.Playground(prompt_template=template_str, model="DeepSeek-V3.1")
105105

106106
# 以打字机的方式,流式展示大模型回答内容
107107
output = playground(input, stream=True, temperature=1e-10)
@@ -118,7 +118,7 @@ import os
118118
os.environ["APPBUILDER_TOKEN"] = "your-token-here"
119119

120120
# 创建组件实例
121-
rag_with_baidu_search_pro = appbuilder.RagWithBaiduSearchPro(model="ERNIE-3.5-8K")
121+
rag_with_baidu_search_pro = appbuilder.RagWithBaiduSearchPro(model="DeepSeek-V3.1")
122122

123123
# 执行组件
124124
input = appbuilder.Message("9.11和9.8哪个大")

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ template_str = "你扮演{role}, 请回答我的问题。\n\n问题:{question}
110110
# 定义输入,调用playground组件
111111
input = appbuilder.Message({"role": "java工程师", "question": "请简要回答java语言的内存回收机制是什么,要求100字以内"})
112112

113-
playground = appbuilder.Playground(prompt_template=template_str, model="Qianfan-Agent-Speed-8K")
113+
playground = appbuilder.Playground(prompt_template=template_str, model="DeepSeek-V3.1")
114114

115115
# 以打字机的方式,流式展示大模型回答内容
116116
output = playground(input, stream=True, temperature=1e-10)
@@ -156,7 +156,7 @@ import os
156156
# 设置环境中的TOKEN,使用请替换为您的个人TOKEN
157157
os.environ["APPBUILDER_TOKEN"] = "your api key"
158158

159-
rag_with_baidu_search_pro = appbuilder.RagWithBaiduSearchPro(model="ERNIE-3.5-8K")
159+
rag_with_baidu_search_pro = appbuilder.RagWithBaiduSearchPro(model="DeepSeek-V3.1")
160160

161161
input = appbuilder.Message("9.11和9.8哪个大")
162162
result = rag_with_baidu_search_pro.run(

cookbooks/components/agent_runtime.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@
429429
"class PlaygroundWithHistory(Component):\n",
430430
" def __init__(self):\n",
431431
" super().__init__()\n",
432-
" self.query_rewrite = QueryRewrite(model=\"Qianfan-Agent-Speed-8K\")\n",
432+
" self.query_rewrite = QueryRewrite(model=\"DeepSeek-V3.1\")\n",
433433
" self.playground = Playground(\n",
434434
" prompt_template=\"{query}\",\n",
435435
" model=\"ERNIE-Bot\"\n",

cookbooks/components/rag_with_baidusearch.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
"friendly = False # 友好度提升\n",
8383
"cite = True # 溯源\n",
8484
"\n",
85-
"# 使用 Qianfan-Agent-Speed-8K 模型\n",
86-
"component = appbuilder.RAGWithBaiduSearch(model=\"Qianfan-Agent-Speed-8K\")\n",
85+
"# 使用 DeepSeek-V3.1 模型\n",
86+
"component = appbuilder.RAGWithBaiduSearch(model=\"DeepSeek-V3.1\")\n",
8787
"query = appbuilder.Message(\"海淀区的面积是多少\")\n",
8888
"\n",
8989
"answer = component.run(\n",

cookbooks/components/text_generation.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"商品信息:\n",
102102
"'''\n",
103103
"# 创建商品信息生成组件\n",
104-
"product_information_generation = Playground(prompt_template=prompt_template, model='Qianfan-Agent-Speed-8K')\n",
104+
"product_information_generation = Playground(prompt_template=prompt_template, model='DeepSeek-V3.1')\n",
105105
"\n",
106106
"# 获取商品信息\n",
107107
"# 填充prompt_template参数的参数映射表,需要与prompt_template对应\n",
@@ -152,7 +152,7 @@
152152
"from appbuilder import QAPairMining\n",
153153
"\n",
154154
"# 初始化问答对生成组件\n",
155-
"qa_pair_mining = QAPairMining(model='Qianfan-Agent-Speed-8K')\n",
155+
"qa_pair_mining = QAPairMining(model='DeepSeek-V3.1')\n",
156156
"\n",
157157
"# 获取问答对\n",
158158
"response = qa_pair_mining(Message(product_information), stream=False, temperature=1e-10)\n",
@@ -210,7 +210,7 @@
210210
"'''\n",
211211
"\n",
212212
"# 初始化风格写作组件\n",
213-
"style_writing = StyleWriting(model='Qianfan-Agent-Speed-8K')\n",
213+
"style_writing = StyleWriting(model='DeepSeek-V3.1')\n",
214214
"\n",
215215
"# 获取小红书文案\n",
216216
"response = style_writing(Message(query), style_query='小红书', length=300)\n",
@@ -260,7 +260,7 @@
260260
"from appbuilder import TagExtraction\n",
261261
"\n",
262262
"# 初始化标签抽取组件\n",
263-
"tag_extraction = TagExtraction(model='Qianfan-Agent-Speed-8K')\n",
263+
"tag_extraction = TagExtraction(model='DeepSeek-V3.1')\n",
264264
"\n",
265265
"# 获取标签\n",
266266
"response = tag_extraction(Message(copywriting), stream=False, temperature=1e-10)\n",

cookbooks/end2end_application/rag/rag.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
"具备团队协作精神,能够与团队成员有效沟通,共同推进项目进展。'''\n",
172172
"\n",
173173
"# 标签抽取的组件\n",
174-
"tagger = appbuilder.TagExtraction(model=\"Qianfan-Agent-Speed-8K\")\n",
174+
"tagger = appbuilder.TagExtraction(model=\"DeepSeek-V3.1\")\n",
175175
"\n",
176176
"# 从JD抽取标签并打印\n",
177177
"tags = tagger(appbuilder.Message(job_desc))\n",
@@ -234,7 +234,7 @@
234234
"\n",
235235
"play = appbuilder.Playground(\n",
236236
" prompt_template=\"基于候选人姓名、职责描述和简历内容,概括一下{name}的推荐理由。\\n候选人姓名: {name}\\n职责描述: {JD}\\n简历内容: {resume}\\n推荐理由: \",\n",
237-
" model=\"Qianfan-Agent-Speed-8K\"\n",
237+
" model=\"DeepSeek-V3.1\"\n",
238238
")\n",
239239
"\n",
240240
"resume_summary = play(appbuilder.Message({\"JD\": job_desc, \"name\": sorted_resumes[0][0], \"resume\": \"\\n\".join(list(resume_content[sorted_resumes[0][0]]))}))\n",

0 commit comments

Comments
 (0)