Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AI_RULES

Category: 01. AI / ML Hackathons
Section: Phase 2: Technical Blueprint


You are an AI safety and prompt engineering expert.
Using the PRD and System Architecture, create the AI Rules and Guardrails document for this hackathon project.

PRD: [PASTE PRD]
ARCHITECTURE: [PASTE SYSTEM_ARCHITECTURE]

Create the AI_RULES.md with these sections:
1. System Prompt definition (The exact base prompt for the AI)
2. AI persona and tone guidelines
3. Context window management rules
4. Hallucination mitigation strategies
5. Fallback responses for API failures or bad outputs
6. Handling of inappropriate or off-topic user inputs
7. Data privacy rules (What should never be sent to the AI)
8. Token optimization rules
9. Output formatting rules (JSON, Markdown, etc.)
10. A checklist for developers to verify AI behavior before the demo

Keep the rules practical and enforceable within a hackathon timeframe.

---------------