mirror of
https://github.com/run-llama/sec-insights.git
synced 2026-06-30 20:37:53 -04:00
d7110150a9
* frontend hotfix for duplicated sec docs * add sorting + make use of lodash's sortedUniqBy * revert NEXT_PUBLIC_BACKEND_URL
SEC Insights Frontend
This is SEC Insights, a tool that let's you analyze multiple financial documents, powered by LlamaIndex. Live URL
Technical Details
Built with next.js, tailwindcss, and typescript react, based on the T3 starter kit.
Architecture
This app consists of two main routes,
/, located insrc/pages/index.tsx. This route is the landing page, and consists of the document selector and a marketing section./conversation/{conversation_id}, located insrc/pages/conversation/[id].tsxThis page consists of the chat window on the left hand side, and the pdf viewer on the right hand side.
- PDFs are rendered using
react-pdf; a single pdf is rendered by theVirtualizedPdf.tsxcomponent - The Chat component is located in
RenderConversations.tsx
How to develop locally
-
npm i -
npm run dev -
And before pushing to the repo,
npm run buildto catch any typescript errors (TODO: pre-commit hook)
Follow our deployment guides for Vercel, Netlify and Docker for more information.