zotero-rag
Skill by nealcaren
Searches your project's local library of markdown papers by meaning, using sentence-transformers embeddings and ChromaDB. Built for researchers who want to find passages, similar text and surrounding context across indexed papers.
Install zotero-rag
Built from the published package, never by AI.
git clone --depth 1 https://github.com/nealcaren/social-data-analysis /tmp/social-data-analysis && mkdir -p ~/.claude/skills && cp -r /tmp/social-data-analysis/plugins/zotero-rag/skills/zotero-rag ~/.claude/skills/zotero-ragRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/nealcaren/social-data-analysis /tmp/social-data-analysis && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/social-data-analysis/plugins/zotero-rag/skills/zotero-rag ~/.gemini/antigravity-cli/skills/zotero-ragAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
zotero-rag is a skill for semantic search across a project's local library of markdown-converted papers in library/markdown/. It uses sentence-transformers embeddings with the all-MiniLM-L6-v2 model and stores vectors in ChromaDB at library/.rag-index/. The skill replaces the deprecated Zotero RAG integration and uses the same 384-dimension model.
Papers are split into section-level chunks at ## headers, with fixed chunks of about 512 tokens for headerless documents. Commands cover indexing, searching by meaning, finding similar passages, reading the context around a chunk, checking index status, listing documents, and removing them. Only files registered in references.bib are indexed. It suits researchers who keep papers in a project library and want exploratory search alongside grep for exact terms.
Written from the project's SKILL.md and checked against it.
What it can do
- indexBuilds or updates the vector index from library/markdown/, skipping unchanged files.
- searchRuns semantic search across indexed documents and returns results ranked by similarity.
- similarFinds passages similar to a given chunk, including content from other papers.
- contextShows a target chunk with neighboring chunks from the same document.
- statusShows index statistics such as document count, chunk count and last modified time.
- listLists all indexed documents with their chunk counts.
- removeRemoves a document from the index by citation key.
What you need
- uv installed
- Papers ingested with ingest.py
- references.bib with md_path fields
Try asking
- Search my library for cultural capital and educational attainment.
- Find passages similar to this chunk abc123def456 in other papers.
- Show the context around this search hit so I can read the full passage.
Good to know
- Only files registered in references.bib are indexed.
- Loose markdown files without a bib entry are flagged as unlinked during indexing.
- The first run downloads the all-MiniLM-L6-v2 model, about 80MB.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/zotero-rag/skills/zotero-rag/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to zotero-rag
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
zotero-rag: common questions
Does zotero-rag replace the Zotero RAG integration?
Yes. The source says it replaces the deprecated Zotero RAG integration and uses the same 384-dimension embedding model.
When should I use rag.py search instead of grep?
The source says to use semantic search for conceptual discovery and grep for exact keywords, phrases, author names or method names.
Which files does the index include?
Only markdown files registered in references.bib through an md_path field are indexed. Unregistered files are flagged as unlinked.
How do I install zotero-rag?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is zotero-rag free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is zotero-rag safe to use?
It scores 59 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to zotero-rag?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
