AI Agent Integration
RESEARCH SKILL
by LocalResearcher
A deterministic engineering & retrieval skill for Antigravity, Claude, and Codex enforcing 100% local zero-API inference, layout-aware OCR parsing, Okapi BM25 + dense vector RAG, and strict [Page X] provenance.
Installation
Included directly in .agents/skills/research-skill-localresearcher/SKILL.mdto guide AI coding agents across LocalResearcher's local models, OCR pipeline, and UI standards.
# Skill location in this workspace.agents/skills/research-skill-localresearcher/SKILL.md# Pre-download all 3 local ONNX models (Embeddings, SQuAD QA, LaMini-Flan-T5)npm run download-modelsCore Directives
01. Zero-API Local Execution
All embeddings (all-MiniLM-L6-v2), QA (DistilBERT SQuAD), GenAI synthesis (LaMini-Flan-T5-77M), and OCR (Tesseract.js) execute locally via WebAssembly/ONNX with zero user API keys.
02. Layout-Aware OCR & Parsing
PDF extraction segments single-column, 2-column, 3-column, and mixed bands in true reading order, de-hyphenates wrapped words, and falls back to 2x canvas OCR for scanned pages.
03. Hybrid BM25 + Semantic RAG
Retrieval combines Okapi BM25, morphological stemming, and bigram phrase matching with dense cosine similarity and MMR TextRank summarization.
04. Clickable [Page X] Provenance
Every generated claim is strictly grounded in retrieved chunks and post-fixed with clickable [Page X] anchors backed by confidence thresholds to prevent hallucination.