Formerly known as Lighthouse AI; renamed due to existing trademark.
Guiding the way to government benefits. A project for the Out of Pocket AI Hackathon, June 2024 in San Francisco.
- slow
- demo only runs on max first 6 pages of pdf
- pdf is flaky
Static assets (pdfs, fonts, etc.)
code for converting pdfs to images, writing text to pdfs, sending pdfs to openai
pip install -r requirements.txt
- Set
OPENAI_API_KEY
in.env
(can be at repository root)
(replace with your username/container registry)
docker build --platform linux/amd64 --tag ghcr.io/nathanhleung/farolito/pdfs:latest .
(inpdfs
directory)docker push ghcr.io/nathanhleung/farolito/pdfs:latest
- Set image id in Runpod, set
OPENAI_API_KEY
environment variable in Runpod
FastAPI endpoints to read DL and paystub info
pip install -r requirements.txt
- Set
OPENAI_API_KEY
in.env
(can be at repository root)
(replace with your username/container registry)
docker build --platform linux/amd64 --tag ghcr.io/nathanhleung/farolito/ingest:latest .
(iningest
directory)docker push ghcr.io/nathanhleung/farolito/ingest:latest
- Set image id in Runpod, set
OPENAI_API_KEY
environment variable in Runpod
frontend for the app
npm install
- Set
NEXT_PUBLIC_INGEST_API_ENDPOINT
in.env.local
(infrontend
directory) — based on the pod ID and exposed port (probably8000
) from Runpod, include protocol, no trailing slash - Set
NEXT_PUBLIC_PDFS_API_ENDPOINT
in.env.local
, include protocol, no trailing slash npm run dev
- Set
NEXT_PUBLIC_INGEST_API_ENDPOINT
,NEXT_PUBLIC_PDFS_API_ENDPOINT
,NEXT_PUBLIC_ASSISTANT_WEBSOCKET_ENDPOINT
in Vercel git push
Files used for testing