Skip to main content

Posts

(AI #22) LLM Fine-Tuning Techniques

LLM finetuning is all about taking a pre-trained LLM and training it further on your own domain/task-specific data so it becomes specialized for your use case.  In fine tuning, model might haven't seen this type of complex data during pre-training and we would like to tune the model with this complex data. Here we are not talking about changing the model, we are going to use same model where we have less accuracy but we will train it further with this complex set of data to make the model perfect. Generally prompt engineering rely on the current knowledge of LLM, and we will use RAG to get more accuracy in our project specific data. If problem is beyond this, then we end up fine-tuning model itself. Drug discovery companies, Oil and Gas etc. domains use model fine-tuning as data is very rare .  What is model fine-tuning is still not enough ? Then we have obviously go for developing a new ML model. Sometime, for some use cases - a combination of fine-tuning model + prompt engin...
Recent posts

(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...