Margin - AI-Powered Document Intelligence Platform
An AI-powered document intelligence platform that transforms business documents into searchable knowledge. Teams can upload PDFs, Word files, Markdown documents, and internal resources, then ask natural-language questions and get contextual answers with accurate source citations.

The challenge
Businesses often struggle to find accurate information across large collections of documents, contracts, handbooks, and internal knowledge bases. Traditional keyword-based search makes it difficult to locate relevant information, while generic AI chatbots can generate answers without providing reliable sources. The platform needed an intelligent solution that could understand document context, retrieve relevant information, and deliver trustworthy answers while keeping organizational data private and secure.
The solution
I developed Margin, an AI-powered document question-answering platform that combines Retrieval-Augmented Generation (RAG) with multiple AI model providers. The platform allows users to create workspaces, upload business documents, and interact with their knowledge base through a conversational AI interface. It retrieves relevant document passages using semantic search and generates contextual responses with clickable citations, allowing users to verify answers directly against original sources. The system also supports multiple AI providers, including OpenAI, Anthropic Claude, Google Gemini, and self-hosted Ollama models, giving organizations flexibility over performance, cost, and deployment preferences.
The results
- - AI-powered document search with natural-language question answering - Source-backed AI responses with clickable document citations - Multi-provider AI integration for flexible model selection - Semantic document retrieval using RAG architecture - Organization-based workspaces with isolated knowledge bases - Team collaboration with role-based member management - Support for self-hosted AI models through Ollama - Subscription-ready SaaS architecture with free and paid plans