Show retrieved knowledge chunks in audit logs

This commit is contained in:
2026-07-09 10:29:58 +08:00
parent d6b7ec1e52
commit f39e51a4d4
9 changed files with 172 additions and 3 deletions

View File

@@ -712,6 +712,58 @@ textarea {
font-size: 13px;
}
.retrieval-chunks {
display: grid;
gap: 12px;
margin: 12px 0;
}
.retrieval-chunk {
padding: 12px;
border: 1px solid #dce8e4;
border-radius: 6px;
background: #fbfdfc;
}
.chunk-head {
display: flex;
flex-wrap: wrap;
gap: 8px 12px;
align-items: baseline;
margin-bottom: 8px;
color: #203832;
}
.chunk-head strong {
color: #0f735d;
}
.chunk-head span {
color: #60746d;
font-size: 13px;
}
.retrieval-chunk pre {
max-height: 260px;
margin: 0;
padding: 10px;
overflow: auto;
border-radius: 6px;
background: #f4f7f6;
color: #263832;
white-space: pre-wrap;
word-break: break-word;
font-family: "SFMono-Regular", Consolas, "PingFang SC", monospace;
line-height: 1.65;
}
.retrieval-chunk a {
display: inline-flex;
margin-top: 8px;
color: #0f735d;
text-decoration: none;
}
.error-text {
color: #b42318;
}