mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-11 05:20:57 +00:00
feat: add sidebar for rag and related i18n
This commit is contained in:
@@ -88,4 +88,23 @@ export const sidebarConfigList = [
|
|||||||
zh_Hans: 'https://docs.langbot.app/zh/plugin/plugin-intro.html',
|
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',
|
||||||
|
},
|
||||||
|
}),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -230,6 +230,10 @@ const enUS = {
|
|||||||
atTips: 'Mention the bot',
|
atTips: 'Mention the bot',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
knowledge: {
|
||||||
|
title: 'Knowledge',
|
||||||
|
description: 'Configuring knowledge bases for improved LLM responses',
|
||||||
|
},
|
||||||
register: {
|
register: {
|
||||||
title: 'Initialize LangBot 👋',
|
title: 'Initialize LangBot 👋',
|
||||||
description: 'This is your first time starting LangBot',
|
description: 'This is your first time starting LangBot',
|
||||||
|
|||||||
@@ -232,6 +232,10 @@ const jaJP = {
|
|||||||
atTips: 'ボットをメンション',
|
atTips: 'ボットをメンション',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
knowledge: {
|
||||||
|
title: '知識ベース',
|
||||||
|
description: 'LLMの応答品質を向上させるための知識ベースを設定します',
|
||||||
|
},
|
||||||
register: {
|
register: {
|
||||||
title: 'LangBot を初期化 👋',
|
title: 'LangBot を初期化 👋',
|
||||||
description: 'これはLangBotの初回起動です',
|
description: 'これはLangBotの初回起動です',
|
||||||
@@ -260,6 +264,21 @@ const jaJP = {
|
|||||||
'パスワードのリセットに失敗しました。メールアドレスと復旧キーを確認してください',
|
'パスワードのリセットに失敗しました。メールアドレスと復旧キーを確認してください',
|
||||||
backToLogin: 'ログインに戻る',
|
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;
|
export default jaJP;
|
||||||
|
|||||||
@@ -225,6 +225,10 @@ const zhHans = {
|
|||||||
atTips: '提及机器人',
|
atTips: '提及机器人',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
knowledge: {
|
||||||
|
title: '知识库',
|
||||||
|
description: '配置可用于提升模型回复质量的知识库',
|
||||||
|
},
|
||||||
register: {
|
register: {
|
||||||
title: '初始化 LangBot 👋',
|
title: '初始化 LangBot 👋',
|
||||||
description: '这是您首次启动 LangBot',
|
description: '这是您首次启动 LangBot',
|
||||||
|
|||||||
Reference in New Issue
Block a user