How k1m-june9/public_insight works
PublicInsight is a policy-data discovery platform: people browse and search public-sector content, explore its knowledge graph, and receive personalized recommendations; administrators manage the content. The README documents graph ETL from MySQL, PDFs, and Elasticsearch logs, Node2Vec prediction, KoBART summarization, and interactive graph exploration. The graph includes those capabilities and the main API, search, and recommendation layers. Some implementation paths are supported only by the tree or README, so uncertain runtime links are omitted or marked unverified.
Main entry points: pipeline.py Knowledge graph ETL · feeds.py Feed and user models · app Web application · graph.py Graph service
Components 21
User experience
- Web application
front_web/src/app - Mind map
front_web/src/components/mind-map/MindMap.tsx - Feed and recommendations
front_web/src/app/feed/[id]/page.tsx - Search interface
front_web/src/app/search/page.tsx - Admin console
front_web/src/app/admin
Application API
- HTTP API
backend/app/F1_routers/v1/api.py - Content services
backend/app/F2_services/feed.py - Authentication
backend/app/F2_services/auth.py - Graph service
backend/app/F2_services/graph.py - Search API
backend/app/F11_search/ES8_search_service.py - Recommendation service
backend/app/F13_recommendations/service.py
Discovery and intelligence
- Knowledge graph ETL
backend/app/F14_knowledge_graph/pipeline.py - Graph ML prediction
backend/app/F14_knowledge_graph/graph_ml.py - Document summarization
backend/app/F4_utils/summarizer.py - Recommendation engine
backend/app/F13_recommendations/engine.py
Data and storage
- MySQL data
backend/app/F8_database/connection.py - Neo4j graph
backend/app/F8_database/graph_db.py - Elasticsearch
backend/app/F11_search/ES1_client.py - Feed and user models
backend/app/F7_models/feeds.py
Other components
- Reader
- Administrator
Connections 17
- Reader → Web application: browses
README.md - Administrator → Admin console: manages content
README.md - Web application → HTTP API: requests data
- Search interface → Search API: submits searches
- Search API → Elasticsearch: searches
backend/app/F11_search/ES8_search_service.py - Feed and recommendations → Recommendation service: requests recommendations
- Recommendation service → Recommendation engine: scores feeds
backend/app/F13_recommendations/service.py - Recommendation engine → Feed and user models: uses feed data
backend/app/F13_recommendations/engine.py - Mind map → Graph service: explores graph
README.md - Graph service → Neo4j graph: queries graph
- Knowledge graph ETL → MySQL data: extracts records
README.md - Knowledge graph ETL → Elasticsearch: extracts logs
README.md - Knowledge graph ETL → Neo4j graph: loads graph
backend/app/F14_knowledge_graph/pipeline.py - Knowledge graph ETL → Graph ML prediction: invokes prediction
backend/app/F14_knowledge_graph/pipeline.py - Document summarization → Feed and user models: summarizes documents
README.md - Authentication → Feed and user models: uses account data
- Content services → Feed and user models: manages content