Orion
Local-First AI Research and Study Workspace
Overview
Orion is a local-first AI research and study application inspired by NotebookLM. It allows researchers, students, and engineers to ingest multi-format learning materials (PDFs, Markdown notes, research papers), execute semantic retrieval queries, generate grounded examination questions, and interrogate complex source texts with verified paragraph-level citations.
The Problem
Navigating hundreds of pages of textbooks, technical specifications, and academic papers causes cognitive fatigue. Generic web-based LLMs hallucinate answers, compromise document privacy, and lack verifiable source citations pointing back to exact text fragments.
The Solution
Orion implements an end-to-end Retrieval-Augmented Generation (RAG) architecture paired with local document parsing. Uploaded documents are chunked into semantic sliding windows, indexed with dense vector embeddings, and retrieved contextually to ground every AI response with direct source references without exposing private notes to third parties.
Technology
Frontend
- React 18
- Next.js
- TypeScript
- Tailwind CSS
AI & RAG
- Dense Vector Embeddings
- Semantic Retrieval
- RAG Pipeline
- Google Gemini SDK
Document Processing
- PDF Ingestion Engine
- Semantic Chunking
- Local Vector Store
Architecture
- Local-First Storage
- Citation Grounding Layer
Document Ingestion
PDF & Markdown Parsing
Semantic Chunking
Sliding-Window Context Slices
Dense Vector RAG
Similarity Retrieval & Indexing
Source Grounding
Verified Paragraph Citations
Key Capabilities
Retrieval-Augmented Generation (RAG)
Dynamically retrieves relevant document passages to ground LLM responses in verifiable factual context.
Document Ingestion & Chunking
Local multi-format parsing for PDFs, Markdown, and text with semantic boundary chunking.
Source-Grounded Responses
Every answer features interactive, paragraph-level citations pointing directly to verified source text.
AI Study & Exam Generator
Synthesizes multi-difficulty practice questions, conceptual quizzes, and structured study guides.
Local-First Document Storage
Maintains absolute data privacy by processing and storing document embeddings locally on the client.
Obstacles Faced
- Calibrating chunk size and sliding window overlap to prevent losing critical context across section headers during vector retrieval.
- Enforcing strict source-attribution prompt constraints to eliminate hallucinations when generating study exam questions from dense academic papers.
Key Takeaways
- Source-grounded RAG with exact sentence citations provides significantly higher user trust in educational software than generic chat interfaces.
- Local-first document indexing drastically improves query latency while ensuring confidential study materials remain strictly private.
Future Improvements
- Integrate multi-document cross-comparison matrices for comparative literature reviews.
- Implement local on-device small language model (SLM) inference via WebGPU.
- Audio study summary podcast synthesis generated directly from uploaded notes (prototype planned).
