msia-rag

Automate RAG-based regulatory document QA with citations from uploaded texts.

Updated Jan 7, 2026
One-click install
npx skills add https://github.com/pepeccz/msi-a --skill msia-rag
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: msia-rag
Source: https://github.com/pepeccz/msi-a/tree/main/skills/msia-rag
Command: npx skills add https://github.com/pepeccz/msi-a --skill msia-rag

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MSI-a's RAG-based workflow enables fast, accurate Q&A over regulated documents by retrieving, chunking, and citing relevant content from uploaded texts.

Core Features & Use Cases

  • End-to-end RAG pipeline: document ingestion, semantic chunking with heading hierarchies, hybrid LLM routing (local + cloud), and citation-rich responses.
  • Multi-source search: vector search via Qdrant and keyword search with PostgreSQL, merged with RRF for high-relevance results.
  • Compliance-grade QA: supports regulatory documents and mappings to sections for accurate citations.

Quick Start

Upload a regulatory document and ask a question to retrieve, cite, and answer using the most relevant chunks.

Frequently Asked Questions about msia-rag

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

FAQPage Schema
How do I automate retrieval-augmented generation for regulatory document QA?

Automating retrieval-augmented generation for regulatory QA requires ingesting texts, applying hierarchical chunking with heading mappings, and routing queries across hybrid LLMs to retrieve and cite relevant chunks. The workflow uses asynchronous architecture, Redis caching, and Qdrant vector store for compliance-grade responses.

What is hybrid LLM routing and how does it work for document-heavy workflows?

Hybrid LLM routing for document-heavy workflows uses a triage-based orchestration to direct simple queries to local models and complex queries to cloud models. This asynchronous architecture optimizes processing speed and cost while maintaining accurate retrieval-augmented generation for regulatory texts.

Can I use Qdrant vector search and PostgreSQL keyword search together for document retrieval?

Yes, you can combine Qdrant vector search and PostgreSQL keyword search for document retrieval. The workflow merges multi-source search results using Reciprocal Rank Fusion (RRF) to deliver high-relevance, citation-rich responses from uploaded regulatory documents.

How do I set up hierarchical chunking with heading mappings for legal texts?

Hierarchical chunking with heading mappings for legal texts requires parsing uploaded regulatory documents into semantically meaningful sections based on their heading hierarchies. This structure enables precise retrieval and accurate citations during the retrieval-augmented generation process.

Do I need asynchronous architecture and Redis caching to process regulatory documents?

Yes, you need asynchronous architecture and Redis caching to process regulatory documents efficiently. This setup supports triage-based LLM orchestration and hybrid routing, ensuring fast query handling and scalable retrieval-augmented generation across local and cloud models.