How nithyasree0412/dentiq works
This repository implements a study-assistance product: users can register and log in, access subject and test features, ask questions grounded in study PDFs, and generate practice questions. The Python service exposes PDF ingestion, doubt-answering, and test-generation endpoints; the Node backend provides user, subject, AI, and admin routes. The shown frontend is minimal and does not establish a connection to either backend. Some backend route internals and integrations were not sampled, so those relationships are omitted rather than inferred.
Main entry points: user.js User routes · index.js Route registry · rag.py RAG endpoints · admin.js Admin routes
Components 25
Web client
- React entry
frontend/src/main.jsx - App routes
frontend/src/App.jsx - Input box
frontend/src/components/inputbox.jsx
Application API
- Node server
backend/index.js - Route registry
backend/routes/index.js - User routes
backend/routes/user.js - Subject routes
backend/routes/subject.js - AI routes
backend/routes/ai.js - Admin routes
backend/routes/admin.js - Authentication
backend/middleware/auth.js - Admin authorization
backend/middleware/admin.js - Token utility
backend/utils/jwt.js - Streak tracking
backend/utils/streak.js - User validation
backend/validations/user.js
Study AI
- RAG endpoints
app/routes/rag.py - PDF processing
app/services/pdf_service.py - Embedding service
app/services/embedding_service.py - Retrieval and generation
app/services/rag_service.py - Milvus service
app/services/milvus_service.py - Language model
app/services/llm_service.py - FastAPI server
app/main.py
Persistence and models
- Mongo models
backend/db.js - Database setup
backend/dbs.js - Milvus collection
bds_rag.db
Other components
- Learner
Connections 29
- Learner → React entry: opens
- React entry → App routes: renders
frontend/src/main.jsx - App routes → Input box: routes to
frontend/src/App.jsx - Node server → Route registry: mounts
backend/index.js - Route registry → User routes: dispatches
backend/routes/index.js - Route registry → AI routes: dispatches
backend/routes/index.js - Route registry → Subject routes: dispatches
backend/routes/index.js - Route registry → Admin routes: dispatches
backend/routes/index.js - User routes → Mongo models: reads and writes
backend/routes/user.js - User routes → User validation: validates with
backend/routes/user.js - User routes → Token utility: creates tokens
backend/routes/user.js - User routes → Streak tracking: updates
backend/routes/user.js - User routes → Authentication: protects route
backend/routes/user.js - Authentication → Token utility: verifies with
backend/middleware/auth.js - Subject routes → Mongo models: uses models
backend/routes/subject.js - AI routes → Authentication: uses middleware
backend/routes/ai.js - AI routes → Mongo models: uses models
backend/routes/ai.js - Admin routes → Authentication: uses middleware
backend/routes/admin.js - Admin routes → Admin authorization: uses middleware
backend/routes/admin.js - Admin routes → Mongo models: uses models
backend/routes/admin.js - FastAPI server → RAG endpoints: mounts
app/main.py - RAG endpoints → PDF processing: extracts and splits
app/routes/rag.py - RAG endpoints → Embedding service: embeds chunks
app/routes/rag.py - RAG endpoints → Milvus service: prepares and inserts
app/routes/rag.py - RAG endpoints → Retrieval and generation: delegates questions
app/routes/rag.py - Retrieval and generation → Embedding service: embeds queries
app/services/rag_service.py - Retrieval and generation → Milvus service: searches candidates
app/services/rag_service.py - Retrieval and generation → Language model: generates answers
app/services/rag_service.py - Milvus service → Milvus collection: stores vectors