qmd
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
File Explorer
- marketplace.json
- ci.yml
- nix.yml
- publish.yml
- settings.json
- qmd
- SYNTAX.md
- accelerate_multi_gpu.yaml
- sft-lfm2.yaml
- sft.yaml
- sft_local.yaml
- dataset_info.json
- fix_hyde_checkpoint.json
- qmd_expansion_balanced_deduped.jsonl
- qmd_expansion_diverse_addon.jsonl
- qmd_expansion_handcrafted.jsonl
- qmd_expansion_handcrafted_only.jsonl
- qmd_expansion_lex_phrases_negation.jsonl
- qmd_expansion_locations.jsonl
- qmd_expansion_people.jsonl
- qmd_expansion_personal_entities.jsonl
- qmd_expansion_short_nontech.jsonl
- qmd_expansion_sports.jsonl
- qmd_expansion_v3_structured.jsonl
- qmd_only_sampled.jsonl
- analyze_data.py
- prepare_data.py
- prepare_data_lfm2.py
- schema.py
- score_data.py
- validate_schema.py
- .gitignore
- queries.txt
- __init__.py
- best_prompt.txt
- best_prompt_glm.txt
- dspy_gepa.py
- example.py
- generate.py
- gepa_outputs.jsonl
- gepa_outputs_glm.jsonl
- model.json
- optimizer.py
- score.py
- grpo.py
- grpo.yaml
- README.md
- sft_lfm2.py
- sft_lfm2.yaml
- eval.py
- eval_common.py
- sft.py
- .gitignore
- benchmark.py
- CLAUDE.md
- convert_gguf.py
- convert_onnx.py
- eval.py
- eval_retrieval.py
- Justfile
- Modelfile
- pyproject.toml
- README.md
- reward.py
- SCORING.md
- train-0.8B.log
- train.py
- train_unsloth.py
- uv.lock
- build.mjs
- check-package-grammars.mjs
- extract-changelog.sh
- install-hooks.mjs
- package-smoke.mjs
- pre-push
- release.sh
- repro-metal-rsets-crash.mjs
- test-all.mjs
- mcp-setup.md
- SKILL.md
- install-hooks.sh
- release-context.sh
- SKILL.md
- example.json
- bench.ts
- score.ts
- types.ts
- embed-lock.ts
- formatter.ts
- mcp-pid.ts
- qmd.ts
- version.ts
- origin-guard.ts
- server.ts
- picomatch.d.ts
- ast.ts
- bench-rerank.ts
- collections.ts
- db.ts
- index.ts
- llm.ts
- maintenance.ts
- paths.ts
- store.ts
- test-preload.ts
- trust.ts
- embed-lock-holder.ts
- store-init-worker.ts
- api-design-principles.md
- distributed-systems-overview.md
- machine-learning-primer.md
- product-launch-retrospective.md
- remote-work-policy.md
- startup-fundraising-memo.md
- ast-chunking.test.ts
- ast.test.ts
- bench-guard.test.ts
- bench-score.test.ts
- bin-wrapper.test.ts
- build-script.test.ts
- cleanup.test.ts
- cli-exit-lifecycle.test.ts
- cli-lazy-llm-import.test.ts
- cli.test.ts
- collections-config.test.ts
- Containerfile
- db.test.ts
- embed-lock.test.ts
- esm-ambiguous-module.test.ts
- eval-bm25.test.ts
- eval-deep-research.jsonl
- eval-deep-research.ts
- eval-harness.ts
- eval.test.ts
- formatter.test.ts
- full-path-fallback.test.ts
- install-hooks.test.ts
- intent.test.ts
- launcher-detection.test.sh
- llm.test.ts
- local-config-trust-cli.test.ts
- local-config.test.ts
- mcp-origin-guard.test.ts
- mcp-pid.test.ts
- mcp-stdio-lifecycle.test.ts
- mcp.test.ts
- multi-collection-filter.test.ts
- package.test.ts
- path-fidelity.test.ts
- release-context.test.ts
- rrf-trace.test.ts
- sdk.test.ts
- smoke-install.sh
- store-cjk-fts.test.ts
- store-concurrency.test.ts
- store-insert-context.test.ts
- store-paths.test.ts
- store.helpers.unit.test.ts
- store.test.ts
- structured-search.test.ts
- update-hook-trust-cli.test.ts
- update-hook-trust.test.ts
- version.test.ts
- no-service-constructor-imports.test.ts
- no-service-constructor-imports.ts
- index.ts
- no-chained-type-assertions.ts
- no-conditional-empty-object-spread.test.ts
- no-conditional-empty-object-spread.ts
- no-known-value-widening.test.ts
- no-known-value-widening.ts
- no-module-mocking.test.ts
- no-module-mocking.ts
- no-object-parameters.test.ts
- no-object-parameters.ts
- no-reflect-apply.test.ts
- no-reflect-apply.ts
- no-reflect-get.test.ts
- no-reflect-get.ts
- no-runtime-typeof.test.ts
- no-runtime-typeof.ts
- no-shape-in-symbol-names.ts
- no-unknown-parameters.ts
- no-unknown-returns.test.ts
- no-unknown-returns.ts
- no-unknown-type-aliases.test.ts
- no-unknown-type-aliases.ts
- no-unsafe-dictionary-type.test.ts
- no-unsafe-dictionary-type.ts
- no-widen-then-assert.test.ts
- no-widen-then-assert.ts
- require-safety-comment-for-type-assertion.test.ts
- require-safety-comment-for-type-assertion.ts
- dictionary-types.ts
- lexical-type-parameters.ts
- reflect-method.ts
- index.ts
- LICENSE
- VENDOR.txt
- .gitattributes
- .gitignore
- bun.lock
- CHANGELOG.md
- CLAUDE.md
- example-index.yml
- flake.lock
- flake.nix
- LICENSE
- migrate-schema.ts
- oxlint.config.ts
- package.json
- pnpm-lock.yaml
- README.md
- tsconfig.build.json
- tsconfig.json
- vitest.config.ts
# Installation Guide
nodeSetup Steps
npm install -g @tobilu/qmd
Install QMD globally using npm.
qmd collection add ~/notes --name notes
Add notes or document folders as collections for searching.
qmd embed
Generate embeddings for semantic search.
qmd query "quarterly planning process"
Perform hybrid search with reranking.
Key Commands
qmd collection add ~/notes --name notes
Add a new document folder (collection) to the search index.
qmd context add qmd://notes "Personal notes and ideas"
Add contextual metadata to improve LLM search relevance.
qmd embed
Generate vector embeddings for semantic search.
qmd search "project timeline"
Perform fast keyword-based full-text search.
qmd query "quarterly planning process"
Perform high-quality hybrid search with LLM reranking.
qmd mcp --http --port 8181
Start the Model Context Protocol server for AI agent integration.
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Release Timeline
Actively MaintainedCommand Glossary
Commands referenced in this DOCs, explained below.
brew install
View Details ▼
brew install
Install a Homebrew formula or cask.
brew install {{formula|cask}}
Install a formula/cask:
brew install {{[-s|--build-from-source]}} {{formula}}
Build and install a formula from source (dependencies will still be installed from bottles):
brew install {{[-n|--dry-run]}} {{formula|cask}}
Download the manifest, print what would be installed but don't actually install anything:
bun install
View Details ▼
bun install
Install JavaScript dependencies for a project from `package.json`.
bun {{[i|install]}}
Install all dependencies listed in `package.json`:
bun {{[i|install]}} {{package_name}}@{{version}}
Install a single package (this is an alias for `bun add`):
bun {{[i|install]}} {{[-g|--global]}} {{package_name}}
Install a package globally:
bunx
View Details ▼
bunx
Execute a package binary (installed locally or fetched remotely).
Note: `bun x` can be used as an alias for `bunx`.
bunx {{package_name}} "{{command_argument}}"
Download and execute a package from the registry:
bunx {{package_name}} --version
Check the version of a locally installed package (if found):
bunx --bun {{package_name}}
Force an executable to run with the Bun runtime (instead of Node):
claude
View Details ▼
claude
An agent-based coding tool that understands your code base and helps you code faster through natural language commands.
claude prompt
Execute with prompt:
claude update
Update `claude`:
claude mcp list
Get the list of specified MCP servers:
git clone
View Details ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
git pull
View Details ▼
git pull
Fetch branch from a remote repository and merge it to local repository.
git pull
Download changes from default remote repository and merge it:
git pull {{[-r|--rebase]}}
Download changes from default remote repository and use fast-forward:
git pull {{remote_name}}
Download changes from a specific remote repository:
lex
View Details ▼
lex
Lexical analyzer generator.
Given the specification for a lexical analyzer, generates C code implementing it.
Note: On most major OSes, this command is an alias for `flex`.
lex {{analyzer.l}}
Generate an analyzer from a Lex file, storing it to the file `lex.yy.c`:
tldr flex
View documentation for the original command:
lex -t {{analyzer.l}} > {{analyzer.c}}
Specify the output file:
npm install
View Details ▼
npm install
Install Node packages.
npm {{[i|install]}}
Install dependencies listed in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}
Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
npm link
View Details ▼
npm link
Symlink a local package into the global `node_modules` or another project for development.
npm {{[ln|link]}}
Symlink the current package globally:
npm {{[ln|link]}} {{package_name}}
Link a globally linked package into another project's `node_modules`:
npm {{[r|unlink]}} {{package_name}}
Unlink a package from the current project:
npm
View Details ▼
npm
JavaScript and Node.js package manager.
Manage Node.js projects and their module dependencies.
Some subcommands such as `install`, `run`, etc. have their own usage documentation.
npm init {{[-y|--yes]}}
Create a `package.json` file with default values (omit `--yes` to do it interactively):
npm {{[i|install]}}
Download all the packages listed as dependencies in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npx
View Details ▼
npx
This command is an alias of `npm exec`.
tldr npm exec
View documentation for the original command:
regex
View Details ▼
regex
Regular expressions (`regex`) are patterns used to match, search, and manipulate text.
Note: `regex` isn't a command, but syntax to be used with other commands.
See also: `egrep`, `glob`.
.
Match any single character:
^{{hello}}
Match the start of a line:
{{world}}$
Match the end of a line:
query
View Details ▼
query
Display information about user sessions and process.
query session
Display all user sessions:
query session /server:{{hostname}}
Display the current user sessions on a remote computer:
query user
Display logged in users:
