10 – Prompt Engineering and Advanced AI Tools
~4 min readAI LiteracyAI Literacy Course · Part 10 of 17 — the article series covering EU AI Act Article 4. Every part ends with a self-assessment.
Part 6 delivered the prompting basics (CRAFT). This part goes one level deeper: five strategic prompting techniques, the RAG pattern for accessing your own company data, and how to evaluate AI agents.
Five advanced prompting strategies
| Strategy | Description | Example |
|---|---|---|
| Chain-of-thought | Have it think step by step | "Solve the problem step by step" |
| Few-shot | Provide examples | "Here are 3 good summaries. Do the same for:" |
| Role prompting | Assign a role | "You are a compliance expert for the EU AI Act" |
| Structured output | Specify the format | "Answer as JSON with the fields: risk, action, deadline" |
| Negative prompting | Define what to avoid | "Do not invent facts. If unsure, say 'No data'" |
As a daily-work template, a six-part prompt has proven itself: role (professional role), context (background), task (what exactly?), format (what should the answer look like?), optionally one or two examples, and constraints (what to avoid). Prompting is a core skill — trained systematically as a team, not left to individual luck.
RAG: your data meets the language model
RAG (Retrieval Augmented Generation) connects AI with your own data — without expensive model training. The mechanics in four steps: documents are stored in a vector database; when a question arrives, the relevant documents are retrieved; the model receives the question plus the retrieved documents as context; and it answers only based on those documents.
The benefit: no hallucinations about internal data, knowledge stays current, and the processing can be built GDPR-compliant. Typical enterprise use cases:
| Use case | Data source | Benefit |
|---|---|---|
| Internal knowledge management | Confluence, SharePoint | Staff find answers instantly |
| Compliance helpdesk | EU AI Act, GDPR, internal policies | Well-founded answers |
| Customer service | Product docs, FAQs | Faster, more consistent answers |
The main advantage over a plain chatbot is thus neither speed nor price — RAG can access company data and does not hallucinate about it.
AI agents: more than a chatbot
An AI agent executes tasks autonomously. Proven scenarios: email classification (sorting by urgency, forwarding), report generation (merging data from multiple sources), monitoring (watching compliance metrics, alerting on deviations) and onboarding (guiding new staff through the AI policy, documenting training). Agents need clear boundaries and human-in-the-loop points — the more autonomous the system, the more important the control points.
Reading shadow AI as a symptom
A subtle but important shift in perspective from part 6: shadow AI rarely arises from malice — it arises because the official solutions are not good enough. The three-stage plan therefore reads: (1) find shadow AI — team surveys, traffic analysis, conversations with office managers. (2) Integrate the users rather than punish them — the usage shows real demand. (3) Build an official offering that is better than the shadow solution. Shadow AI is not the problem but a symptom — a wake-up call for better official AI offerings.
Self-assessment
Check yourself before moving on.
- Name the five advanced prompting strategies. — Expected: chain-of-thought, few-shot, role prompting, structured output, negative prompting.
- How does RAG work, in four steps? — Expected: documents in a vector database → retrieve relevant documents → question + documents as context → answer only from those documents.
- What is the main advantage of RAG over a plain chatbot? — Expected: access to company data without hallucination risk about it — not speed or cost.
- Why do AI agents need human-in-the-loop points? — Expected: they act autonomously; without control points, errors multiply unnoticed.
- How should discovered shadow AI be handled? — Expected: integrate, don't punish — it signals real demand; the official offering must improve.
Scoring: 5 of 5 confident — continue to part 11. 3–4 — rework the RAG steps and the shadow-AI symptom logic. Below 3 — repeat this part.
→ Continue with 11 – Audit and Compliance Deep Dive.