Skip to content

Commit d30900e

Browse files
[5_37] Doc: added plugin_llm.md
1 parent 88487a6 commit d30900e

File tree

9 files changed

+73
-21
lines changed

9 files changed

+73
-21
lines changed

docs/.vitepress/config.ts

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
outDir: "../website",
66
themeConfig: {
77
search: {
8-
provider: 'local'
8+
provider: 'local'
99
}
1010
},
1111
locales: {
@@ -27,27 +27,27 @@ export default {
2727
}
2828
},
2929
zh: {
30-
label: '简体中文',
31-
lang: 'zh',
32-
title: '墨干理工套件',
33-
description: '用于探索科学与技术的自由的理工套件',
34-
themeConfig: {
35-
siteTitle: '墨干',
36-
nav: navZh(),
37-
sidebar: {
38-
'/zh/guide': sidebarGuideZh(),
39-
},
40-
footer: {
41-
message: '享受探索科学与技术的乐趣!',
42-
copyright: '版权所有 © 2022-2024 墨干贡献者'
43-
},
44-
}
30+
label: '简体中文',
31+
lang: 'zh',
32+
title: '墨干理工套件',
33+
description: '用于探索科学与技术的自由的理工套件',
34+
themeConfig: {
35+
siteTitle: '墨干',
36+
nav: navZh(),
37+
sidebar: {
38+
'/zh/guide': sidebarGuideZh(),
39+
},
40+
footer: {
41+
message: '享受探索科学与技术的乐趣!',
42+
copyright: '版权所有 © 2022-2024 墨干贡献者'
43+
},
44+
}
4545
},
4646
},
4747
lastUpdated: true,
4848
ignoreDeadLinks: false,
4949
head: [
50-
['link', {rel: 'icon', href: '/favicon.png'}],
50+
['link', { rel: 'icon', href: '/favicon.png' }],
5151
],
5252
markdown: {
5353
config(md) {
@@ -86,6 +86,11 @@ function navZh() {
8686
link: '/zh/guide/Tutorial',
8787
activeMatch: '/ospp/'
8888
},
89+
{
90+
text: '大模型集成🔥',
91+
link: '/zh/guide/plugin_llm',
92+
activeMatch: '/ospp/'
93+
},
8994
{
9095
text: '指南',
9196
link: '/zh/guide/what-is-mogan',
@@ -116,7 +121,7 @@ function sidebarGuide() {
116121
text: 'FAQ',
117122
link: '/guide/FAQ'
118123
},
119-
{ text: 'Screenshots', link: '/guide/Screenshots'},
124+
{ text: 'Screenshots', link: '/guide/Screenshots' },
120125
{
121126
text: 'Mogan v.s. TeXmacs',
122127
link: '/guide/Mogan_versus_TeXmacs'
@@ -208,7 +213,7 @@ function sidebarGuide() {
208213
{
209214
text: 'SVG Image plugin',
210215
link: '/guide/plugin_image_svg.md'
211-
},
216+
},
212217
{
213218
text: 'PDF Data plugin',
214219
link: '/guide/plugin_data_pdf.md'
@@ -297,7 +302,7 @@ function sidebarGuide() {
297302
text: 'v1.1.4 (2023/07/31)',
298303
link: '/guide/changelog/v1.1.4.md'
299304
},
300-
]
305+
]
301306
},
302307
]
303308
}
@@ -316,7 +321,7 @@ function sidebarGuideZh() {
316321
text: '常见问题',
317322
link: '/zh/guide/FAQ'
318323
},
319-
{ text: '截图', link: '/zh/guide/Screenshots'},
324+
{ text: '截图', link: '/zh/guide/Screenshots' },
320325
{
321326
text: '墨干 v.s. TeXmacs',
322327
link: '/zh/guide/Mogan_versus_TeXmacs'
@@ -333,6 +338,10 @@ function sidebarGuideZh() {
333338
text: 'Python插件',
334339
link: '/zh/guide/plugin_python.md'
335340
},
341+
{
342+
text: 'AI大模型插件',
343+
link: '/zh/guide/plugin_llm.md'
344+
},
336345
{
337346
text: '金鱼Scheme',
338347
link: '/zh/guide/plugin_goldfish.md'
61.7 KB
Loading

docs/images/llm_complicated.png

244 KB
Loading
167 KB
Loading

docs/images/llm_session.png

131 KB
Loading

docs/images/llm_simple.png

206 KB
Loading

docs/images/llm_simple_answer.png

80.3 KB
Loading

docs/images/tabular_as_input.png

459 KB
Loading

docs/zh/guide/plugin_llm.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# AI大模型集成插件
2+
3+
Mogan并不支持大模型集成。然而我们开发的半开源的[Liii STEM](https://liiistem.cn/)内置了大模型插件。
4+
5+
具体使用可以参考[Liii STEM的AI集成功能](https://liiistem.cn/guide/tutorials/llm_plugin.html)的文档。
6+
7+
## 使用指南
8+
9+
您可以遵循下图插入一个大模型的 Session
10+
![llm_session](../../images/llm_session.png)
11+
12+
### 直接用渲染的数学公式作为输入
13+
14+
我们支持直接使用Liii STEM的编辑和渲染方式作为大模型的输入,输入将被自动转换为$\LaTeX$和`Markdown`格式。如下图所示:
15+
16+
![input_in_rendered_format](../../images/llm_ask_in_rendered_format.png)
17+
18+
19+
### 可编辑的大模型输出
20+
21+
一个常见的在使用大模型的时候的问题就是对模型的回答进行整理归档以及进一步提问。 Liii STEM 原生支持对模型的输出进行编辑,且这个编辑和Liii STEM的编辑方式完全相同。您甚至可以直接进行内容的复制粘贴,他都将以Liii STEM的渲染方式进行渲染。如下图所示:
22+
23+
![editable_answer](../../images/llm_editable_solution.png)
24+
25+
### 直接粘贴渲染的大模型输出作为下一个问题的输入!
26+
27+
很多时候,大模型给出的答案会有一些小的错误或者模糊的回答,想要在下一个问题中精准定位这个部分需要用户对`markdown` 和 $\LaTeX$ 的语法有基础的认识。 而且往往需要用户手动将大模型的输出转为`markdown`格式并且进行细微编辑后重新粘贴进去。如下图所示:
28+
29+
![complicated](../../images/llm_complicated.png)
30+
31+
但是上述一切麻烦在Liii STEM 中不复存在!您可以直接粘贴大模型的答案并直接问他问题!我们的软件会讲一切上述流程自动化为您进行!如下图所示:
32+
33+
![simple](../../images/llm_simple.png)
34+
![simple_answer](../../images/llm_simple_answer.png)
35+
36+
此功能不仅支持数学公式,甚至支持表格,如下图所示
37+
38+
![table](../../images/tabular_as_input.png)
39+
40+
## FAQ
41+
42+
Q: 可以使用中文问答吗?
43+
A:可以,需要先将文档语言设置为中文。

0 commit comments

Comments
 (0)