Writing Docs That Retrieve Well
Retrieval quality starts with document quality.
The prompt
Restructure this document for AI retrieval: break it into sections with descriptive question-style headings, one topic per section, key facts stated explicitly (no "as mentioned above" references). Keep all information, change only structure. [paste document]
What to replace
Swap these placeholders for your own details before running the prompt:
[paste document]your own value
Pro tip: Every section should make sense read in isolation — retrieval pulls sections out of context, so "see above" references break answers.
How to use this prompt
- Copy the prompt using the button above.
- Replace [paste document] with your own details — the more specific you are, the better the output.
- Paste it into Claude and run it.
- If the answer feels generic, add constraints: audience, length, tone, and what to avoid. That single change fixes most weak output.
Learn the technique
Writing Docs That Retrieve Well
Module 2 — No-Code Custom Knowledge · RAG & Custom AI Knowledge
Related prompts
What RAG Actually Does
RAG (Retrieval-Augmented Generation) retrieves the most relevant passages from your documents and injects them into the prompt before the model answers.
ChatGPTChunking: Why Split Size Matters
Documents are split into chunks before embedding.
ChatGPT / ClaudeCustom GPTs & Claude Projects
Both ChatGPT (Custom GPTs) and Claude (Projects) let you upload documents and set standing instructions — a no-code RAG setup.
ChatGPTSQL Query Explainer
Understanding or debugging unfamiliar queries. Ideal when you inherit a legacy codebase, review a teammate's pull request, or hit a slow query you did not write. Asking for a plain-English walkthrough before the optimisation notes means you understand the intent first, so you can tell a genuine bug from a deliberate design decision.
ClaudeCode Review Pass
Pre-review pass before submitting a pull request
ClaudeTone Rewriter
Adjusting tone without rewriting from scratch
Related across the site
GPT vs Claude vs Gemini: An Honest Comparison
A practical comparison of the three leading AI models across writing, coding, reasoning, long documents and cost — including which one to reach for on which task, and where each genuinely falls short.
Reasoning model
A reasoning model is trained to generate extended internal deliberation before answering. It trades latency and cost for substantially better performance on maths, logic, coding and multi-step problems.
Refactor Without Breaking It
Improve code structure while proving behaviour is unchanged. Tests the discipline of characterising existing behaviour before changing anything — the part everyone skips.
Ship a Portfolio Site in an Afternoon
Use a template plus AI-written copy to put a real portfolio online. The hard part is not the code, it is writing about your own work without sounding like everyone else, so most of this project is about the words.
Meta-Prompting: Prompts That Write Prompts
The fastest way to a great prompt is asking the model to write and critique one.
AI Ad Manager
Generate ad copy variants at scale, brainstorm targeting angles, and use AI to analyze ad performance data for Google and Meta campaigns.