How nicemeet1920-collab/week3_day1 works
This is a Tamil government-scheme knowledge-graph chatbot. Its main user workflow sends a question through a Neo4j-backed QA chain and, when the graph answer is missing, searches the web and summarizes results. The separate data workflow loads scheme text, maps relationships with an LLM, and stores triples in Neo4j; entity extraction is an additional standalone step. The tree also includes sample-document generation. The README is empty, and the graph reflects only relationships visible in the supplied source excerpts.
Main entry points: app.py Chatbot App · process_1_loader.py Document Loader · process_3_mapping.py Relationship Mapper · scraper.py Sample Generator
Components 12
Scheme Documents
- Sample Generator
scraper.py - Pudhumai Penn Text
data/pudhumai_penn.txt - Tamil Pudhalvan Text
data/tamil_pudhalvan.txt
Knowledge Processing
- Document Loader
process_1_loader.py - Entity Extraction
process_2_extraction.py - Relationship Mapper
process_3_mapping.py
Graph Storage
- Neo4j Writer
process_4_neo4j_storage.py - Neo4j Graph
Question Answering
- Chatbot App
app.py - DuckDuckGo Search
Other components
- Questioner
- OpenAI LLM
Connections 14
- Sample Generator → Pudhumai Penn Text: writes
scraper.py - Sample Generator → Tamil Pudhalvan Text: writes
scraper.py - Document Loader → Pudhumai Penn Text: reads
process_1_loader.py - Document Loader → Tamil Pudhalvan Text: reads
process_1_loader.py - Entity Extraction → Document Loader: loads documents
process_2_extraction.py - Entity Extraction → OpenAI LLM: extracts entities
process_2_extraction.py - Relationship Mapper → Document Loader: loads documents
process_3_mapping.py - Relationship Mapper → OpenAI LLM: maps relationships
process_3_mapping.py - Neo4j Writer → Relationship Mapper: gets triples
process_4_neo4j_storage.py - Neo4j Writer → Neo4j Graph: writes triples
process_4_neo4j_storage.py - Questioner → Chatbot App: asks
app.py - Chatbot App → Neo4j Graph: queries via QA chain
app.py - Chatbot App → DuckDuckGo Search: searches on fallback
app.py - Chatbot App → OpenAI LLM: summarizes fallback
app.py