How krishna-dhawangale/graphintel works
GraphIntel is a market-intelligence document platform: users upload research files, the backend parses and indexes them, and users query the resulting corpus for grounded answers with citations. The map also includes the documented dashboard, document inspection, graph, reporting, and administration surfaces. Provider and persistence details are shown at the abstraction level; some implementation paths are unsampled, so undocumented internal links are omitted.
Main entry points: ingestion_service.py Ingestion service · api.ts API client · rag_service.py RAG orchestration · router.py Versioned API routes
Components 27
Web application
- Research workspace
frontend/src/app/chat/page.tsx - Document manager
frontend/src/app/documents/page.tsx - Chunk inspector
frontend/src/app/documents/[id]/page.tsx - Dashboard and reports
frontend/src/app/dashboard/page.tsx - Graph explorer
frontend/src/app/graph/page.tsx - API client
frontend/src/lib/api.ts
API and security
- FastAPI application
backend/app/main.py - Versioned API routes
backend/app/api/v1/router.py - Authentication and access
backend/app/api/v1/auth.py - Document endpoints
backend/app/api/v1/documents.py - Query endpoints
backend/app/api/v1/query.py - Core configuration and telemetry
backend/app/core
Document ingestion
- Ingestion service
backend/app/services/ingestion_service.py - Format parsers
backend/app/providers/parsers - Text processing and chunking
backend/app/services/chunker.py - Ingestion worker
backend/app/workers/async_worker.py
Research and retrieval
- RAG orchestration
backend/app/services/rag_service.py - Vector retrieval
backend/app/services/retrieval_service.py - Hybrid graph retrieval
backend/app/services/hybrid_retriever.py - Agent workflow
backend/app/agent/agent_service.py - Knowledge graph services
backend/app/services/graph_service.py
Providers and persistence
- Language model provider
backend/app/providers/llm/factory.py - Embedding provider
backend/app/providers/embeddings/factory.py - Vector store
backend/app/providers/vector_store/factory.py - Document storage
backend/app/providers/storage/factory.py - SQL database and models
backend/app/db/session.py
Other components
- Research user
Connections 33
- Research user → Research workspace: asks questions
- Research user → Document manager: uploads documents
- Research user → Dashboard and reports: views status
- Research user → Graph explorer: explores graph
- Research workspace → API client: submits queries
frontend/src/app/chat/page.tsx - Document manager → API client: manages files
frontend/src/app/documents/page.tsx - Chunk inspector → API client: loads chunks
- Dashboard and reports → API client: loads metrics
frontend/src/app/dashboard/page.tsx - Graph explorer → API client: requests graph
frontend/src/app/graph/page.tsx - API client → FastAPI application: calls HTTP API
frontend/src/lib/api.ts - FastAPI application → Versioned API routes: mounts routes
backend/app/main.py - Versioned API routes → Authentication and access: routes auth
- Versioned API routes → Document endpoints: routes documents
- Versioned API routes → Query endpoints: routes queries
- Document endpoints → Ingestion service: delegates ingestion
backend/app/services/ingestion_service.py - Ingestion service → Format parsers: selects parser
backend/app/services/ingestion_service.py - Ingestion service → Text processing and chunking: chunks text
backend/app/services/ingestion_service.py - Ingestion service → Document storage: stores uploads
backend/app/services/ingestion_service.py - Ingestion service → Embedding provider: embeds chunks
backend/app/services/ingestion_service.py - Ingestion service → Vector store: indexes chunks
backend/app/services/ingestion_service.py - Ingestion service → SQL database and models: records documents
backend/app/services/ingestion_service.py - Ingestion worker → SQL database and models: updates job state
backend/app/workers/async_worker.py - Query endpoints → RAG orchestration: runs RAG query
backend/app/api/v1/query.py - Query endpoints → Agent workflow: runs agent query
backend/app/api/v1/query.py - RAG orchestration → Vector retrieval: retrieves vectors
backend/app/services/rag_service.py - RAG orchestration → Hybrid graph retrieval: retrieves hybrid evidence
backend/app/services/rag_service.py - Vector retrieval → Embedding provider: embeds question
backend/app/services/retrieval_service.py - Vector retrieval → Vector store: searches chunks
backend/app/services/retrieval_service.py - RAG orchestration → Language model provider: generates answer
backend/app/services/rag_service.py - Hybrid graph retrieval → Knowledge graph services: uses graph evidence
- RAG orchestration → SQL database and models: persists query and citations
backend/app/services/rag_service.py - Agent workflow → SQL database and models: records query
backend/app/agent/agent_service.py - FastAPI application → Core configuration and telemetry: configures middleware
backend/app/main.py