How karrthiknamasani-bot/patentiq works
PatentIQ presents patent-readiness analysis of invention documents, with project management, prior-art search, evidence mapping, assessment, and reports. The repository contains a newer FastAPI implementation alongside an Express/MongoDB backend and a React frontend; the README names the product but does not explain which backend the UI targets. The graph shows documented calls and route registrations, not assumed connections between the two backend stacks. Some subsystems are represented at directory level because their implementation files were not sampled.
Main entry points: pipeline.py Analysis pipeline route · processController.js Document processing controller · embeddingService.js Embedding service · App.jsx React application
Components 23
User interface
- React application
frontend/src/App.jsx - Analysis page
frontend/src/pages/AnalysisPage.jsx - Reports page
frontend/src/pages/ReportsPage.jsx
Analysis API
- FastAPI app
apps/api/app/main.py - Analysis pipeline route
apps/api/app/api/routes/pipeline.py
Analysis services
- Document processing
apps/api/app/services/document_processing - Feature extraction
apps/api/app/services/features - Hybrid retrieval
apps/api/app/services/retrieval/retrieval_service.py - Patent reranking
apps/api/app/services/reranking - Evidence mapping
apps/api/app/services/mapping/mapping_service.py - Readiness assessment
apps/api/app/services/readiness/readiness_engine.py - Grounded explanation
apps/api/app/services/explanation
Legacy backend
- Express server
backend/server.js - Document processing controller
backend/controllers/processController.js - Embedding service
backend/services/embeddingService.js - Gemini embeddings
backend/services/providers/GeminiEmbeddingProvider.js - Gemini service
backend/services/geminiService.js
Persistence and search
- Project repository
apps/api/app/services/persistence/repository.py - SQLite store
apps/api/app/services/persistence/sqlite_store.py - Qdrant index
apps/api/app/services/retrieval/qdrant_store.py - Chroma vector store
backend/services/chromaService.js - MongoDB models
backend/models/Project.js
Other components
- Patent innovator
Connections 21
- Patent innovator → React application: uses
- React application → Analysis page: routes to
frontend/src/App.jsx - React application → Reports page: routes to
frontend/src/App.jsx - FastAPI app → Analysis pipeline route: registers
apps/api/app/main.py - Analysis pipeline route → Document processing: processes document
apps/api/app/api/routes/pipeline.py - Analysis pipeline route → Feature extraction: extracts features
apps/api/app/api/routes/pipeline.py - Analysis pipeline route → Hybrid retrieval: searches prior art
apps/api/app/api/routes/pipeline.py - Analysis pipeline route → Evidence mapping: maps evidence
apps/api/app/api/routes/pipeline.py - Analysis pipeline route → Readiness assessment: assesses readiness
apps/api/app/api/routes/pipeline.py - Analysis pipeline route → Grounded explanation: generates explanation
apps/api/app/api/routes/pipeline.py - Analysis pipeline route → Project repository: saves results
apps/api/app/api/routes/pipeline.py - Hybrid retrieval → Patent reranking: reranks results
apps/api/app/services/retrieval/retrieval_service.py - Project repository → SQLite store: uses store
apps/api/app/services/persistence/repository.py - Hybrid retrieval → Qdrant index: indexes vectors
- Express server → Document processing controller: mounts routes
backend/server.js - Document processing controller → MongoDB models: loads project
backend/controllers/processController.js - Document processing controller → Embedding service: creates embeddings
backend/controllers/processController.js - Embedding service → Gemini embeddings: generates vectors
backend/services/embeddingService.js - Embedding service → Chroma vector store: upserts vectors
backend/services/embeddingService.js - Embedding service → MongoDB models: updates chunks
backend/services/embeddingService.js - Document processing controller → Gemini service: analyzes project
backend/controllers/processController.js