# Semantic Recall

> Semantic (vector) memory recall for Clark. Finds facts by MEANING, not just keywords — use when the lexical memory (holographic FTS) misses paraphrases or synonyms, or when you want the most conceptually-relevant stored facts about a topic (owner, projects, tokens, tools, business). Complements the built-in memory; does not replace it.

- Skill: `s3yed/semantic-recall` (Agent Skill)
- Install (CLI): `npx skillmds@latest add s3yed/semantic-recall`
- Raw SKILL.md: https://api.skillmd.com/api/skills/s3yed/semantic-recall/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: S3YED (https://skillmd.com/u/s3yed)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/s3yed/semantic-recall

---


# semantic-recall: Vector Memory Layer

Clark's holographic memory is lexical (FTS5 + Jaccard token overlap + SHA-256 hash HRR). It misses synonyms and paraphrases. This skill adds a real learned-embedding semantic layer (fastembed BAAI/bge-small-en-v1.5, ONNX, no torch) over the same `memory_store.db` facts.

## When to use
- A recall by exact words returned nothing useful but the concept is likely stored.
- You want the top conceptually-similar facts about a person, project, credential, or tool.

## Recall a query

```bash
/usr/local/lib/hermes-agent/venv/bin/python /root/.hermes/semantic/semantic.py recall "<your natural-language query>" 5
```

Returns JSON: `[{fact_id, score, category, content}, ...]` ranked by semantic similarity (higher score = closer).

## Re-index after new memories (normally the cron does this every 6h)

```bash
/usr/local/lib/hermes-agent/venv/bin/python /root/.hermes/semantic/semantic.py index
```

Incremental: only embeds new/changed facts, prunes deleted ones. Output JSON: `{indexed, deleted, total_facts}`.

## Stats / health

```bash
/usr/local/lib/hermes-agent/venv/bin/python /root/.hermes/semantic/semantic.py stats
```
