How sutirthachattopadhyay/doctalk works
DocTalk extracts text from PDFs, chunks it, builds a semantic vector index, and supports similarity search plus saving and loading the index. PDF extraction uses pdfplumber first, then Tesseract for scanned pages, with optional Gemini Vision for low-confidence OCR. The sampled code does not show how app.py exposes or orchestrates these capabilities, and the README is empty, so application-level wiring is omitted. The graph reflects the parser and embedding implementation shown; it does not assume unobserved links between them.
Main entry points: Embeddings.py Embedding pipeline · pdf_parser.py PDF parser
Components 14
PDF ingestion
- PDF parser
pdf_parser.py - PDF text extraction
pdf_parser.py - OCR fallbacks
pdf_parser.py - Text chunking
pdf_parser.py - pdfplumber
- Tesseract OCR
- Gemini Vision
Semantic retrieval
- Embedding pipeline
Embeddings.py - Sentence Transformer
- FAISS index
Embeddings.py
Index persistence
- Chunk metadata
Embeddings.py - Saved index files
Embeddings.py
Other components
- User
- Application
app.py
Connections 11
- User → PDF parser: provides PDF
pdf_parser.py - PDF parser → PDF text extraction: extracts pages
pdf_parser.py - PDF text extraction → pdfplumber: extracts text
pdf_parser.py - PDF text extraction → OCR fallbacks: falls back
pdf_parser.py - OCR fallbacks → Tesseract OCR: runs OCR
pdf_parser.py - OCR fallbacks → Gemini Vision: tries vision OCR
pdf_parser.py - PDF parser → Text chunking: chunks pages
pdf_parser.py - Embedding pipeline → Sentence Transformer: encodes text
Embeddings.py - Embedding pipeline → FAISS index: adds vectors
Embeddings.py - Embedding pipeline → Chunk metadata: stores chunk data
Embeddings.py - Embedding pipeline → Saved index files: saves and loads
Embeddings.py