How abhijeetkumar1505/cnde works
This prototype provides document-grounded NDT question answering: documents are extracted and chunked, indexed for semantic retrieval, then used to generate cited answers that are checked by deterministic verification. The shared pipeline owns retrieval, the abstention gate, generation, and verification. The README documents a Gradio results interface and benchmarking, but app.py and src/evaluation.py are stubs; their runtime connections are therefore not asserted. Workflow links documented only in the README cite it; implementation excerpts support the pipeline’s direct calls.
Main entry points: pipeline.py QA orchestrator · app.py Gradio interface · ingestion.py Format extraction · retrieval.py BGE embeddings
Components 13
Document ingestion
- Format extraction
src/ingestion.py - Page-bounded chunks
src/ingestion.py
Search and indexing
- BGE embeddings
src/retrieval.py - FAISS index
src/retrieval.py - Top-k retrieval
src/retrieval.py
Answer workflow
- QA orchestrator
src/pipeline.py - Cited generation
src/generation.py - Answer verification
src/verification.py - Runtime settings
src/config.py
User and evaluation
- Gradio interface
app.py - Benchmark metrics
src/evaluation.py
Other components
- Questioner
- NDT documents
Connections 11
- NDT documents → Format extraction: extracts
README.md - Format extraction → Page-bounded chunks: chunks pages
src/ingestion.py - Page-bounded chunks → BGE embeddings: embeds chunks
README.md - BGE embeddings → FAISS index: indexes vectors
README.md - QA orchestrator → Top-k retrieval: retrieves evidence
src/pipeline.py - QA orchestrator → Cited generation: generates answer
src/pipeline.py - QA orchestrator → Answer verification: verifies result
src/pipeline.py - Questioner → Gradio interface: asks question
README.md - Gradio interface → QA orchestrator: requests answer
- QA orchestrator → Gradio interface: returns results
README.md - Benchmark metrics → QA orchestrator: uses workflow