feat: 重构知识库系统,移除Hermes集成,增强RAG和同步功能
主要变更: - 移除Hermes智能体及相关回调服务 - 新增知识库RAG、同步、调度、规范化和索引任务服务 - 重构orchestrator服务,增强运行时聊天功能 - 更新前端聊天、政策制度、设置等页面样式和逻辑 - 更新expense_claims和document_intelligence服务 - 删除llm_wiki相关服务和测试文件 - 更新docker-compose配置和启动脚本
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
.talk-content header strong { color: #334155; font-size: 14px; font-weight: 800; }
|
||||
.talk-content header time { color: #94a3b8; font-size: 12px; }
|
||||
.user-question { display: inline-block; margin: 0; padding: 9px 16px; border-radius: 8px; background: #e8f5ef; color: #334155; font-size: 14px; line-height: 1.5; }
|
||||
.answer-card, .agent-answer { max-width: 760px; border: 1px solid #dce5ef; border-radius: 10px; background: #fff; color: #334155; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
|
||||
.answer-card, .agent-answer-markdown { max-width: 760px; border: 1px solid #dce5ef; border-radius: 10px; background: #fff; color: #334155; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
|
||||
.answer-card { display: grid; gap: 10px; padding: 13px 18px; }
|
||||
.answer-card.compact { gap: 10px; }
|
||||
.answer-card h4 { margin: 0 0 5px; color: #10a272; font-size: 13px; font-weight: 850; }
|
||||
@@ -36,14 +36,41 @@
|
||||
.answer-card footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: #64748b; font-size: 12px; }
|
||||
.answer-card footer button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #64748b; }
|
||||
.answer-card footer button:hover { background: #f1f5f9; color: #0f9f78; }
|
||||
.agent-answer { margin: 0; padding: 12px 16px; font-size: 14px; line-height: 1.65; }
|
||||
.agent-answer-content { max-width: 760px; display: grid; gap: 10px; }
|
||||
.agent-answer-table-wrap { overflow-x: auto; border: 1px solid #dce5ef; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
|
||||
.agent-answer-table { width: 100%; min-width: 360px; border-collapse: collapse; font-size: 13px; }
|
||||
.agent-answer-table th, .agent-answer-table td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; }
|
||||
.agent-answer-table th { background: #eef7f2; color: #0f172a; font-weight: 800; }
|
||||
.agent-answer-table td { color: #334155; font-weight: 650; }
|
||||
.agent-answer-table tbody tr:last-child td { border-bottom: 0; }
|
||||
.agent-answer-markdown { padding: 12px 16px; overflow-x: auto; font-size: 14px; }
|
||||
.agent-answer-markdown :deep(h1),
|
||||
.agent-answer-markdown :deep(h2),
|
||||
.agent-answer-markdown :deep(h3),
|
||||
.agent-answer-markdown :deep(h4),
|
||||
.agent-answer-markdown :deep(p),
|
||||
.agent-answer-markdown :deep(ul),
|
||||
.agent-answer-markdown :deep(ol),
|
||||
.agent-answer-markdown :deep(blockquote),
|
||||
.agent-answer-markdown :deep(pre) { margin: 0; }
|
||||
.agent-answer-markdown :deep(h1) { font-size: 18px; }
|
||||
.agent-answer-markdown :deep(h2) { font-size: 16px; }
|
||||
.agent-answer-markdown :deep(h3),
|
||||
.agent-answer-markdown :deep(h4) { font-size: 14px; }
|
||||
.agent-answer-markdown :deep(h1),
|
||||
.agent-answer-markdown :deep(h2),
|
||||
.agent-answer-markdown :deep(h3),
|
||||
.agent-answer-markdown :deep(h4) { color: #0f172a; line-height: 1.35; }
|
||||
.agent-answer-markdown :deep(p),
|
||||
.agent-answer-markdown :deep(li) { line-height: 1.65; }
|
||||
.agent-answer-markdown :deep(ul),
|
||||
.agent-answer-markdown :deep(ol) { padding-left: 22px; }
|
||||
.agent-answer-markdown :deep(blockquote) { padding: 10px 12px; border-left: 4px solid #86efac; border-radius: 0 10px 10px 0; background: #f0fdf4; color: #475569; }
|
||||
.agent-answer-markdown :deep(strong) { color: #0f172a; }
|
||||
.agent-answer-markdown :deep(code) { padding: 2px 6px; border-radius: 6px; background: #e2e8f0; font-size: 12px; }
|
||||
.agent-answer-markdown :deep(pre) { overflow-x: auto; padding: 12px; border-radius: 10px; background: #0f172a; color: #e2e8f0; }
|
||||
.agent-answer-markdown :deep(pre code) { padding: 0; background: transparent; color: inherit; }
|
||||
.agent-answer-markdown :deep(a) { color: #059669; text-decoration: underline; }
|
||||
.agent-answer-markdown :deep(table) { width: auto; max-width: 100%; border: 1px solid #dce5ef; border-radius: 10px; border-collapse: collapse; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); font-size: 13px; }
|
||||
.agent-answer-markdown :deep(th),
|
||||
.agent-answer-markdown :deep(td) { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; white-space: nowrap; }
|
||||
.agent-answer-markdown :deep(th) { background: #eef7f2; color: #0f172a; font-weight: 800; }
|
||||
.agent-answer-markdown :deep(td) { color: #334155; font-weight: 650; }
|
||||
.agent-answer-markdown :deep(tbody tr:last-child td) { border-bottom: 0; }
|
||||
.agent-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; max-width: 760px; }
|
||||
.agent-meta-chip { min-height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: #eef7f2; color: #0f766e; font-size: 12px; font-weight: 760; }
|
||||
.agent-detail-block { max-width: 760px; margin-top: 10px; display: grid; gap: 8px; }
|
||||
|
||||
@@ -98,11 +98,11 @@
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.folder-rail {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-rows: minmax(0, 1fr) auto;
|
||||
gap: 12px;
|
||||
.folder-rail {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-rows: minmax(0, 1fr) auto;
|
||||
gap: 12px;
|
||||
border-right: 1px solid #edf2f7;
|
||||
padding-right: 12px;
|
||||
}
|
||||
@@ -136,21 +136,26 @@
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.folder-tree b {
|
||||
min-width: 24px;
|
||||
height: 20px;
|
||||
display: inline-flex;
|
||||
.folder-tree b {
|
||||
min-width: 24px;
|
||||
height: 20px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 999px;
|
||||
background: #f1f5f9;
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.new-folder-btn {
|
||||
min-height: 36px;
|
||||
display: inline-flex;
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.folder-sync-block {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.new-folder-btn {
|
||||
min-height: 36px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
@@ -162,11 +167,27 @@
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.new-folder-btn.fixed {
|
||||
border-color: rgba(148, 163, 184, 0.3);
|
||||
background: #f8fafc;
|
||||
color: #64748b;
|
||||
}
|
||||
.new-folder-btn.fixed {
|
||||
border-color: rgba(148, 163, 184, 0.3);
|
||||
background: #f8fafc;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.knowledge-sync-btn:not(:disabled) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.knowledge-sync-btn:not(:disabled):hover {
|
||||
border-color: rgba(16, 185, 129, 0.38);
|
||||
background: #ecfdf5;
|
||||
color: #047857;
|
||||
}
|
||||
|
||||
.folder-sync-meta {
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.document-area {
|
||||
min-width: 0;
|
||||
@@ -339,6 +360,19 @@ th {
|
||||
background: #fee2e2;
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
.state-cell {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.state-time {
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
line-height: 1.4;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.more-btn {
|
||||
width: 32px;
|
||||
|
||||
@@ -384,44 +384,118 @@
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.message-answer-content p {
|
||||
.message-answer-content :deep(p),
|
||||
.message-answer-content :deep(ul),
|
||||
.message-answer-content :deep(ol),
|
||||
.message-answer-content :deep(blockquote),
|
||||
.message-answer-content :deep(pre) {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.message-answer-table-wrap {
|
||||
overflow-x: auto;
|
||||
border: 1px solid #dbe4ee;
|
||||
border-radius: 16px;
|
||||
background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
|
||||
.message-answer-markdown :deep(h1),
|
||||
.message-answer-markdown :deep(h2),
|
||||
.message-answer-markdown :deep(h3),
|
||||
.message-answer-markdown :deep(h4) {
|
||||
margin: 0;
|
||||
color: #0f172a;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.message-answer-table {
|
||||
width: 100%;
|
||||
min-width: 360px;
|
||||
.message-answer-markdown :deep(h1) {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(h2) {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(h3),
|
||||
.message-answer-markdown :deep(h4) {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(p),
|
||||
.message-answer-markdown :deep(li) {
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(ul),
|
||||
.message-answer-markdown :deep(ol) {
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(strong) {
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(blockquote) {
|
||||
padding: 10px 12px;
|
||||
border-left: 4px solid #93c5fd;
|
||||
border-radius: 0 12px 12px 0;
|
||||
background: #eff6ff;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(code) {
|
||||
padding: 2px 6px;
|
||||
border-radius: 6px;
|
||||
background: #e2e8f0;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(pre) {
|
||||
overflow-x: auto;
|
||||
padding: 12px;
|
||||
border-radius: 14px;
|
||||
background: #0f172a;
|
||||
color: #e2e8f0;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(pre code) {
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(a) {
|
||||
color: #2563eb;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.message-answer-markdown {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(table) {
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
border: 1px solid #dbe4ee;
|
||||
border-radius: 16px;
|
||||
border-collapse: collapse;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.message-answer-table th,
|
||||
.message-answer-table td {
|
||||
.message-answer-markdown :deep(th),
|
||||
.message-answer-markdown :deep(td) {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.message-answer-table th {
|
||||
.message-answer-markdown :deep(th) {
|
||||
background: #eff6ff;
|
||||
color: #0f172a;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.message-answer-table td {
|
||||
.message-answer-markdown :deep(td) {
|
||||
color: #334155;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.message-answer-table tbody tr:last-child td {
|
||||
.message-answer-markdown :deep(tbody tr:last-child td) {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user