PDF Q&A System with TF-IDF Search and Source CitationsPDF Q&A System with TF-IDF Search and Source Citations
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Document Q&A system that turns PDFs into searchable knowledge bases. Upload a report, ask a question in plain English, get an answer with numbered source citations and relevance scores. The retrieval layer chunks documents into overlapping passages (600 chars with 100-char overlap to avoid splitting context at boundaries), builds a TF-IDF vector index, and ranks results by cosine similarity. The answer is extracted from the highest-scoring passage with cross-reference to the original text. Built the conversational web UI with a chat-style interface. Python + FastAPI backend, scikit-learn for vectorization, PyPDF for text extraction.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started