How saisankar778/nexoff works
NEX_OFF is an Electron desktop chatbot combining offline local answers, online Groq responses, and PDF question answering. The documented workflow starts at the desktop UI, routes chat through either local model execution or the Flask backend, and returns an answer; PDF handling adds extraction, chunking, and retrieval. Source excerpts show both direct Electron-to-Python execution and a renderer-to-Flask path, so both are represented. PDF UI and speech details are limited to README descriptions because their implementation was not sampled.
Main entry points: main.js Electron window · app.py Flask API · pdf_chat.js PDF chat UI · rag_engine.py Sentence retrieval
Components 16
Desktop experience
- Electron window
offline/main.js - Chat renderer
offline/renderer.js - PDF chat UI
chat_with_pdf/pdf_chat_feature/pdf_chat.js
Chat and identity
- Authentication
offline/auth.js - Local assistant
offline/llm_model.py - Sentence retrieval
offline/rag_engine.py - Groq assistant
offline/gro.py
Document intelligence
- PDF upload and extraction
offline/app.py - PDF section chunking
chat_with_pdf/pdf_chat_feature/semantic_chunker.py - Embedding retrieval
chat_with_pdf/pdf_chat_feature/rag_handler.py - PDF rendering
lib/pdfjs/web/viewer.js
Backend services
- Flask API
offline/app.py - Knowledge base
offline/knowledge_base.py - Chat history store
offline/database.py
Other components
- User
- Groq API
Connections 18
- User → Electron window: uses
README.md - Electron window → Chat renderer: loads UI
- Electron window → Authentication: authenticates
offline/main.js - Electron window → Local assistant: spawns model
offline/main.js - Local assistant → Sentence retrieval: queries
offline/llm_model.py - Electron window → Groq assistant: spawns model
offline/main.js - Groq assistant → Groq API: requests completion
offline/gro.py - Chat renderer → Flask API: posts chat
offline/renderer.js - Flask API → Chat history store: saves and reads
offline/app.py - Flask API → Sentence retrieval: gets response
offline/app.py - Flask API → Groq API: online chat
README.md - User → PDF chat UI: asks PDF questions
README.md - PDF chat UI → PDF upload and extraction: uploads PDF
README.md - PDF upload and extraction → PDF section chunking: processes locally
README.md - PDF section chunking → Embedding retrieval: provides chunks
README.md - Embedding retrieval → PDF chat UI: returns matches
README.md - User → PDF rendering: views document
README.md - Knowledge base → Sentence retrieval: supplies knowledge
offline/knowledge_base.py