How yaseenshaikh2006/quora-duplicate-question-detector works
This is a local React/FastAPI Quora duplicate-question detector. A user enters two questions and an optional threshold; the UI sends them to the API, which validates the request, runs a transparent lexical cosine-similarity pipeline, and returns a classification plus inspection data for the result view. The product also provides benchmark samples and educational pages, including a pipeline diagram and data-structure inspection panel. Relationships for the sampled request path are evidenced in the excerpts; the detector-to-inspection-panel rendering link is documented but not visible in the sampled source, so it is shown as unverified.
Main entry points: App.jsx App navigation · duplicate.py Duplicate API route · api.js API client · Detector.jsx Question detector
Components 20
Web application
- App navigation
frontend/src/App.jsx - Question detector
frontend/src/pages/Detector.jsx - API client
frontend/src/services/api.js - Sample browser
frontend/src/pages/Dataset.jsx - Landing page
frontend/src/pages/Home.jsx - Technical overview
frontend/src/pages/About.jsx - Navigation bar
frontend/src/components/Navbar.jsx - Footer
frontend/src/components/Footer.jsx
API and samples
- FastAPI application
backend/app/main.py - Duplicate API route
backend/app/routes/duplicate.py - Health route
backend/app/routes/health.py - Request and response schemas
backend/app/models/schemas.py - Sample dataset reader
backend/app/services/dataset_service.py - Sample question pairs
backend/data/sample_questions.csv
Similarity engine
- Similarity pipeline
backend/app/algorithms/similarity.py - Stopword set
backend/app/utils/stopwords.py
Learning interface
- Process explainer
frontend/src/pages/HowItWorks.jsx - Pipeline diagram
frontend/src/components/FlowDiagram.jsx - Data-structure inspector
frontend/src/components/DataStructureBreakdown.jsx
Other components
- Question author
Connections 22
- Question author → Question detector: enters questions
README.md - App navigation → Question detector: renders
frontend/src/App.jsx - App navigation → Landing page: renders
frontend/src/App.jsx - App navigation → Sample browser: renders
frontend/src/App.jsx - App navigation → Technical overview: renders
frontend/src/App.jsx - App navigation → Navigation bar: renders
frontend/src/App.jsx - App navigation → Footer: renders
frontend/src/App.jsx - App navigation → API client: checks health
frontend/src/App.jsx - Question detector → API client: submits questions
frontend/src/pages/Detector.jsx - Sample browser → API client: fetches samples
frontend/src/services/api.js - API client → Duplicate API route: posts questions
frontend/src/services/api.js - API client → Health route: checks health
frontend/src/services/api.js - FastAPI application → Duplicate API route: registers route
backend/app/main.py - FastAPI application → Health route: registers route
backend/app/main.py - Duplicate API route → Request and response schemas: validates and serializes
backend/app/routes/duplicate.py - Duplicate API route → Similarity pipeline: calls analysis
backend/app/routes/duplicate.py - Duplicate API route → Sample dataset reader: loads samples
backend/app/routes/duplicate.py - Sample dataset reader → Request and response schemas: builds sample records
backend/app/services/dataset_service.py - Sample dataset reader → Sample question pairs: reads pairs
backend/app/services/dataset_service.py - Similarity pipeline → Stopword set: uses stopwords
backend/app/algorithms/similarity.py - Process explainer → Pipeline diagram: renders
frontend/src/pages/HowItWorks.jsx - Question detector → Data-structure inspector: displays analysis details