How bhanu216476/docanalyser works
DocAnalyser is an enterprise document-analysis platform: users sign in, submit documents, and ask questions that return cited, confidence-aware answers. The Spring API manages authentication, document metadata and lifecycle, and delegates RAG work to Python; the RAG pipeline handles ingestion and retrieval/generation. The README documents PostgreSQL, Redis, Qdrant, and optional n8n integrations. Several Python stages and backend endpoints are unsampled, so their internal links are shown only where the excerpts or README support them.
Main entry points: rag_pipeline.py RAG orchestrator · IngestionController.java Ingestion API · App.jsx Web app · ChatService.java Chat service
Components 20
User experience
- Web app
frontend/src/App.jsx
Spring API
- Authentication API
backend/spring-boot-service/src/main/java/com/docanalyser/controller/AuthController.java - Authentication
backend/spring-boot-service/src/main/java/com/docanalyser/service/AuthService.java - Ingestion API
backend/spring-boot-service/src/main/java/com/docanalyser/controller/IngestionController.java - Document service
backend/spring-boot-service/src/main/java/com/docanalyser/service/DocumentService.java - Chat service
backend/spring-boot-service/src/main/java/com/docanalyser/service/ChatService.java - RAG client
backend/spring-boot-service/src/main/java/com/docanalyser/service/RagServiceClient.java
RAG processing
- RAG HTTP API
rag-service/app/main.py - RAG orchestrator
rag-service/app/pipeline/rag_pipeline.py - Document ingestion
rag-service/app/ingestion - Embeddings
rag-service/app/embeddings/service.py - Hybrid retrieval
rag-service/app/retrieval - Reranking
rag-service/app/reranking/pipeline.py - Answer and citations
rag-service/app/generation - Citation verification
rag-service/app/verification
Data and integrations
- PostgreSQL
- Redis state
- Qdrant vectors
- n8n automation
Other components
- User
Connections 24
- User → Web app: uses
- Web app → Authentication API: REST requests
- Web app → Ingestion API: submits documents
- Web app → Chat service: asks questions
- Authentication API → Authentication: delegates
- Authentication → PostgreSQL: persists users
- Ingestion API → RAG client: invokes
backend/spring-boot-service/src/main/java/com/docanalyser/controller/IngestionController.java - Ingestion API → PostgreSQL: reads/writes metadata
backend/spring-boot-service/src/main/java/com/docanalyser/controller/IngestionController.java - Ingestion API → Redis state: updates job state
backend/spring-boot-service/src/main/java/com/docanalyser/controller/IngestionController.java - Document service → PostgreSQL: reads/writes documents
- Document service → Redis state: uses cache/state
backend/spring-boot-service/src/main/java/com/docanalyser/service/DocumentService.java - Chat service → PostgreSQL: persists chat
backend/spring-boot-service/src/main/java/com/docanalyser/service/ChatService.java - Chat service → Redis state: updates session state
backend/spring-boot-service/src/main/java/com/docanalyser/service/ChatService.java - RAG client → RAG HTTP API: HTTP requests
- RAG HTTP API → RAG orchestrator: dispatches RAG work
- RAG orchestrator → Document ingestion: loads and chunks
rag-service/app/pipeline/rag_pipeline.py - RAG orchestrator → Embeddings: creates embeddings
rag-service/app/pipeline/rag_pipeline.py - RAG orchestrator → Hybrid retrieval: retrieves evidence
rag-service/app/pipeline/rag_pipeline.py - RAG orchestrator → Reranking: reranks candidates
- RAG orchestrator → Answer and citations: generates cited answer
- RAG orchestrator → Citation verification: checks citations
rag-service/app/pipeline/rag_pipeline.py - RAG orchestrator → Qdrant vectors: stores vectors
rag-service/app/pipeline/rag_pipeline.py - RAG orchestrator → PostgreSQL: document metadata
- n8n automation → Ingestion API: initiates ingestion