feat: add sidebar for rag and related i18n

This commit is contained in:
Junyan Qin
2025-06-27 21:37:53 +08:00
parent f36a61dbb2
commit 0733f8878f
4 changed files with 46 additions and 0 deletions

View File

@@ -88,4 +88,23 @@ export const sidebarConfigList = [
zh_Hans: 'https://docs.langbot.app/zh/plugin/plugin-intro.html',
},
}),
new SidebarChildVO({
id: 'knowledge',
name: t('knowledge.title'),
icon: (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="currentColor"
>
<path d="M3 18.5V5C3 3.34315 4.34315 2 6 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H6.5C4.567 22 3 20.433 3 18.5ZM19 20V17H6.5C5.67157 17 5 17.6716 5 18.5C5 19.3284 5.67157 20 6.5 20H19ZM10 4H6C5.44772 4 5 4.44772 5 5V15.3368C5.45463 15.1208 5.9632 15 6.5 15H19V4H17V12L13.5 10L10 12V4Z"></path>
</svg>
),
route: '/home/knowledge',
description: t('knowledge.description'),
helpLink: {
en_US: 'https://docs.langbot.app/en/deploy/knowledge/readme.html',
zh_Hans: 'https://docs.langbot.app/zh/deploy/knowledge/readme.html',
},
}),
];

View File

@@ -230,6 +230,10 @@ const enUS = {
atTips: 'Mention the bot',
},
},
knowledge: {
title: 'Knowledge',
description: 'Configuring knowledge bases for improved LLM responses',
},
register: {
title: 'Initialize LangBot 👋',
description: 'This is your first time starting LangBot',

View File

@@ -232,6 +232,10 @@ const jaJP = {
atTips: 'ボットをメンション',
},
},
knowledge: {
title: '知識ベース',
description: 'LLMの応答品質を向上させるための知識ベースを設定します',
},
register: {
title: 'LangBot を初期化 👋',
description: 'これはLangBotの初回起動です',
@@ -260,6 +264,21 @@ const jaJP = {
'パスワードのリセットに失敗しました。メールアドレスと復旧キーを確認してください',
backToLogin: 'ログインに戻る',
},
embedding: {
description: 'テキストのベクトル化に使用する埋め込みモデルを管理します',
createModel: '埋め込みモデルを作成',
editModel: '埋め込みモデルを編集',
getModelListError: '埋め込みモデルリストの取得に失敗しました:',
embeddingModels: '埋め込みモデル',
extraParametersDescription:
'リクエストボディに追加されるパラメータencoding_format、dimensions など)',
},
llm: {
description: 'チャットメッセージの生成に使用するLLMモデルを管理します',
llmModels: 'LLMモデル',
extraParametersDescription:
'リクエストボディに追加されるパラメータmax_tokens、temperature、top_p など)',
},
};
export default jaJP;

View File

@@ -225,6 +225,10 @@ const zhHans = {
atTips: '提及机器人',
},
},
knowledge: {
title: '知识库',
description: '配置可用于提升模型回复质量的知识库',
},
register: {
title: '初始化 LangBot 👋',
description: '这是您首次启动 LangBot',