Merge #5 into develop_web from feature/20251219_zy
optimize: check en.ts * feature/20251219_zy: (6 commits) optimize: UI update components: Add Chat component optimize: 1. stream request optimize; 2. replace Chat component feature: memory extraction engine debug switch to streaming output feature: add api key optimize: check en.ts Signed-off-by: zhaoying <zhaoying@redbearai.com> Merged-by: zhaoying <zhaoying@redbearai.com> CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/5
This commit is contained in:
@@ -28,16 +28,18 @@ export const zh = {
|
||||
spaceManagement: '空间管理',
|
||||
memoryExtractionEngine: '记忆提取引擎',
|
||||
forgettingEngine: '遗忘引擎',
|
||||
apiKeyManagement: 'API KEY管理',
|
||||
knowledgePrivate: '详情',
|
||||
knowledgeShare: '详情',
|
||||
knowledgeCreateDataset: '新建数据集',
|
||||
knowledgeDocumentDetails: '详情',
|
||||
userMemoryDetail: '用户记忆详情',
|
||||
toolManagement: '工具管理',
|
||||
},
|
||||
knowledgeBase: {
|
||||
home: '首页',
|
||||
selectSpace: '请选择空间',
|
||||
preview:'预览',
|
||||
preview: '预览',
|
||||
pleaseUploadFileFirst: '请先上传文件',
|
||||
shareSuccess: '分享成功',
|
||||
shareFailed: '分享失败',
|
||||
@@ -294,7 +296,7 @@ export const zh = {
|
||||
number: '数字',
|
||||
checkbox: '复选框',
|
||||
apiVariable: 'API变量',
|
||||
|
||||
|
||||
displayName: '显示名称',
|
||||
maxLength: '最大长度',
|
||||
required: '必填',
|
||||
@@ -314,7 +316,7 @@ export const zh = {
|
||||
promptConfiguration: '提示词配置',
|
||||
configurationDesc: '定义Agent的角色、能力和行为准则',
|
||||
aiPrompt: 'AI提示词',
|
||||
promptPlaceholder: '你是一个专业的AI助手,你的职责是..',
|
||||
promptPlaceholder: '你是一个专业的AI助手,你的职责是帮助用户解决问题。',
|
||||
knowledgeBaseAssociation: '知识库关联',
|
||||
associatedKnowledgeBase: '关联知识库',
|
||||
addKnowledgeBase: '添加知识库',
|
||||
@@ -473,7 +475,7 @@ export const zh = {
|
||||
similarity_threshold: '语义相似度阈值',
|
||||
similarity_threshold_desc: '仅返回语义相似度高于此阈值的结果',
|
||||
similarity_threshold_desc1: '语义检索的最小相似度阈值',
|
||||
|
||||
|
||||
vector_similarity_weight: '向量相似度权重',
|
||||
vector_similarity_weight_desc: '仅返回BM25分数高于此阈值的结果',
|
||||
vector_similarity_weight_desc1: '分词检索的最小BM25分数阈值',
|
||||
@@ -487,6 +489,27 @@ export const zh = {
|
||||
chooseKnowledge: '选择知识库',
|
||||
active: '活跃',
|
||||
inactive: '不活跃',
|
||||
|
||||
endpointConfigurationSubTitle: '配置 API 访问地址和支持的 HTTP 方法',
|
||||
apiKeys: 'API Keys 管理',
|
||||
apiKeySubTitle: '管理 API 密钥,查看每个密钥的使用情况和流量统计',
|
||||
addApiKey: '添加新 API Key',
|
||||
apiKeyName: 'Key 名称',
|
||||
apiKeyNamePlaceholder: '例如:生产环境、测试环境、开发环境',
|
||||
apiKeyDescPlaceholder: '描述这个 Key 的用途',
|
||||
apiKeyTotal: '总 Keys',
|
||||
apiKeyRequestTotal: '总请求数',
|
||||
qps: '平均 QPS',
|
||||
qpsLimit: 'QPS 限制',
|
||||
qpsLimitTip: '(每秒请求数)',
|
||||
apiLimitConfig: '限流配置',
|
||||
qpsLimitDesc: '限制此 Key 每秒最多可以发起的请求数',
|
||||
dailyUsageLimit: '日调用量限制',
|
||||
dailyUsageLimitDesc: '限制此 Key 每天最多可以发起的请求总数',
|
||||
dailyUsageLimitUnit: '次/天',
|
||||
apiKeyDeleteContent: '删除后将无法恢复,使用此Key的应用将无法访问 API',
|
||||
currentValue: '当前值',
|
||||
qpsLimitUnit: '次/秒',
|
||||
},
|
||||
// 角色管理相关翻译
|
||||
role: {
|
||||
@@ -624,7 +647,7 @@ export const zh = {
|
||||
triplet_count_desc: '构建{{entities_count}}个实体节点和{{relations_count}}个关系连接',
|
||||
temporal_count: '时间提取',
|
||||
temporal_count_desc: '记录{{count}}条时间序列信息',
|
||||
|
||||
|
||||
dialogue: '对话',
|
||||
chunk: '分块',
|
||||
statement: '语句',
|
||||
@@ -877,6 +900,17 @@ export const zh = {
|
||||
|
||||
saveConfig: '保存配置',
|
||||
apiKeyName: 'API密钥名称',
|
||||
|
||||
llm: 'LLM',
|
||||
chat: 'Chat',
|
||||
embedding: 'Embedding',
|
||||
rerank: 'Rerank',
|
||||
openai: "Openai",
|
||||
dashscope: "Dashscope",
|
||||
ollama: "Ollama",
|
||||
xinference: "Xinference",
|
||||
gpustack: "Gpustack",
|
||||
bedrock: "Bedrock"
|
||||
},
|
||||
timezones: {
|
||||
'Asia/Shanghai': '中国标准时间 (UTC+8)',
|
||||
@@ -985,8 +1019,6 @@ export const zh = {
|
||||
inviteToMember: '邀请成员',
|
||||
member: '成员',
|
||||
memberDesc: '只能使用应用,不能创建应用',
|
||||
admin: '管理员',
|
||||
adminDesc: '可以创建应用和管理团队设置',
|
||||
sendInvitation: '发送邀请',
|
||||
manager: '管理员',
|
||||
managerDesc: '可以创建应用和管理团队设置',
|
||||
@@ -1033,7 +1065,7 @@ export const zh = {
|
||||
|
||||
minimumRetention: '时间遗忘率 (λ_time)',
|
||||
minimumRetentionDesc: '控制记忆随时间的遗忘速度,值越高时间越短',
|
||||
forgettingRate: '记忆遗忘率 (λ_mem)',
|
||||
forgettingRate: '记忆遗忘率 (λ_mem)',
|
||||
forgettingRateDesc: '控制记忆遗忘的速度,值越高遗忘越快',
|
||||
offset: '最小保留度 (offset)',
|
||||
offsetDesc: '控制记忆保留的最小保留阈值 遗忘这地方改个文字描述',
|
||||
@@ -1133,11 +1165,10 @@ export const zh = {
|
||||
|
||||
exampleMemoryExtractionResults: '示例记忆提取结果',
|
||||
exampleMemoryExtractionResultsSubTitle: '(来自技术会议)',
|
||||
warning: '当您修改左侧的配置项时,提取结论将在此处实时更新',
|
||||
|
||||
extractTheNumberOfEntities: '提取实体数量',
|
||||
extractTheNumberOfEntitiesDesc: '去重后合并:{{num}}(精确:{{exact}},模糊:{{fuzzy}},LLM:{{llm}})',
|
||||
|
||||
|
||||
numberOfEntityDisambiguation: '实体消歧数量',
|
||||
numberOfEntityDisambiguationDesc: '总计{{num}}次(阻止:{{block_count}})',
|
||||
|
||||
@@ -1223,7 +1254,27 @@ export const zh = {
|
||||
记忆熊:秦国统一的原因包括:商鞅变法彻底,建立法律、户籍和军功爵制度,提升国家组织能力;旧贵族势力弱,中央集权程度高;关中地理优越,资源丰富且易守难攻;从孝公到秦始皇政策连续性强。
|
||||
|
||||
学生:那我换到唐朝史:安史之乱后,中央已开始整顿,为何藩镇割据反而加剧?
|
||||
记忆熊:安史之乱后藩镇割据加剧的原因包括:节度使掌握募兵权、财政调度权与军事指挥权,形成地方军阀;中央财政因均田制瓦解和租庸调失效而衰退,难以支撑军队,导致地方军事力量依附节度使;募兵制使士兵效忠个人而非国家;宦官掌控禁军,文官集团失势,中央制衡能力削弱。`
|
||||
记忆熊:安史之乱后藩镇割据加剧的原因包括:节度使掌握募兵权、财政调度权与军事指挥权,形成地方军阀;中央财政因均田制瓦解和租庸调失效而衰退,难以支撑军队,导致地方军事力量依附节度使;募兵制使士兵效忠个人而非国家;宦官掌控禁军,文官集团失势,中央制衡能力削弱。`,
|
||||
warning: '当您修改左侧的配置项后,点击【调试】,提取结论将在此处实时更新',
|
||||
processing: '配置已更新,正在重新萃取示例记忆...',
|
||||
success: '记忆萃取完成!',
|
||||
overallProgress: '整体进度',
|
||||
text_preprocessing: '文本预处理',
|
||||
fragment: '片段',
|
||||
knowledge_extraction: '知识抽取',
|
||||
creating_nodes_edges: '创建实体关系',
|
||||
deduplication: '去重消歧',
|
||||
status: {
|
||||
pending: '等待中',
|
||||
processing: '处理中',
|
||||
completed: '已完成',
|
||||
failed: '失败'
|
||||
},
|
||||
time: '耗时: ',
|
||||
text_preprocessing_desc: '文本切分为{{count}}个语义片段',
|
||||
knowledge_extraction_desc: '知识抽取完成,共识别{{entities}}个实体,{{statements}}个句子, {{temporal_ranges_count}}个时间提取, {{triplets}}个三元组',
|
||||
creating_nodes_edges_desc: '实体关系创建完成,共{{num}}条关系',
|
||||
deduplication_desc: '去重消歧完成,最终{{count}}个唯一实体'
|
||||
},
|
||||
memoryConversation: {
|
||||
searchPlaceholder: '输入用户ID...',
|
||||
@@ -1342,6 +1393,31 @@ export const zh = {
|
||||
title: '页面未找到',
|
||||
description: '请求的页面不存在。',
|
||||
backToHome: '返回首页'
|
||||
}
|
||||
},
|
||||
apiKey: {
|
||||
name: '项目名称',
|
||||
createApiKey: '创建API Key',
|
||||
updateApiKey: '编辑API Key',
|
||||
id: 'ID',
|
||||
created_at: '创建时间',
|
||||
description: '描述',
|
||||
memoryEngine: '记忆引擎',
|
||||
knowledgeBase: '知识库',
|
||||
advancedSettings: '高级设置',
|
||||
expires_at: '过期时间',
|
||||
apiKey: 'API Key',
|
||||
status: '状态',
|
||||
createdAt: '创建时间',
|
||||
expiresAt: '过期时间',
|
||||
requestsPerMinute: '次/分钟',
|
||||
viewDetail: '查看详情',
|
||||
disable: '禁用',
|
||||
enable: '启用',
|
||||
baseInfo: '基础信息',
|
||||
permissionInfo: '授权信息',
|
||||
is_expired: '状态',
|
||||
active: '活跃',
|
||||
inactive: '过期'
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user