# Ask Your Documents: Cited Answers, No Guessing

> Index a folder of contracts, policies or notes, then ask questions. Your agent answers only from the passages it retrieved, cites every claim by file and line, and says the documents do not cover it instead of guessing.

Ask Your Documents: Cited Answers, No Guessing is a free AI agent skill on Agensi by Mohamed Ghoniem, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Mohamed Ghoniem](https://www.agensi.io/creators/mohamed-ghoniem)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.0.0
- Last updated: 2026-12-05
- Security: scan passed (2026-12-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ask-your-documents-cited-answers-no-guessing
- Tags: research, document-qa, citations, grounding, rag

## What it does

- Answers questions using only your provided documents to prevent made-up facts
- Provides exact file names and line numbers for every claim made in the answer
- Refuses to answer if the information is missing from your files instead of guessing
- Splits complex questions into parts to ensure every detail is searched thoroughly
- Builds a private local index of your folders without needing any extra online accounts

## Who it's for

- **Freelancers and researchers with deep folders of notes:** Find exactly where you said something without the AI making up facts or mixing up your projects. Try: "What did I decide about the logo colors in my client meeting notes?"
- **Business owners reviewing contracts and policies:** Get answers to legal or policy questions that point to the exact page and line in your files. Try: "What is the late payment fee in the vendor agreement?"
- **Teams managing large sets of internal project reports:** Verify if your team has already documented a solution before you start a new task. Try: "Does our safety manual cover chemical spills in the warehouse?"

## About this skill

An agent with file access will answer from its own memory, sound certain, and be wrong. That is the failure this skill removes.

It builds a keyword index (BM25) over a folder of your files, then answers a question by retrieving the passages that actually address it. Every claim in the answer carries a citation to the file and line range it came from. When nothing in the folder covers the question, the skill returns a refusal instead of an answer, and the agent tells you the documents do not cover it.

Nothing leaves your machine. There is no API key, no account, no server and no network call: the scripts are plain Python 3.9+ with the standard library only, and the index is a JSON file you can delete.

It is built for the questions where a confident wrong answer costs money: notice periods, fees, caps, approval rules, dates and obligations. It also ships an eval script, so you can prove retrieval works on your own documents before you rely on it.

What it does not do: it indexes plain text only. Convert anything else to text first with a tool you already use, then drop the text files in the folder.

## Requires

- Python 3.9 or newer

Runs on plain Python 3.9 or newer. Nothing else to install, no account, no network.

## Known limitations

The agent only sees a snapshot of your files. You must refresh the index after you edit or add new documents.

## Technical details

Python 3.9 or newer, standard library only. No dependencies to install.

Files: SKILL.md, scripts/index.py, scripts/search.py, scripts/eval.py, references/grounding-rules.md, references/tuning.md, templates/answer-format.md, templates/cases.example.jsonl.

Index: JSON with per-chunk term counts and document frequencies. Scoring is BM25 (k1 1.5, b 0.75). Chunking is paragraph-aware with Markdown heading boundaries, 900 characters by default. Retrieval keeps passages that contain at least 40 percent of the question's meaningful terms, top 5 per question part, and splits multi-part questions on "and". Eval reads a JSONL of cases and reports hit rate plus refusal correctness.

Tested on a mixed folder of a contract, a policy and a price sheet: 3 of 3 eval cases passed, including the case that must refuse.

## 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 Ask Your Documents: Cited Answers, No Guessing 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 is this different from just asking my AI agent questions about my files?

This skill stops your AI agent from guessing when it cannot find facts in your documents. It forces the agent to search your files first, cite exact line numbers for every claim, and admit when it does not know the answer instead of making something up.

### Do I need any special software or paid accounts to use this?

You need Python 3.9 or newer installed on your computer. Beyond that, the skill works entirely with your local files and does not require any paid API keys, external databases, or an internet connection to process your documents.

### Will the agent automatically know when I add a new file to my folder?

The skill creates a search index that is a snapshot of your folder at a specific moment. If you add new documents or edit existing ones, you must tell the agent to run the indexing tool again so it can see those updates.

### How do I tell my AI agent to start using this skill on my documents?

You can simply provide the path to the folder you want it to study and ask your question. For example, you can tell the agent to index your contracts folder and then ask what the termination notice period is according to those specific files.

### Can the agent still use its own memory to fill in gaps in my documents?

No, the skill is designed to ignore general knowledge from the internet or the agent's training data. It only uses the specific passages it finds in your provided files to ensure the answers are completely grounded in your own data.

---

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.
