Document Reader

From PDF to cited answerA document-reading app with two views of the same services. Readers sign in with Google, upload PDFs, search the library and ask about a selected document. Ingestion stores metadata and the original PDF, then queues extraction and indexes page passages. Questions retrieve those passages through the API; the LLM returns citations through the API to the web app. Citations open the original PDF at its source page. From PDF to cited answer 01 Upload & parse 02 Ask & cite · same API, web app & index Use Sign in Requests Save metadata Save PDF Enqueue Consume Read PDF Indexpages Retrievepassages Question + passages Answer + citations Answer + links Open page Reader Web app Upload · search · ask Google Sign-in provider API Document ops Object storage Original PDF PostgreSQL PDF metadata Job queue Parsing jobs Worker Extract PDF text Search index Page passages API Selected PDF LLM External model Search index Page passages Web app Answer + citations PDF pages Original PDF Citations keep the document ID and original page number.

From PDF to
cited answer

    Open full diagram ↗