How piyushpnd/scientific-research-mapper works
Scientific Research Mapper turns uploaded CSV paper records into a searchable, interactive semantic topic map. The main workflow runs through CSV ingestion and validation, text preprocessing, sentence-transformer embeddings, clustering and map coordinates, then LDA topic generation; users can explore, search, edit, and delete stored papers. SQLite persists papers and derived stages. The graph preserves the documented discovery and paper-management capabilities; some frontend-to-API details and unsampled implementation links are based on README documentation rather than inspected calls.
Main entry points: main.py API Routes · database.py SQLite Database · ingestion/service.py CSV Ingestion · clustering/service.py Clustering And Map
Components 21
User Experience
- Map Interface
frontend/src/App.tsx - API Routes
backend/app/main.py
Paper Intake
- CSV Ingestion
backend/app/ingestion/service.py - CSV Parser
backend/app/ingestion/parser.py - Record Validator
backend/app/ingestion/validator.py
Map Processing
- Text Preprocessing
backend/app/preprocessing/service.py - Text Cleaner
backend/app/preprocessing/cleaner.py - Embedding Service
backend/app/embeddings/service.py - Embedding Model
backend/app/embeddings/model.py - Clustering And Map
backend/app/clustering/service.py - Dimension Reducer
backend/app/clustering/reducer.py - Cluster Algorithm
backend/app/clustering/clusterer.py - Topic Generation
backend/app/topics/service.py - LDA Extractor
backend/app/topics/extractor.py - Topic Labeller
backend/app/topics/labeller.py
Discovery And Management
- Search And Relationships
backend/app/discovery/service.py - Search Ranker
backend/app/discovery/search.py - Paper Management
backend/app/papers.py
Persistence
- SQLite Database
backend/app/database.py
Other components
- Researcher
- Sentence Encoder
Connections 27
- Researcher → Map Interface: explores
- Map Interface → API Routes: uses API
- API Routes → CSV Ingestion: routes upload
backend/app/main.py - API Routes → Text Preprocessing: routes processing
backend/app/main.py - API Routes → Embedding Service: routes embeddings
backend/app/main.py - API Routes → Clustering And Map: routes clustering
backend/app/main.py - API Routes → Topic Generation: routes topics
backend/app/main.py - API Routes → Search And Relationships: routes discovery
backend/app/main.py - API Routes → Paper Management: routes paper edits
backend/app/main.py - CSV Ingestion → CSV Parser: parses CSV
backend/app/ingestion/service.py - CSV Ingestion → Record Validator: validates records
backend/app/ingestion/service.py - CSV Ingestion → SQLite Database: stores papers
backend/app/ingestion/service.py - Text Preprocessing → Text Cleaner: cleans text
backend/app/preprocessing/service.py - Text Preprocessing → SQLite Database: reads and writes
backend/app/preprocessing/service.py - Embedding Service → Embedding Model: generates vectors
backend/app/embeddings/service.py - Embedding Model → Sentence Encoder: encodes text
- Embedding Service → SQLite Database: reads and writes
backend/app/embeddings/service.py - Clustering And Map → Dimension Reducer: reduces dimensions
backend/app/clustering/service.py - Clustering And Map → Cluster Algorithm: clusters papers
backend/app/clustering/service.py - Clustering And Map → SQLite Database: reads and writes
backend/app/clustering/service.py - Topic Generation → LDA Extractor: extracts topics
backend/app/topics/service.py - Topic Generation → Topic Labeller: labels topics
backend/app/topics/service.py - Topic Generation → SQLite Database: reads and writes
backend/app/topics/service.py - Search And Relationships → Search Ranker: ranks results
backend/app/discovery/service.py - Search And Relationships → SQLite Database: queries papers
backend/app/discovery/service.py - Paper Management → SQLite Database: reads and updates
backend/app/papers.py - Paper Management → Record Validator: validates updates
backend/app/papers.py