Capabilities
- Document Search & Discovery — Semantic search with citation of relevant sources
- Document Operations — Create, edit, organize, summarize, and analyze docs via chat
- Conversation Management — Persistent history, automatic titling, context awareness
- Surgical Editing — Targeted changes to specific document sections without rewriting
Chat Pipeline
The assistant uses a parallelized pipeline to minimize time-to-first-token:Smart Document Search
The assistant skips unnecessary searches to save latency:- Always searches on first message in a conversation
- Skips if the query is too short (likely a follow-up)
- Skips if the user is viewing a specific document (uses that as context)
Surgical Edit System
Applies targeted changes to documents without rewriting the entire content:- Only modify the specific part mentioned
- Preserve 100% of all other content
- Return the complete document with targeted changes
Frontend
The chat UI is located atapps/web-app/components/docs-ai-chat-enhanced.tsx and features:
- Minimal single-panel design inspired by Cursor
- Chat history dropdown for resuming conversations
- Real-time streaming via Server-Sent Events
- Inline citations with similarity scores
- Custom loading animation (Whilst logo “running” effect)
- Keyboard shortcuts:
Cmd+Ufor files,Cmd+Shift+Vfor voice

