From 72675ec15f903c79f16119c05ee14725157fd640 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 7 May 2024 23:13:37 -0700 Subject: [PATCH] refac: citation styling --- .../chat/Messages/ResponseMessage.svelte | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index d71f3fd3f..6aaa01b89 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -444,12 +444,10 @@ })} {/if} {/each} - {/if} {#if message.citations} -
-
+
{#each message.citations.reduce((acc, citation) => { citation.document.forEach((document, index) => { const metadata = citation.metadata?.[index]; @@ -467,18 +465,19 @@ return acc; }, []) as citation, idx}
-
- [{idx + 1}] -
-
{/each}