import {defineConfig} from 'vitepress'
const gitee_icon_svg = '\n' +
'\n' +
''
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Agents-Flex",
// titleTemplate: ':title - Agents-Flex Official website',
// description: "A Java framework for LLM applications",
titleTemplate: ':title - Agents-Flex 官方网站',
description: "一个优雅的 LLM(大语言模型)应用开发框架",
lastUpdated: true,
appearance:"dark",
themeConfig: {
search: {
provider: 'local'
},
socialLinks: [
{ icon: {svg:gitee_icon_svg}, link: 'https://gitee.com/agents-flex/agents-flex' },
{ icon: 'github', link: 'https://github.com/agents-flex/agents-flex' },
],
outline: {
label: '当前页导航',
level: 'deep'
},
editLink: {
pattern: 'https://gitee.com/agents-flex/agents-flex/edit/main/docs/:path',
text: '编辑当前页面'
},
nav: [
{text: '首页', link: '/'},
{text: '帮助文档', link: '/zh/intro/what-is-agentsflex'},
{text: 'ChangeLog', link: '/changes.md'},
],
sidebar: [
{
text: '快速开始',
items: [
{text: 'Agents-Flex 是什么', link: '/zh/intro/what-is-agentsflex'},
{text: '核心概念', link: '/zh/intro/concepts'},
{text: '快速开始', link: '/zh/intro/getting-started'},
{text: 'Maven 依赖', link: '/zh/intro/maven'},
{text: '微信交流群', link: '/zh/intro/communication'},
]
},
{
text: '核心模块',
items: [
{text: 'LLMs 大语言模型', link: '/zh/core/llms'},
{text: 'Prompt 提示词', link: '/zh/core/prompt'},
// {text: 'Chat 对话', link: '/zh/core/chat'},
// {text: 'Function Calling 方法调用', link: '/zh/core/function-calling'},
{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: 'Image 图片生成', link: '/zh/core/image'},
{text: 'SearchEngine 搜索引擎', link: '/zh/core/search-engine'},
{text: 'Chain 执行链', link: '/zh/core/chain'},
]
},
// {
// text: '基础示例',
// items: [
// {text: '简单对话', link: '/zh/samples/chat'},
// {text: '历史对话', link: '/zh/samples/chat-with-memory'},
// {text: 'RAG 应用', link: '/zh/samples/rag'},
// ]
// }
],
footer: {
message: 'Released under the Apache License.',
copyright: 'Copyright © 2022-present Agents-Flex. ' +
'' +
'黔ICP备19009310号-13 ' +
''
}
},
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;
}
`
]
],
})