About
## The problem it solves
1. Stops Shadow AI data leaks: Employees get an AI assistant without ever pasting confidential contracts, code, or financials into public tools like ChatGPT. 2. Works 100% offline: Runs completely on the company's own local servers—not a single byte of data ever touches the internet. 3. Cuts hours of manual searching: Finds exact answers from hundreds of internal SOPs, policy PDFs, and manuals in seconds.
 4. Reads messy scanned files: Uses offline OCR to pull clean text and tables from scanned PDFs, forms, and images so teams don't have to retype data. 5. Automates Excel & data crunching: Safely writes and runs Python scripts inside a locked sandbox to analyse spreadsheets, spot anomalies, and check calculations. 6. Creates ready-to-use files: Instead of just replying in a chat box, it generates formatted .docx reports, approval notes, decks, and code files ready to share. 7. Leaves zero traces behind: Active files and chats stay only in temporary RAM and wipe automatically when the session ends—no sensitive files left sitting on disk. 8. Easy to trust and audit: Streams every step the AI takes live on screen so there is no black box, while saving clean, sanitized logs for IT and compliance teams.

## Challenges we ran into
1) Out-of-context and hallucinated answers: Smaller local models (like Llama 3.2) often drifted off-topic or guessed details when given large company PDFs.
Fix: Added a Local RAG pipeline with cleaner, section-based chunking and a Verify node in LangGraph that forces the model to ground answers strictly in retrieved document clauses—rejecting and retrying if citations are missing.
- Slow loading and frozen UI: Running OCR, RAG, and multi-step local inference took several seconds, so standard REST requests left the screen stuck on a loading spinner.
Fix: Switched to FastAPI WebSockets to stream tokens and agent reasoning steps live, and used 4-bit quantised GGUF models in Ollama—cutting perceived wait time and keeping the UI responsive.
- One model struggling with both coding and writing: Using a single local model for everything caused broken Python scripts and messy formatting.
Fix: Built a Dynamic Model Router in LangGraph that sends coding/Excel tasks to Qwen 2.5 Coder and general reasoning/drafting to Llama 3.2, with an isolated Docker sandbox to catch and auto-fix script errors.
- Messy text from scanned PDFs: Raw Tesseract OCR often jumbled tables and blurry scans, feeding garbage into the LLM.
Fix: Added native text/table parsers for digital PDFs, kept Tesseract OCR strictly as a fallback for scanned pages, and pre-processed images before extraction.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.








