feat(app/log): Add Referenced Content in Application Logs (#7082)

This commit is contained in:
Kevin9703
2024-08-09 19:06:08 +08:00
committed by GitHub
parent d338f69837
commit 2c188a45c8
3 changed files with 22 additions and 11 deletions

View File

@@ -126,6 +126,7 @@ const getFormattedChatList = (messages: ChatMessage[], conversationId: string, t
tokens: item.answer_tokens + item.message_tokens,
latency: item.provider_response_latency.toFixed(2),
},
citation: item.metadata?.retriever_resources,
annotation: (() => {
if (item.annotation_hit_history) {
return {