Skip to content

Commit

Permalink
show page content
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Oct 17, 2024
1 parent c93f743 commit f5f0625
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/app/components/DocumentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Card className="md:w-[200px] sm:w-[200px] w-full h-[110px] bg-inherit border-gray-500 flex flex-col">
Expand Down

0 comments on commit f5f0625

Please sign in to comment.