# GroundLens: PDF Q&A with Page Citations

> Ask questions about PDFs with text, tables, and scans. GroundLens shows the answer, cites the source page when available, and highlights a relevant region you can inspect.

GroundLens: PDF Q&A with Page Citations is a free AI agent skill on Agensi by Nihaal Khan Durrani, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Nihaal Khan Durrani](https://www.agensi.io/creators/nihaal-khan-durrani)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/groundlens-pdf-q-a-with-page-citations
- Tags: python, ocr, rag, pdf-qa, source-citations, document-analysis, pdf-extraction, table-extraction

## About this skill

Ask questions about a PDF and check the answer against the original page. GroundLens helps you find details in documents that mix text, tables, and scanned images.

### What you get

- An answer with a source page and supporting text, when available
- A rendered PDF page with a highlighted region you can inspect
- A model-reported confidence label to help you decide when to double-check
- A web interface and a command-line helper

### How it works

Upload a PDF and ask a question. GroundLens indexes native text and tables and uses Tesseract to read embedded scans. It then retrieves relevant regions and sends candidate page images to the configured vision model. Open the cited page to check the answer in context.

Try the included sample PDF and ask, “What was the dropout rate at Site C in Islamabad?” The table on page 2 shows 12.7%.

### Requirements and privacy

GroundLens runs locally with Python 3.11 and a configured vision model. Tesseract is required for OCR, and Node.js is required for the optional web interface.

Hosted mode requires your own provider API key. It sends your question and full rendered images of candidate pages to that provider. Use documents you are allowed to share with the provider.

## Requires

- Python 3.11
- Local shell and access to the PDF
- Hosted vision API key or a local Qwen2-VL setup
- Optional: Tesseract OCR for scanned PDFs
- Optional: Node.js and npm for the web interface

Start the bundled GroundLens backend before use. It reads the selected PDF and stores the uploaded copy and index locally. Hosted mode sends your question and full images of candidate pages to your chosen vision provider.

## Known limitations

Requires a local GroundLens backend and a configured vision model. See references/runtime.md for setup. Scanned PDFs require Tesseract. Pages with no readable text or usable OCR may produce no searchable content. In hosted mode, your question and full rendered images of candidate pages are sent to your chosen vision provider.

## 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 GroundLens: PDF Q&A with Page Citations skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does Groundlens differ from standard PDF-based RAG workflows?

Unlike text-only RAG, Groundlens uses vision models to 'see' the document layout, providing spatial bounding boxes and direct page links so you can visually verify every answer.

### Which AI agents or frameworks are compatible with this skill?

Groundlens is designed as a Python-based CLI tool that can be integrated into most agentic workflows; it requires a local backend for indexing and access to a vision-capable LLM for inference.

### Can Groundlens handle scanned documents that don't have selectable text?

Yes, Groundlens includes configurable OCR support to process scanned documents or PDFs without a native text layer, rendering them as full page contexts for the vision model.

### What is included in the purchase of the Groundlens skill?

The package includes the core Python CLI tool, the indexing backend scripts, documentation for local setup, and a lifetime license for all minor version updates and bug fixes.

### How does the tool handle document privacy and sensitive data?

Because this skill renders and sends full page images to the vision provider to ensure accuracy, we recommend using it for documents where the use of cloud-based vision APIs is permitted.

### Is there a limit to the size or page count of the PDFs I can process?

While page counts are limited primarily by your vision provider's context window, Groundlens optimizes processing by chunking pages into manageable visual segments for the indexing engine.

---

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.
