<< Home | Work
€2,700 earned and 30+ minutes saved per query
| Area | Work |
| AI used | Any |
| Source | r/PromptEngineering |
| Posted | 2026-04-15 |
The move
Build a RAG system that enforces a strict hierarchy of document authority and requires specific citations for every answer.Steps
- Identify a professional niche drowning in document-heavy research.
- Define a hierarchy of authority for the documents in that domain.
- Configure the RAG system to prioritize high-authority sources in the context window.
- Force the AI to output specific citations for every claim made.
- Implement a feedback loop where expert annotations update the knowledge base.
Prompt for your AI
Act as a legal research assistant. When answering questions based on the provided documents, you must strictly follow this hierarchy of authority: [Insert Hierarchy Tiers]. You must cite the exact document title, court name, and article number for every claim. If sources conflict, explicitly state which source holds higher authority and explain the discrepancy. Do not use generic references like 'professional literature'.
What happened
A GDPR compliance firm struggled with manual legal research across hundreds of documents with varying legal weight. The developer built a RAG system that ranks sources by authority and forces the AI to cite specific court names and article numbers. This reduced research time from 30+ minutes to under one minute per query. The developer earned €2,700 for the two-week project.Watch out
AI may hallucinate citations if not strictly constrained by the retrieval context. Ensure the system architecture prevents the AI from ignoring the defined hierarchy.Give it to your agent
Read https://howtheyuse.ai/p/2-700-earned-and-30-minutes-saved-per-query.md and help me do this.