From c4daf3f873a6fbeb6c50527ac39174b4200786ea Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Fri, 6 Sep 2024 00:03:43 +0530 Subject: [PATCH] Increase search result excerpt length --- app/ui/src/components/Bot/Search/SearchResult.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/ui/src/components/Bot/Search/SearchResult.tsx b/app/ui/src/components/Bot/Search/SearchResult.tsx index f8ae8dc..7dee174 100644 --- a/app/ui/src/components/Bot/Search/SearchResult.tsx +++ b/app/ui/src/components/Bot/Search/SearchResult.tsx @@ -15,7 +15,7 @@ export function SearchResult({ score, }: SearchResultProps) { const [isExpanded, setIsExpanded] = useState(false); - const maxLength = 250; + const maxLength = 300; const toggleReadMore = () => { setIsExpanded(!isExpanded); @@ -48,8 +48,8 @@ export function SearchResult({ {icon} {source} -
- +
+ Similarity: {`${score}%`}