diff --git a/frontend/app/components/DocumentCard.tsx b/frontend/app/components/DocumentCard.tsx index 1fa50828..a29a28e7 100644 --- a/frontend/app/components/DocumentCard.tsx +++ b/frontend/app/components/DocumentCard.tsx @@ -6,10 +6,7 @@ export type Document = { }; export const DocumentCard = ({ document }: { document: Document }) => { - const description = - document.metadata.description && document.metadata.description !== "" - ? document.metadata.description - : document.page_content.slice(0, 250); + const description = document.page_content.slice(0, 250); return (