# QMD for Raycast

URL: https://www.raycast.com/karelvuong/qmd

> Search your Markdown notes on-device with QMD using BM25 keyword, semantic vector or hybrid search with LLM reranking, and manage indexed collections.

- Install: raycast://extensions/karelvuong/qmd
- Author: [Karel Vuong](https://www.raycast.com/karelvuong)
- Installs: 306
- Platforms: macOS
- Categories: Developer Tools, Productivity
- Updated: 2026-11-17
- Source: https://github.com/raycast/extensions/tree/480c8790efdca370fda96f8f95bc914604e362d5/extensions/qmd/

## Commands

- **Keyword Search**: Fast BM25 keyword search across your markdown collections
- **Semantic Search**: Vector similarity search using semantic embeddings
- **Hybrid Search**: Best quality search combining keyword and semantic search with LLM reranking (uses more resources)
- **Add Collection**: Create a new indexed collection from a folder of markdown files
- **Manage Collections**: View, edit, rename, and remove collections
- **Update Collections**: Scan all collections for new or changed files and update the index
- **Add Context**: Add a context description to improve search relevance for a collection or document
- **Manage Contexts**: View, edit, and remove context descriptions
- **Get Document**: Retrieve a document by its path or document ID
- **Status**: View index health, collection stats, and embedding status
- **Generate Embeddings**: Generate vector embeddings for semantic search (runs in background)
- **Cleanup**: Remove orphaned data and cache from the QMD index
- **Reset QMD**: Delete all QMD data including collections, contexts, and embeddings (requires confirmation)

## README

### QMD for Raycast

A Raycast extension for [QMD](https://github.com/tobi/qmd) - an on-device search engine for markdown files.

#### Screenshots

![Search results](https://github.com/raycast/extensions/raw/480c8790efdca370fda96f8f95bc914604e362d5/extensions/qmd//media/qmd-1.png)
![Add collection](https://github.com/raycast/extensions/raw/480c8790efdca370fda96f8f95bc914604e362d5/extensions/qmd//media/qmd-2.png)
![Index status](https://github.com/raycast/extensions/raw/480c8790efdca370fda96f8f95bc914604e362d5/extensions/qmd//media/qmd-3.png)

#### Prerequisites

1. **Bun**: Install from [bun.sh](https://bun.sh)
2. **QMD**: `bun install -g https://github.com/tobi/qmd`
3. **SQLite** (macOS): `brew install sqlite`

#### Getting Started

1. Add a collection: point QMD at a folder of markdown files
2. Generate embeddings: enables semantic search (downloads ~3GB model)
3. Search: keyword, semantic, or hybrid search

See [QMD documentation](https://github.com/tobi/qmd) for full details on commands and features.

#### Configuration

##### Custom Binary Paths

If Bun or QMD are installed in non-standard locations (e.g., via Homebrew), you can configure custom paths in Extension Preferences (⌘,):

- **Custom Bun Executable Path**: Set the full path to your Bun executable
- **Custom QMD Executable Path**: Set the full path to your QMD executable

To find the correct path, use `which` in Terminal:
```bash
which bun
which qmd
```

Leave these fields empty to use automatic detection (checks `~/.bun/bin` and system PATH).

#### Data

- Index: `~/.cache/qmd/index.sqlite`
- Config: `~/.config/qmd/index.yml`
