SapienAI
A self-hosted academic chatbot and writing workspace that connects to Ollama or cloud models and supports LaTeX, Typst, Markdown and Zotero search.

SapienAI is an academic chatbot and research workspace for researchers who want to keep source material, writing and AI conversations together. Research spaces group project documents, notes and drafts so the AI can answer questions using uploaded material.
- Academic writing: Work in LaTeX, Typst or Markdown with as much or as little AI assistance as you choose.
- Source-based chat: Ask the AI to read and summarize uploaded documents, with integrated academic paper search to support answers with research evidence.
- Semantic search: Find relevant information across chats and uploaded documents using natural language, and connect Zotero to search your reference library.
- Literature reviews: Generate reviews from uploaded sources and export them in Word or Excel format.
- Spoken conversations: Talk with the AI through realtime audio chat.
The repository's self-hosted workspace runs through Docker and supports local models through Ollama alongside OpenAI, Anthropic and Google providers. Messages, files and images use local storage, but storage location and model processing are separate choices: requests sent to a cloud provider leave your machine. Provider connections can also use Azure, AWS or Google Vertex.