From 0bde66a888a76b5d66dad64c5000fa152b7eede2 Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Mon, 5 Aug 2024 11:51:43 -0700 Subject: [PATCH] remove "quotes" section (#2049) --- web/src/app/chat/message/Messages.tsx | 1 + web/src/components/search/SearchSection.tsx | 2 +- .../components/search/results/QuotesSection.tsx | 14 -------------- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/web/src/app/chat/message/Messages.tsx b/web/src/app/chat/message/Messages.tsx index c8a95c4edfd2..9ee7f47a6301 100644 --- a/web/src/app/chat/message/Messages.tsx +++ b/web/src/app/chat/message/Messages.tsx @@ -520,6 +520,7 @@ export const AIMessage = ({ )} + {handleFeedback && (isActive ? (
- {quotes !== null && answer && ( + {quotes !== null && quotes.length > 0 && answer && (
{ return <>Extracting quotes...; } - if (!quotes || quotes.length === 0) { - return <>No quotes found; - } - return <>Quotes; }; @@ -86,16 +82,6 @@ const QuotesBody = ({ quotes, isFetching }: QuotesSectionProps) => { return
; } - if (!isFetching && (!quotes || !quotes.length)) { - return ( -
-
- Did not find any exact quotes to support the above answer. -
-
- ); - } - return (
{quotes!.map((quoteInfo) => (