2024-01-23 11:52:50 +08:00
|
|
|
|
import {defineConfig} from 'vitepress'
|
|
|
|
|
|
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
lang: 'zh-CN',
|
|
|
|
|
title: "Agents-Flex",
|
|
|
|
|
titleTemplate: ':title - Agents-Flex 官方网站',
|
|
|
|
|
description: "一个优雅的 LLM(大语言模型)应用开发框架",
|
|
|
|
|
lastUpdated: true,
|
2024-01-24 18:11:08 +08:00
|
|
|
|
appearance:"dark",
|
2024-01-23 11:52:50 +08:00
|
|
|
|
|
|
|
|
|
// logo: '/assets/images/logo02.png',
|
|
|
|
|
|
2024-05-14 11:23:56 +08:00
|
|
|
|
locales:{
|
|
|
|
|
root: {
|
|
|
|
|
label: 'English',
|
|
|
|
|
lang: 'en'
|
|
|
|
|
},
|
|
|
|
|
zh:{
|
|
|
|
|
label: '简体中文',
|
|
|
|
|
lang: 'zh', // 可选,将作为 `lang` 属性添加到 `html` 标签中
|
|
|
|
|
// link: '/zh/guide' // 默认 /fr/ -- 显示在导航栏翻译菜单上,可以是外部的
|
|
|
|
|
|
|
|
|
|
themeConfig: {
|
|
|
|
|
// logo: '/assets/images/logo.png',
|
|
|
|
|
outline: {
|
|
|
|
|
label: "章节"
|
|
|
|
|
},
|
|
|
|
|
editLink: {
|
|
|
|
|
pattern: 'https://github.com/agents-flex/agents-flex/edit/main/docs/:path',
|
|
|
|
|
text: '编辑当前页面'
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
2024-01-23 11:52:50 +08:00
|
|
|
|
themeConfig: {
|
2024-05-09 10:06:14 +08:00
|
|
|
|
// logo: '/assets/images/logo.png',
|
2024-05-14 11:23:56 +08:00
|
|
|
|
// outline:{
|
|
|
|
|
// label:"章节"
|
|
|
|
|
// },
|
2024-01-23 11:52:50 +08:00
|
|
|
|
search: {
|
|
|
|
|
provider: 'local'
|
|
|
|
|
},
|
|
|
|
|
editLink: {
|
|
|
|
|
// pattern: 'https://github.com/agents-flex/agents-flex/edit/main/docs/:path'
|
|
|
|
|
pattern: 'https://gitee.com/agents-flex/agents-flex/edit/main/docs/:path',
|
2024-05-14 11:23:56 +08:00
|
|
|
|
// text: '编辑当前页面'
|
2024-01-23 11:52:50 +08:00
|
|
|
|
},
|
|
|
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
|
|
|
// logo: '/assets/images/logo01.png',
|
|
|
|
|
nav: [
|
|
|
|
|
{text: '首页', link: '/'},
|
|
|
|
|
|
|
|
|
|
{text: '帮助文档', link: '/zh/intro/what-is-agentsflex'},
|
|
|
|
|
{text: 'ChangeLog', link: '/zh/changes'},
|
|
|
|
|
{
|
|
|
|
|
text: '获取源码', items: [
|
|
|
|
|
{text: 'Gitee', link: 'https://gitee.com/agents-flex/agents-flex'},
|
|
|
|
|
{text: 'Github', link: 'https://github.com/agents-flex/agents-flex'},
|
|
|
|
|
{text: '示例代码', link: 'https://gitee.com/agents-flex/agents-flex-samples'},
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
sidebar: [
|
|
|
|
|
{
|
2024-05-08 19:45:19 +08:00
|
|
|
|
text: '快速开始',
|
2024-01-23 11:52:50 +08:00
|
|
|
|
items: [
|
2024-04-25 12:18:41 +08:00
|
|
|
|
{text: 'Agents-Flex 是什么', link: '/zh/intro/what-is-agentsflex'},
|
2024-01-23 11:52:50 +08:00
|
|
|
|
{text: '快速开始', link: '/zh/intro/getting-started'},
|
|
|
|
|
{text: 'Maven 依赖', link: '/zh/intro/maven'},
|
2024-05-08 19:45:19 +08:00
|
|
|
|
{text: '微信交流群', link: '/zh/intro/communication'},
|
2024-01-23 11:52:50 +08:00
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-03-08 17:18:57 +08:00
|
|
|
|
text: '核心模块',
|
2024-01-23 11:52:50 +08:00
|
|
|
|
items: [
|
2024-05-07 19:27:06 +08:00
|
|
|
|
{text: 'LLMs 大语言模型', link: '/zh/core/llms'},
|
2024-05-08 19:45:19 +08:00
|
|
|
|
// {text: 'Prompt 提示词', link: '/zh/core/prompt'},
|
|
|
|
|
// {text: 'Chat 对话', link: '/zh/core/chat'},
|
|
|
|
|
// {text: 'Function Calling 方法调用', link: '/zh/core/function-calling'},
|
2024-05-07 19:27:06 +08:00
|
|
|
|
{text: 'Memory 记忆', link: '/zh/core/memory'},
|
|
|
|
|
{text: 'Embedding 嵌入', link: '/zh/core/embedding'},
|
|
|
|
|
{text: 'Store 存储', link: '/zh/core/store'},
|
|
|
|
|
{text: 'Document 文档', link: '/zh/core/document'},
|
|
|
|
|
{text: 'Agent 智能体', link: '/zh/core/agent'},
|
|
|
|
|
{text: 'Chain 执行链', link: '/zh/core/chain'},
|
2024-01-23 11:52:50 +08:00
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-03-08 17:18:57 +08:00
|
|
|
|
text: '基础示例',
|
2024-01-23 11:52:50 +08:00
|
|
|
|
items: [
|
2024-05-07 19:27:06 +08:00
|
|
|
|
{text: '简单对话', link: '/zh/samples/chat'},
|
|
|
|
|
{text: '历史对话', link: '/zh/samples/chat-with-memory'},
|
|
|
|
|
{text: 'RAG 应用', link: '/zh/samples/rag'},
|
2024-01-23 11:52:50 +08:00
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
footer: {
|
|
|
|
|
message: 'Released under the Apache License.',
|
|
|
|
|
copyright: 'Copyright © 2022-present Agents-Flex. ' +
|
|
|
|
|
'<span style="display: flex;align-items: center;justify-content: center;">' +
|
2024-05-07 20:19:02 +08:00
|
|
|
|
'<span style="font-size: 12px;margin-right:10px;"><a style="color:#777" target="_blank" rel="noopener" href="http://beian.miit.gov.cn/">黔ICP备19009310号-13 </a></span>' +
|
2024-01-23 11:52:50 +08:00
|
|
|
|
'</span>'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
head: [
|
|
|
|
|
[
|
|
|
|
|
'link', {rel: 'icon', href: '/assets/images/logo02.png'}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
[// 添加百度统计
|
|
|
|
|
"script",
|
|
|
|
|
{},
|
|
|
|
|
`
|
|
|
|
|
var _hmt = _hmt || [];
|
|
|
|
|
(function() {
|
|
|
|
|
var hm = document.createElement("script");
|
|
|
|
|
hm.src = "https://hm.baidu.com/hm.js?88ab4cfa533c8000717a434501beba56";
|
|
|
|
|
var s = document.getElementsByTagName("script")[0];
|
|
|
|
|
s.parentNode.insertBefore(hm, s);
|
|
|
|
|
})();
|
|
|
|
|
`
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
[// 自动跳转 https
|
|
|
|
|
"script",
|
|
|
|
|
{},
|
|
|
|
|
`
|
|
|
|
|
if (location.protocol !== 'https:' && location.hostname != 'localhost') {
|
|
|
|
|
location.href = 'https://' + location.hostname + location.pathname + location.search;
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
]
|
|
|
|
|
],
|
|
|
|
|
})
|