How tamimdiu-232/nexora. works
Nexora is a two-plane document intelligence platform: organization users upload and process scoped documents, then search or ask grounded questions and send answers for human review; platform administrators manage system health and security without document-content access. Laravel handles the web workflow and calls the FastAPI service for AI operations. The README documents OCR, bilingual extraction, metadata, summaries, and conflict detection; some of those implementation paths were not sampled, so those links are shown only where evidence supports them.
Main entry points: main.py AI API · web.php Web routing · AiClient.php AI client · DocumentsController.php Document workflow
Components 22
Organization Workspace
- Web routing
laravel-app/routes/web.php - Document workflow
laravel-app/app/Http/Controllers/DocumentsController.php - Document processor
laravel-app/app/Services/DocumentProcessor.php - Document records
laravel-app/app/Models/Document.php
Platform Operations
- Audit logging
laravel-app/app/Services/AuditLogger.php - Platform operations
laravel-app/app/Http/Controllers/PlatformOperationsController.php
AI Processing
- AI client
laravel-app/app/Services/AiClient.php - AI API
ai-service/app/main.py - OCR extraction
ai-service/app/ocr.py - Classification
ai-service/app/classify.py - Metadata extraction
ai-service/app/info.py - Page chunking
ai-service/app/chunking.py
Search and Answers
- Vector index
ai-service/app/vector_store.py - Semantic search
laravel-app/app/Http/Controllers/SearchController.php - Chat workflow
laravel-app/app/Http/Controllers/ChatController.php - Grounded QA
ai-service/app/rag.py - LLM provider
ai-service/app/llm.py - Document summaries
ai-service/app/summarize.py - Related documents
laravel-app/app/Http/Controllers/RelatedDocumentsController.php
Human Verification
- Review workflow
laravel-app/app/Http/Controllers/ReviewController.php
Other components
- Organization user
- Super Admin
Connections 29
- Organization user → Web routing: uses workspace
README.md - Super Admin → Web routing: uses platform
README.md - Web routing → Document workflow: routes requests
laravel-app/routes/web.php - Web routing → Semantic search: routes requests
laravel-app/routes/web.php - Web routing → Chat workflow: routes requests
laravel-app/routes/web.php - Web routing → Review workflow: routes requests
laravel-app/routes/web.php - Web routing → Platform operations: routes requests
laravel-app/routes/web.php - Document workflow → Document processor: dispatches processing
laravel-app/app/Http/Controllers/DocumentsController.php - Document workflow → Document records: creates records
laravel-app/app/Http/Controllers/DocumentsController.php - Document workflow → AI client: requests AI processing
laravel-app/app/Http/Controllers/DocumentsController.php - Document processor → AI client: delegates AI calls
- AI client → AI API: calls endpoints
laravel-app/app/Services/AiClient.php - AI API → OCR extraction: uses OCR
ai-service/app/main.py - AI API → Classification: classifies documents
ai-service/app/main.py - AI API → Metadata extraction: extracts metadata
ai-service/app/main.py - AI API → Page chunking: chunks pages
ai-service/app/main.py - AI API → Vector index: indexes documents
ai-service/app/main.py - Semantic search → AI client: requests search
- AI API → Vector index: searches scope
ai-service/app/main.py - Chat workflow → AI client: requests answers
laravel-app/app/Http/Controllers/ChatController.php - AI API → LLM provider: generates answers
ai-service/app/main.py - LLM provider → Grounded QA: falls back to
ai-service/app/llm.py - Grounded QA → Vector index: retrieves chunks
ai-service/app/rag.py - AI client → Document summaries: requests summaries
laravel-app/app/Services/AiClient.php - Organization user → Review workflow: submits answers
laravel-app/app/Http/Controllers/ReviewController.php - Review workflow → Audit logging: records decisions
laravel-app/app/Http/Controllers/ReviewController.php - Super Admin → Platform operations: manages operations
README.md - Platform operations → AI client: checks service health
laravel-app/app/Http/Controllers/PlatformOperationsController.php - Platform operations → Audit logging: records actions
laravel-app/app/Http/Controllers/PlatformOperationsController.php