| name | qmd |
| description | Searches local markdown notes and documents using ir CLI. Use when searching notes, querying documents, managing collections, or retrieving document content. |
| allowed-tools | Bash(ir:*) |
ir - Local Markdown Search
๋ก์ปฌ ๋งํฌ๋ค์ด ๋ฌธ์๋ฅผ ์ธ๋ฑ์ฑํ๊ณ ๊ฒ์ํ๋ CLI ๋๊ตฌ.
Status
!ir status 2>/dev/null || echo "ir not available"
CLI
ir search "question"
ir search --mode bm25 "keywords"
ir search --mode vector "question"
ir get "#abc123"
ir get notes/meeting.md:50 -l 100
Search Options
--mode <MODE>
-n <num>
--min-score <num>
-c, --collection <name>
--full
--files
--json
--md
--csv
--all
-v, --verbose
Collection Management
ir collection list
ir collection add ~/notes --name notes
ir collection remove <name>
ir update --pull
ir embed
ir status
Examples
๋
ธํธ์์ ์ ๋ณด ๊ฒ์
User: "๋ฐฐํฌ ๊ด๋ จ ๋
ธํธ ์ฐพ์์ค"
โ ir search "๋ฐฐํฌ ๋ฐฉ๋ฒ deploy" -n 10
โ ๊ฒฐ๊ณผ ์์ฝ ์ ๊ณต
โ ํ์ ์ ir get "#docid"๋ก ์์ธ ์กฐํ
BM25 ํค์๋ ๊ฒ์
User: "vault ์ค์ ์ฐพ์์ค"
โ ir search --mode bm25 "vault config" -n 5
ํน์ ์ปฌ๋ ์
์์ ๊ฒ์
User: "ํ์๋ก์์ ํ๋ก์ ํธ ํ์๋ผ์ธ ์ฐพ์์ค"
โ ir search "ํ๋ก์ ํธ ์ผ์ ๊ณผ ๋ง์ผ์คํค" -c meetings -n 10
์ค์ ์์น
- ๊ฒ์ ๋ชจ๋: ๋น ๋ฅธ ํค์๋ โ
--mode bm25, ์ต๊ณ ํ์ง โ ๊ธฐ๋ณธ hybrid
- ์ ์ ํด์: 0.8+ ๋งค์ฐ ๊ด๋ จ, 0.5-0.8 ์ ๋น, 0.5 ๋ฏธ๋ง ์ฝํจ
- ์ปฌ๋ ์
์ค์ฝํ:
-c ์ต์
์ผ๋ก ๋ฒ์๋ฅผ ์ขํ๋ฉด ๋
ธ์ด์ฆ ๊ฐ์
- ํ์ดํ๋ผ์ธ:
--json/--files ์ถ๋ ฅ์ผ๋ก ํ์ฒ๋ฆฌ ์ฐ๊ฒฐ