feat: RAG回复显示知识库来源,含文件名和相似度分数

This commit is contained in:
thzxx
2026-04-04 23:46:16 +08:00
parent 30c6916d6f
commit ce930560f8
3 changed files with 64 additions and 1 deletions
+40
View File
@@ -2009,3 +2009,43 @@ body::before {
max-height: 90vh;
}
}
/* RAG 知识库来源 */
.rag-sources {
margin-top: 8px;
padding: 8px 12px;
background: rgba(0, 245, 212, 0.05);
border: 1px solid rgba(0, 245, 212, 0.15);
border-radius: 8px;
font-size: 12px;
}
.rag-sources-header {
color: var(--accent-cyan);
font-weight: 600;
margin-bottom: 6px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.rag-source-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 3px 0;
color: var(--text-muted);
}
.rag-source-item + .rag-source-item {
border-top: 1px solid rgba(255,255,255,0.05);
}
.rag-source-name {
color: var(--text-secondary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rag-source-score {
color: var(--accent-green);
font-weight: 500;
margin-left: 8px;
flex-shrink: 0;
}