← スキル一覧に戻る

setup-environment
by TrevorS
⭐ 0🍴 0📅 2025年12月12日
SKILL.md
name: setup-environment description: Set up the embedding model for semantic search. model2vec-rs downloads models automatically; use when build fails or model download issues occur.
Environment Setup for Semantic Search
Instructions
glhf uses model2vec-rs with Potion-base-32M for embeddings. The model downloads automatically on first use.
Quick Setup
No manual setup required:
cargo build --release
./target/release/glhf index
The embedding model (~130MB) will download to the HuggingFace cache on first run.
Model Details
| Property | Value |
|---|---|
| Model | minishlab/potion-base-32M |
| Dimensions | 512 |
| Size | ~130MB |
| Cache Location | ~/.cache/huggingface/ |
Verify Setup
# Run embedding tests
cargo test embed -- --ignored
Common Issues
| Error | Solution |
|---|---|
Failed to load model | Check internet connection, model will auto-download |
No space left | Clear HuggingFace cache: rm -rf ~/.cache/huggingface/ |
Slow first run | Normal - model downloads once, then cached |
Skip Embeddings
For text-only search (faster indexing, no model download):
glhf index --skip-embeddings
This enables FTS5 search but disables semantic/hybrid modes.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です