From 324dc09dfb0eecd4b78fc4cf602dcf668fdd2c0b Mon Sep 17 00:00:00 2001 From: fabbas1 Date: Thu, 17 Aug 2023 11:02:31 -0400 Subject: [PATCH] remove Part x from references --- frontend/src/components/Answer/Answer.tsx | 4 ++-- static/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Answer/Answer.tsx b/frontend/src/components/Answer/Answer.tsx index df4769d..1a010a6 100644 --- a/frontend/src/components/Answer/Answer.tsx +++ b/frontend/src/components/Answer/Answer.tsx @@ -42,10 +42,10 @@ export const Answer = ({ if (citation.filepath && citation.chunk_id) { if (truncate && citation.filepath.length > filePathTruncationLimit) { const citationLength = citation.filepath.length; - citationFilename = `${citation.filepath.substring(0, 20)}...${citation.filepath.substring(citationLength -20)} - Part ${parseInt(citation.chunk_id) + 1}`; + citationFilename = `${citation.filepath.substring(0, 20)}...${citation.filepath.substring(citationLength -20)}`; } else { - citationFilename = `${citation.filepath} - Part ${parseInt(citation.chunk_id) + 1}`; + citationFilename = `${citation.filepath}`; } } else { diff --git a/static/index.html b/static/index.html index 0a9ad74..35512d8 100644 --- a/static/index.html +++ b/static/index.html @@ -5,7 +5,7 @@ NYC CHAT BOT - +