# PDF RAG Assistant

> A local-first AI document research assistant for PDFs, with hybrid retrieval and evidence-backed answers.

PDF RAG Assistant is a subscription AI agent skill on Agensi by ROHITH RAM H, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5/mo (subscription, cancel anytime)
- Creator: [ROHITH RAM H](https://www.agensi.io/creators/rohith-ram-h)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/pdf-rag-assistant
- Tags: pdf, rag, research, document-analysis, hybrid-search

## About this skill

Manual document research is slow and prone to oversight. This skill provides a local-first retrieval system to search, summarize, and compare PDF documents with verifiable page-level citations.

### What it does
- **Hybrid retrieval** combines semantic FAISS embeddings with BM25 keyword search for higher accuracy.
- **Evidence grounding** enforces precise citations including filenames and 1-based page numbers.
- **Multi-document analysis** compares information across multiple files to identify contradictions or patterns.
- **Content extraction** processes digital PDFs page-by-page while maintaining structural metadata.
- **Rank fusion** uses Reciprocal Rank Fusion (RRF) to merge and deduplicate search results from different algorithms.

### How it works
1. **Document inspection** verifies file signatures, page counts, and text extractability.
2. **Text processing** chunks content with overlapping windows to preserve context.
3. **Retrieval execution** runs local Python scripts for semantic and keyword search.
4. **Response generation** synthesizes an answer using only the retrieved evidence.
5. **Verification** cross-references every claim against the source snippets before output.

### Frameworks & tools
Python 3.10+, `pypdf`, `sentence-transformers`, `faiss-cpu`, `rank-bm25`, and `numpy`.

### Why this beats prompting it yourself
Generic prompts often hallucinate page numbers or skip technical details in large files. This skill uses a structured RAG pipeline with local scripts to ensure every answer is backed by a specific chunk of text, not just the model's memory.

### Use cases
- Analyze technical specifications to find specific hardware requirements.
- Compare multiple research papers to summarize different methodologies.
- Extract evidence from legal or financial documents for due diligence.
- Search through a library of manuals for specific troubleshooting steps.

### Known limitations
Does not support OCR for scanned or image-only PDFs. Requires local Python environment with specified libraries for hybrid search features.

## Requires

- Python
- pypdf
- sentence-transformers
- faiss-cpu
- rank-bm25
- numpy
- Optional: Groq API key (GROQ_API_KEY) + groq package (only for --groq synthesis)

Processes digital PDFs locally with no external backend. Uses your agent's own LLM by default. Scanned/image-only PDFs require OCR (planned for v1.1).

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the PDF RAG Assistant skill from Agensi" and describe your task.
3. Subscribe on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific problem does this skill solve for document research?

This skill provides a retrieval-augmented generation (RAG) system that uses local hybrid search to find specific information across one or multiple PDF documents. It solves the problem of hallucinated citations by enforcing precise, page-level evidence for every claim the AI makes.

### What technical requirements are needed to run the search scripts?

You must have a local Python 3.10 or higher environment with libraries such as pypdf, sentence-transformers, and faiss-cpu to enable the hybrid search features. While it uses your agent's default model by default, you can optionally use Groq if you provide a GROQ_API_KEY.

### What kind of output and citations should I expect?

Every response includes a grounded answer followed by a dedicated Evidence section. This section lists the source filename, the 1-based page number, and the specific text excerpt used to verify the information.

### Are there any types of PDF files that this skill cannot read?

This skill cannot process scanned or image-only PDFs because it does not currently support OCR. It is designed for digital PDFs with extractable text and will notify you if a file is unreadable or password-protected.

### How should I prompt my AI agent to start a research task?

You can ask your agent to summarize a specific technical manual, compare methodologies across several research papers, or find hardware requirements within a set of specifications. Simply point the agent to your local files and state your question or comparison request.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
