home / skills / openclaw / skills / engram
This skill enables semantic search over a local Markdown knowledge base using embeddings to reveal contextually relevant results.
npx playbooks add skill openclaw/skills --skill engramReview the files below or copy the command above to add this skill to your agents.
---
name: engram
description: Provides semantic search for a local knowledge base using Pinecone and Gemini embeddings.
---
# 🧠Engram - Semantic Search Skill
This skill enables an AI agent to perform semantic searches on a local folder of Markdown files (e.g., an Obsidian vault). It finds information based on the meaning and context of a query, not just exact keywords.
## Tools
### engram_search
Searches the indexed knowledge base.
- **`query`** (string, required): The natural language question to ask.
- **`top_k`** (number, optional): The number of results to return.
- **`min_score`** (number, optional): The minimum relevance score (0.0 to 1.0) for results.
### engram_index
Builds or updates the search index from the local Markdown files. This tool should be run periodically to keep the search memory synchronized.
## Author
- **Andrie Wijaya** ([@Anwitch](https://github.com/Anwitch))
This skill provides semantic search over a local knowledge base of Markdown files using Pinecone and Gemini embeddings. It turns a folder of notes (for example an Obsidian vault) into a searchable memory that finds conceptually relevant passages, not just keyword matches. Use it to surface context, related notes, and concise excerpts for agent reasoning or user queries.
The skill indexes Markdown files by embedding their content with Gemini and storing vectors in Pinecone. It exposes two tools: one to build or update the index from your local folder, and another to run natural-language queries that return top-k results with relevance scores. Results are ranked by semantic similarity, and you can filter by minimum score or limit the number of returned passages.
How do I keep the index up to date?
Run the index tool after changes or schedule periodic updates; it builds or refreshes embeddings from the local Markdown folder.
What do top_k and min_score control?
top_k limits the number of returned results; min_score filters results below a relevance threshold to remove weak matches.
Can I exclude files from indexing?
Yes. Remove or tag files you don't want included before running the index tool so they are not embedded or stored.