Xpersona
L

Local RAG

CLAWHUB · Unverified

Semantic search over local files using all-MiniLM-L6-v2 embeddings and ms-marco-MiniLM-L-6-v2 cross-encoder reranking with ChromaDB and parent-child chunking... Skill: Local RAG Owner: lookupmark Summary: Semantic search over local files using all-MiniLM-L6-v2 embeddings and ms-marco-MiniLM-L-6-v2 cross-encoder reranking with ChromaDB and parent-child chunking... Tags: latest:1.9.1 Version history: v1.9.1 | 2026-04-06T09:14:10.794Z | user Two-phase batch indexing, 25MB PDF limit, text-only/pdf-only modes, orphan detection fix v1.9.0 | 2026-04-06T09:13:53.270Z | user Two-phas

62
Rank
84
Safety
995
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 995 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17cfewgg96e4pw82ktkrftcmx845h5p:lookupmark-local-rag
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-lookupmark-lookupmark-local-rag/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

57,145 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: local-rag
description: >
    Semantic search over local files using all-MiniLM-L6-v2 embeddings and
    ms-marco-MiniLM-L-6-v2 cross-encoder reranking with ChromaDB and
    parent-child chunking. Optimized for low-RAM ARM devices (Raspberry Pi).
    Use when the user asks questions about their documents, wants to find
    information in their files without specifying exact paths, or needs to
    search across PDFs, DOCX, TXT, MD, TEX files.
    Triggers on "cerca nei miei file", "find in my files", "search documents",
    "trova nel computer", "what does my thesis say about", "search notes".
    NOT for exact file path requests, web search, or sending files.
---

# Local RAG

Semantic search over indexed local files with parent-child chunking for precise retrieval with full context.

## Architecture

| Component | Model | Size |
|-----------|-------|------|
| Embeddings | `sentence-transformers/all-MiniLM-L6-v2` | ~80MB |
| Reranker | `cross-encoder/ms-marco-MiniLM-L-6-v2` | ~80MB |
| Vector DB | ChromaDB (persistent, cosine similarity, HNSW) | varies |
| Chunking | Parent-child | — |

**Memory strategy**: Embedding model loaded first → freed with `gc.collect()` → reranker loaded → freed after scoring. This keeps peak RAM ~400MB on ARM.

## Chunking Strategy

- **Child chunks**: 128 words, 24 overlap → embedded for semantic search
- **Parent chunks**: 768 words → stored as full context, returned to user
- When a child matches → its parent is returned, giving surrounding context

## Running

All scripts must use the venv Python:

```bash
VENV=~/.local/share/local-rag/venv/bin/python
```

### Indexing

```bash
# Incremental index (default — skips unchanged files via SHA-256 hash)
$VENV ~/.openclaw/workspace/skills/lookupmark-local-rag/scripts/index.py

# Re-index from scratch
$VENV ~/.openclaw/workspace/skills/lookupmark-local-rag/scripts/index.py --reindex

# Custom paths
$VENV ~/.openclaw/workspace/skills/lookupmark-local-rag/scripts/index.py --paths ~/Documenti ~/Progetti

# Batch indexing (per-subfolder with git checkpoints, for low-RAM systems)
bash ~/.openclaw/workspace/skills/lookupmark-local-rag/scripts/index-batch.sh
```

### Querying

```bash
# Basic query
$VENV ~/.openclaw/workspace/skills/lookupmark-local-rag/scripts/query.py "what are the termination clauses?"

# More results
$VENV ~/.openclaw/workspace/skills/lookupmark-local-rag/scripts/query.py "Falcon LLM" --top-k 30 --top-n 5

# JSON output for programmatic use
$VENV ~/.openclaw/workspace/skills/lookupmark-local-rag/scripts/query.py "transformer architecture" --json

# With timeout
$VENV ~/.openclaw/workspace/skills/lookupmark-local-rag/scripts/query.py "deep learning" --timeout 60
```

Options:
- `--top-k N` — Child candidates from vector search (default: 20)
- `--top-n N` — Final parent results after reranking (default: 3)
- `--json` — JSON output
- `--timeout N` — Max seconds per query (default: 120)

### Monitoring

```bash
$VENV ~/.openclaw/workspace/skills/lookupma

_meta.json

{
  "ownerId": "kn717xksfb8vf0ja4mdr5eqqbs8457k4",
  "slug": "lookupmark-local-rag",
  "version": "1.9.1",
  "publishedAt": 1775466850794
}

skill-card.md

## Description:

Semantic search over local files using all-MiniLM-L6-v2 embeddings, ms-marco-MiniLM-L-6-v2 reranking, ChromaDB, and parent-child chunking for document retrieval on low-RAM ARM devices.

This skill is ready for commercial/non-commercial use.

## Publisher:

[lookupmark](https://clawhub.ai/user/lookupmark)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and end users use this skill to index local document folders and answer natural-language questions from retrieved file context without sending files to a web search service.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can read and persist chunks from local document folders, including unintended sensitive files.

Mitigation: Index only trusted, intended folders; review the configured allowed roots and blocked patterns before running indexing.

Risk: The skill persists private search data in a local ChromaDB store and query log.

Mitigation: Treat the local data directory as sensitive, restrict account access, and clear the index or query log when the data is no longer needed.

Risk: Batch indexing can disrupt local indexing processes when run unattended or from privileged accounts.

Mitigation: Avoid privileged execution, monitor batch runs, and do not index shared or untrusted folders until path containment, symlink handling, query-log controls, and cleanup behavior are reviewed.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/lookupmark/skills/lookupmark-local-rag)

## Skill Output:

**Output Type(s):** [text, json, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with shell commands; query output can be plain text or JSON.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Search results include file paths, relevance scores, matched snippets, and parent context; query text is truncated in the local query log.]

## Skill Version(s):

1.9.1 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Local RAG and adjacent AI workflows.