Introduction
DocPortal AI is an enterprise-grade Retrieval-Augmented Generation (RAG) platform designed for intelligent document management, semantic search, AI-powered querying, and automated insight generation. The system combines hybrid search, vector databases, LLM orchestration, and asynchronous ingestion pipelines to enable scalable document intelligence across large collections of enterprise documents.
Core Features
Enterprise RAG Chat
AI-powered conversational interface that enables users to query documents using natural language with streaming responses and source-aware contextual retrieval.
Hybrid Search Engine
Combined BM25 keyword retrieval and vector similarity search using weighted ranking algorithms for improved semantic accuracy and relevance scoring.
Intelligent Ingestion
Automated ingestion pipeline capable of parsing, semantic chunking, and vector indexing for PDF, DOCX, TXT, and Markdown files.
Intelligence Briefs
AI-generated analytical briefs that aggregate insights across multiple documents using Gemini-based extraction pipelines and structured analytics generation.
System Architecture
DocPortalAI follows a layered enterprise microservices architecture designed for scalability, asynchronous processing, and modular AI orchestration.
DocPortalAI Enterprise RAG Architecture — Frontend, FastAPI Backend, Core Data Layer (PostgreSQL, Weaviate, S3), and AI & Cloud Providers (Groq, Nomic, Gemini).
Built with React.js and Context API, the frontend provides the user interaction layer for document uploads, analytics dashboards, and real-time monitoring.
Major UI Components
- Advanced Intelligence Dashboard: Interactive dashboard with sortable tables and document status monitoring.
- Projects Dashboard: Central hub for managing all document projects — view project status, document counts, and jump directly into project-specific chat or analytics.
- Project Insights Page: Per-project intelligence hub that surfaces AI-generated analytical briefs, document summaries, and key insights extracted across the entire project knowledge base.
- Context-Aware RAG Chat UI: Conversational interface with streaming responses and source citations — supports both project-scoped and global cross-project querying.
- Document Ingestion Portal: Drag-and-drop system with batch upload support and progress tracking.
- Database Management Page: Multi-tenant collection browser with Weaviate vector store visibility, document count tracking, and collection-level controls.
Intelligence Dashboard
Document Ingestion Portal
Context-Aware RAG Chat UI
DB — Collections View
DB — Document Index
DB — Vector Stats
Project Insights Page
AI-Generated Project Insights — Full Report View
Projects Dashboard
List of PDF's in a Project
The core intelligence is powered by a high-performance FastAPI backend organized into modular domain services with asynchronous processing capabilities.
API Gateway
Handles request validation, JWT authentication, GZip compression, and secure CORS security configuration.
Document Service
Manages upload lifecycle, metadata extraction, version control, and duplicate detection.
Hybrid Search Scoring
Improves semantic relevance, contextual retrieval quality, and keyword precision.
Data Storage Layer
PostgreSQL
Used for metadata storage, user sessions, analytics, document indexing, and brief storage.
Weaviate
HNSW indexing for semantic vector storage and sub-second similarity search (768D).
Amazon S3
Enterprise-grade storage for raw, processed, and temporary ingestion documents.
AI & LLM Integrations
DocPortalAI integrates multiple AI providers for specialized enterprise tasks.
| Provider | Model | Core Responsibility |
|---|---|---|
| Groq | Llama 3.3 70B | Low-latency RAG response generation & synthesis |
| Nomic | Embed-Text-v1.5 | High-dimensional (768D) vector generation |
| Gemini | Gemini 1.5 Pro | Insight extraction & intelligence brief generation |
Technical Workflows
The PDF is parsed immediately on upload using Python libraries (PyMuPDF, python-docx). During parsing, a raw copy of the file is simultaneously persisted to S3 for archival. The parsed content is then semantically chunked, vectorized via Nomic Embeddings, and indexed into Weaviate for retrieval.
Top-ranked chunks are aggregated into an optimized context window, allowing Groq Llama 3.3 to generate contextual, source-backed responses streamed to the UI. The system supports two chat modes:
Scoped to a single project's document collection — ideal for deep-diving into a specific knowledge base with high-precision retrieval.
Project Chat — Conversation View
Project Chat — Response Detail
Inline Source Citations — Every answer is grounded in traceable document references
Queries span all projects simultaneously, enabling cross-collection analysis and organization-wide document intelligence.
Global Chat — Query Interface
Global Chat — Multi-Project Response
Global Chat — Source Aggregation
Gemini analyzes trends, risks, and strategic patterns across grouped documents to produce structured analytical briefs and visualizations.
AI-Generated Insights Panel
Intelligence Brief Detail Modal
Security Architecture
Authentication
JWT-based auth with token expiration and refresh token support.
API Security
CORS whitelisting, rate limiting, and TLS 1.3 encryption for all pipes.
Data Privacy
PII scrubbing using local Ollama and encrypted S3 storage buckets.
API Infrastructure
Exposed REST APIs for comprehensive system interaction and monitoring.
| Method | Endpoint | Action |
|---|---|---|
| POST | /api/v1/documents/upload | Async document ingestion |
| POST | /api/v1/chat | Contextual RAG interaction |
| POST | /api/v1/search | Hybrid semantic/keyword search |
| GET | /api/v1/stats | System health & telemetry |
Technical Highlights
App Gallery
Click any image to explore the DocPortal AI interface in high resolution.
Main Intelligence Dashboard
Document Ingestion Portal
Projects Dashboard
Projects & Documents List
AI-Generated Project Insights
Project Insights Panel
Intelligence Brief Modal
Project Chat
Project Chat — Response Detail
Inline Source Citations
Global Chat
Global Chat — Multi-Project Response
Global Chat — Source Aggregation
Collections View
Document Index
Vector Stats
Code & Deployment
The complete source code for DocPortal AI is open-source and available on GitHub.