Thousands of researchers, writers, and software engineers maintain personal knowledge bases in tools like Obsidian, Logseq, or Emacs. Over years of note-taking, however, finding old insights becomes difficult: simple keyword searches fail when you can't recall the exact wording you used years ago. Khoj acts as an AI second brain that continuously indexes your notes, extracts semantic meaning, and answers complex conversational questions citing your original notes.
Key Features of Khoj
- Native Obsidian & Emacs Plugins: Rather than forcing you to move your notes into another proprietary cloud database, Khoj runs alongside your existing Markdown vault and integrates into Obsidian as an interactive sidebar assistant.
- Multi-Modal Search & Speech-to-Text: Khoj can transcribe voice notes locally using Whisper, index images, and synthesize web search results alongside your personal files.
- Complete Privacy: When configured with Ollama, zero data leaves your local machine. Your notes, queries, and embeddings remain strictly within your network.
Khoj Semantic Search & Citation Flow
Docker Compose Deployment
services:
khoj:
image: ghcr.io/khoj-ai/khoj:latest
container_name: khoj
restart: unless-stopped
ports:
- "42110:42110"
volumes:
- ./khoj_data:/root/.khoj
- /path/to/my/obsidian_vault:/vault:ro
environment:
- KHOJ_ANONYMOUS_TELEMETRY=false
Khoj vs AnythingLLM vs Obsidian Smart Connections
| Capability | Khoj | AnythingLLM | Obsidian Smart Connections |
|---|---|---|---|
| Client Footprint | Desktop, Web, Obsidian, Mobile | Desktop & Web UI | Obsidian Plugin Only |
| Note Sync Integration | Live filesystem watching | Manual upload / batch ingestion | Live in-app indexing |
| Autonomous Research | Yes (Web Search + Notes) | Yes (Agent Workspaces) | No (Local notes only) |
When mounting your personal notes into the Khoj Docker container, always append the :ro (read-only) volume flag (e.g. -v ~/Documents/Notes:/vault:ro). This guarantees that even during aggressive automated indexing or LLM agent tool execution, the container cannot inadvertently overwrite, reformat, or corrupt your primary markdown files on the host machine.
Explore Khoj at khoj.dev or inspect the project repository on GitHub.
Discussion & Issues
Comments
Post a Comment