# Study Q&A from PDFs, CSVs & Web Pages (RAG with Citations)

> Turn a PDF, CSV or web page into a local searchable knowledge base, then get study answers with source and page citations. Runs on your machine with ChromaDB and MiniLM embeddings. No API key needed by default. No OCR.

Study Q&A from PDFs, CSVs & Web Pages (RAG with Citations) is a paid AI agent skill on Agensi by Taĵ Shabreeŋ, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $8.99 (one-time purchase)
- Creator: [Taĵ Shabreeŋ](https://www.agensi.io/creators/ta-shabree)
- 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/study-q-a-from-pdfs-csvs-web-pages-rag-with-citations
- Tags: llm-ops, python, langchain, chromadb, rag, embeddings

## About this skill

Ask questions about your own lecture notes, textbook PDFs, datasets or web pages, and get answers that point to the exact source. This skill builds a local retrieval-augmented generation (RAG) knowledge base with LangChain and ChromaDB, then returns the matching passages with citation ids so your agent can answer only from them.

### What it does
- **Three source types:** text-based PDF, CSV file, or a public website URL.
- **Local search:** chunks text and embeds it on your machine with `all-MiniLM-L6-v2`; the knowledge base is stored in a local `.rag_kb` folder.
- **Citations built in:** each retrieved passage has an id (`[S1]`, `[S2]`), the source name, the PDF page number and a distance score.
- **Grounded answering rules:** the skill instructs your agent to use only the retrieved text, never invent citations, and reply "I could not find the answer in the provided knowledge source." when nothing matches.
- **Optional Groq answers:** add `--generate` with your own Groq API key if you want the answer written by a Groq-hosted LLM instead of your agent.

### How it works
1. Install the dependencies with pip (includes PyTorch).
2. `build` ingests your PDF, CSV or URL.
3. `ask` returns the top matching passages as JSON.
4. Your agent writes the answer and cites `[S1]`, `[S2]`.

### Requirements
Python 3.10+, pip, internet on first run (about 90 MB embedding model download). Large install because of PyTorch.

### Privacy
Documents and the knowledge base stay on your machine. Data leaves it only for: the website URL you provide, the one-time model download, and Groq if you choose `--generate`. Telemetry from ChromaDB is switched off.

### Use cases
- Study questions from lecture notes or textbook PDFs
- Looking up facts in a dataset description or small CSV
- Summarising one documentation page with the source kept
- Checking which part of a document supports a claim

### Known limitations
No OCR (scanned PDFs), images, conversation memory or reranking. Distance is not a confidence score. CSV questions that need sums or averages are unreliable. Some websites block scraping or need JavaScript. Answers are only as good as the retrieved text; always check the cited source.

## Requires

- pip
- Python 3.10+

First run downloads a ~90 MB embedding model from Hugging Face. Install includes PyTorch (large). Works offline afterwards, except website URLs and the optional Groq mode.

## 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 Study Q&A from PDFs, CSVs & Web Pages (RAG with Citations) skill from Agensi" and describe your task.
3. Buy it 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

### How does this skill prevent the AI from making up information (hallucinating)?

This skill creates a local vector database on your machine from your PDFs, CSVs, and URLs, allowing an AI to answer questions based strictly on your files with specific page and source citations.

### What exactly is included in the download package?

You will receive a Python-based CLI tool, a pre-configured environment setup guide, and the integration logic for LangChain and ChromaDB to manage your local knowledge base.

### Do I need an expensive GPU or cloud subscription to use this RAG assistant?

It requires Python 3.10+ and a machine capable of running PyTorch; while it is optimized for local embedding, it also supports Groq API integration for faster text generation if you prefer not to run the full LLM locally.

### Can I use this to search through scanned handwritten notes or images?

The skill supports standard text-based PDFs, CSV datasets, and static web URLs, but please note that it does not currently support scanned images or handwriting via OCR.

### How are updates handled if a new version of LangChain or a better embedding model is released?

Updates are provided through the marketplace dashboard; because the system is modular, you can update your local embedding models or switch LLM providers without rebuilding your entire document database.

### How is this different from just attaching a file to a standard AI chat prompt?

Unlike standard prompting which has a limited 'memory' window, this skill indexes your entire library of documents, retrieving only the most relevant snippets to answer a specific query accurately.

---

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.
