Skip to main content

Posts

Showing posts with the label Agentic AI

(AI #16) Prompt Engineering - Defensive Techniques & Versioning

Prompt engineering defensive techniques are methods used to protect LLM applications from malicious, unsafe, or misleading inputs. These techniques help prevent issues like prompt injection, jailbreaks, data leakage, hallucinations, and unauthorized actions by enforcing input validation, role isolation, output filtering, guardrails, and secure context handling in AI systems. We are going to discuss about two thing in Prompt engineering in this blog. Prompt Defense Prompt Versioning Prompt Defense  Following 8 techniques comes under Prompt defense. Please concentrate carefully. Direct Prompt Injection Indirect Prompt Injection Jail Breaking Role-Play & Persona Exploits Token Smuggling Input Sanitization Prompt Firewall Adversarial Hardening  Lets go through one by one. 1) Direct Prompt Injection Prompt Injection is a type of attack where a user (or a external data source) tries to manipulate an LLM by inserting malicious or misleading instructions into the input so that the...

(AI #21) Agentic AI Design Patterns

Agentic AI systems are evolving from simple prompt-response applications into autonomous systems capable of reasoning, planning, and taking actions using tools and external knowledge sources. Depending on the complexity of the workflow, these systems can be designed using either single-agent or multi-agent architectures. A single-agent system centralizes reasoning and decision-making within one intelligent agent, making it suitable for simpler workflows and lightweight automation. In contrast, multi-agent systems distribute responsibilities across specialized agents that collaborate to solve complex tasks more efficiently. Modern production-grade AI platforms increasingly adopt multi-agent and graph-based orchestration patterns to improve scalability, reliability, and observability. Large Language Models (LLMs) LLMs are AI models trained on vast amount of text data to understand and generate human-like text. They power chat-bots, code assistants, translation tools, content generation, ...

(AI #20) Guardrails

Guardrails in Agentic AI are rules, constraints & control mechanisms that ensure an AI agent behaves safely, reliably, and within intended boundaries - especially when it is making decisions, taking actions, or interacting with external systems. Think of Guardrails like "Safety + Governance + Control" layer around Agentic AI agent. Why Guardrails are critical in Agentic AI ? Unlike simple LLM prompts, agentic systems: Take autonomous actions(APIs, DB updates, workflows) Use tools and external systems Maintain memory and context over time Without Guardrails, they can: Hallucinate and take wrong decisions Trigger unintended workflows(Ex: Deleting entire data!) Leak sensitive information Spiral into infinite loops or bad reasoning Guardrails are categorized into 3 types: RAG Guardrails MCP Guardrails Agentic AI Guardrails Lets discuss one by one. RAG Guardrails   1) Input Guardrails Length Check User provided 3000 page document, asked to summarize this document System may cr...