Study Q&A from PDFs, CSVs & Web Pages (RAG with Citations)
by Taĵ Shabreeŋ
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.
$8.99
Study Q&A from PDFs, CSVs & Web Pages (RAG with Citations)
Example session with this skill installed
Using my course PDF ./course_notes.pdf, explain what merge sort is. Answer using only the retrieved information and include the source PDF name and page numbers.
- Read your context and instructions
- Compiled the study q&a from
I built a local knowledge base from course_notes.pdf (29 pages, 59 chunks, embedded with all-MiniLM-L6-v2 and stored in ChromaDB) and retrieved the closest passages for your question.
Merge sort
Merge sort is a sorting algorithm that uses the divide-and-conquer approach. It repeatedly divides an array into smaller halves until each part contains one element, then merges the parts back together in sorted order [S1]. The notes state a time complexity of O(n log n) [S1] and include a worked example that merges two sorted halves into one sorted array [S2].
How it works (from the notes)
- Divide the array into two halves.
- Recursively sort each half.
- Merge the sorted halves into one sorted array.
Sources
| Id | File | Page |
|---|---|---|
| S1 | course_notes.pdf | 28 |
| S2 | course_notes.pdf | 24 |
This answer uses only the retrieved passages. If the notes don't contain the answer, the agent replies: "I could not find the answer in the provided knowledge source."
Next steps
- Check pages 24 and 28 of the PDF to confirm the details.
- Ask a follow-up:
python scripts/rag_cli.py ask "time complexity of merge sort" --k 6 - Add another document:
python scripts/rag_cli.py build --type pdf --source more_notes.pdf --append
Connects securely to your tools. The creator never sees your data.
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_kbfolder. - 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
--generatewith your own Groq API key if you want the answer written by a Groq-hosted LLM instead of your agent.
How it works
- Install the dependencies with pip (includes PyTorch).
buildingests your PDF, CSV or URL.askreturns the top matching passages as JSON.- 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.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Software
- 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.
Permissions
Reads only the PDF/CSV you specify. Writes only to the .rag_kb folder. Does not scan other files.
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.