local-rag

Build a local vector knowledge base with semantic search and reranking.

113|26|Updated May 10, 2026
One-click install
npx skills add https://github.com/nigo81/nigo-skills --skill local-rag-nigo81
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: local-rag
Source: https://github.com/nigo81/nigo-skills/tree/main/local-rag
Command: npx skills add https://github.com/nigo81/nigo-skills --skill local-rag-nigo81

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires chromadb, chonkie, python-docx, PyMuPDF, pyyaml, requests, fastmcp, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a powerful local vector knowledge base for efficient documentation management and retrieval, streamlining tasks like document ingestion, semantic search, and reranking.

Core Features & Use Cases

  • Local Vector Knowledge Base: Build and manage a local knowledge base for specific projects or documentation sets.
  • Semantic Search: Perform precise searches within documents using natural language.
  • Reranking: Refine search results based on relevance scores, improving the quality of the output.
  • Use Case: For an auditor working on a complex project, this Skill can efficiently retrieve and review relevant regulations or guidelines, ensuring compliance and accuracy.

Quick Start

Run the command local-rag search my-project "审计法规" --rerank to search for "审计法规" within your local knowledge base and get reranked results.

Frequently Asked Questions about local-rag

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a local vector knowledge base for document management and semantic search?

Build a local vector knowledge base by ingesting multiple document formats into ChromaDB, enabling semantic search and reranking. This allows efficient documentation retrieval and management directly on your local machine.

Can I use Ollama or OpenAI instead of SiliconFlow for embeddings and reranking?

Yes, embeddings and reranking can use Ollama or OpenAI as alternative providers. The system defaults to the SiliconFlow API but supports configuring other embedding and reranker models for your local vector knowledge base.

What document formats are supported for ingestion into the local RAG system?

The local RAG system supports ingestion of multiple document formats. It utilizes python-docx for Word documents and PyMuPDF for PDF files, allowing you to populate your local vector knowledge base with diverse documentation.

How does semantic search reranking improve audit document retrieval?

Semantic search reranking improves audit document retrieval by refining search results based on relevance scores. This ensures auditors efficiently retrieve precise regulations or guidelines, maintaining compliance and accuracy during complex projects.

Do I need ChromaDB installed to run semantic search on my local documents?

Yes, ChromaDB is required for local execution as it provides the vector database foundation. You also need python-docx and PyMuPDF installed to handle document parsing and ingestion for the semantic search functionality.

What is the best way to search for specific regulations within a local project knowledge base?

The best way is using the semantic search command with the rerank flag, such as `local-rag search my-project "query" --rerank`. This queries your local vector knowledge base and returns refined, relevant regulation results.