zvec-local-rag-service

Operate an always-on local semantic-search service using zvec + Ollama embeddings. Use when you need to ingest .txt/.md files, run meaning-based search via HTTP endpoints (/health, /ingest, /search), and keep the service running on macOS (launchd) or manually. Includes service code, launchd template, and management scripts.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "zvec-local-rag-service" with this command: npx skills add emre-koc/zvec-local-rag-service

zvec-local-rag-service

Run local RAG search with Ollama embeddings and zvec.

Included files

  • scripts/rag-service.mjs → HTTP service implementation
  • scripts/manage.sh → bootstrap/start/stop/restart/health/ingest/search
  • references/launchd.plist.template → macOS LaunchAgent template

Prerequisites

  • Node.js 18+
  • Ollama daemon running
  • Embedding model (default): mxbai-embed-large

Prepare model once:

ollama pull mxbai-embed-large

Quick start

From the skill directory:

scripts/manage.sh bootstrap
scripts/manage.sh install-launchd   # writes plist, inspect once
scripts/manage.sh start
scripts/manage.sh health

Ingest and search:

scripts/manage.sh ingest ./docs
scripts/manage.sh search "your query"

Install + smoke test (copy/paste)

# 1) prerequisites
ollama pull mxbai-embed-large

# 2) bootstrap and start service
scripts/manage.sh bootstrap
scripts/manage.sh install-launchd
scripts/manage.sh start

# 3) verify health
scripts/manage.sh health

# 4) create tiny test corpus
mkdir -p ./docs
cat > ./docs/sample.md <<'EOF'
Zvec + Ollama enables local semantic search.
EOF

# 5) ingest + query
scripts/manage.sh ingest ./docs
scripts/manage.sh search "local semantic search with ollama"

Endpoints

  • GET /health
  • POST /ingest with { "dir": "./docs", "reset": true }
  • POST /search with { "query": "...", "topk": 5 }

Persistence (macOS launchd)

Install and enable LaunchAgent:

scripts/manage.sh install-launchd
scripts/manage.sh start
scripts/manage.sh status

Remove LaunchAgent:

scripts/manage.sh uninstall-launchd

Always inspect generated plist before enabling persistence:

  • ~/Library/LaunchAgents/com.openclaw.zvec-rag-service.plist

Config via env vars

  • RAG_HOST (default 127.0.0.1)
  • RAG_PORT (default 8787)
  • OLLAMA_URL (default http://127.0.0.1:11434)
  • OLLAMA_EMBED_MODEL (default mxbai-embed-large)
  • RAG_BASE_DIR (default ~/.openclaw/data/zvec-rag-service)
  • ALLOW_REMOTE_OLLAMA (default false, blocks non-local OLLAMA_URL)
  • ALLOW_NON_LOOPBACK_HOST (default false, blocks externally reachable bind host)

Notes

  • Secure defaults: loopback-only service + loopback-only Ollama.
  • Remote embedding/host binding require explicit opt-in env flags.
  • launchd operations are macOS-specific. On non-macOS, run with scripts/manage.sh start (manual mode).

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Aws Fis Experiment Prepare

Use when the user wants to prepare, create, or generate an AWS FIS (Fault Injection Service) experiment configuration. Triggers on "prepare FIS experiment",...

Registry SourceRecently Updated
General

Aws Fis Experiment Execute

Use when the user wants to run a prepared AWS FIS experiment where the CloudFormation stack has already been deployed. Triggers on "execute FIS experiment",...

Registry SourceRecently Updated
General

Warranty Return Dispute Kit

Organizes a defective-product, denied-warranty, or return-window dispute into an evidence packet, timeline, support message, escalation script, contact log,...

Registry SourceRecently Updated
General

Goldman Sachs Co

提供高盛公司历史、业务模式、市场地位及关键数据,助力研究投资银行和金融机构角色分析。

Registry SourceRecently Updated