<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ashutosh Kumar (Shah) on Medium]]></title>
        <description><![CDATA[Stories by Ashutosh Kumar (Shah) on Medium]]></description>
        <link>https://medium.com/@ashutoshshah?source=rss-b0e2a2cddbbc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZO4yVJMV_5te2y5kJBP9UQ.jpeg</url>
            <title>Stories by Ashutosh Kumar (Shah) on Medium</title>
            <link>https://medium.com/@ashutoshshah?source=rss-b0e2a2cddbbc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 21:12:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ashutoshshah/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mastering MCP Threat Modeling in AI: Reshaping Security for Agentic Systems]]></title>
            <link>https://medium.com/@ashutoshshah/mastering-mcp-threat-modeling-in-ai-reshaping-security-for-agentic-systems-0c85da12c917?source=rss-b0e2a2cddbbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c85da12c917</guid>
            <dc:creator><![CDATA[Ashutosh Kumar (Shah)]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 22:07:50 GMT</pubDate>
            <atom:updated>2026-02-02T22:07:50.798Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*7MXb8v7fDPRQwHSNC7QN8A.png" /></figure><p>Threat modeling isn’t what it used to be. In the era of AI agents and MCP (Model Context Protocol), traditional approaches like STRIDE fall short. Here’s a practical guide to securing the invisible threads powering modern AI.</p><h3>The MCP Revolution: Why Trust Boundaries Are Collapsing</h3><p>MCP quietly connects AI models to tools, credentials, and external systems — the “glue code” where major security failures happen. Traditional apps follow predictable execution paths: input → logic → output. Agentic AI? Dynamic tool selection, persistent memory, emergent behaviors. We can’t statically analyze all paths or assume least privilege holds.</p><p>Key Shift: Prompt influences tools, tools influence memory, memory influences future decisions. No clean “inside/outside” anymore.</p><h3>The 3-Layer Threat Model You MUST Adopt</h3><p>Lets breaks AI threats into three critical layers — essential for MCP-enabled systems:</p><h4>1. Model Layer (Important but not sufficient)</h4><ul><li>Prompt injection</li><li>jailbreaks</li><li>Output Manipulation</li><li>Hallucinations</li></ul><p>All of above matters — but alone, they’re noisy, not fatal. and the Real danger: What can a manipulated model do with tools/system access?</p><h4>2. Context &amp; Orchestration Layer (Where MCP Lives)</h4><ul><li>Context aggregation</li><li>Memory Persistence</li><li>Tool invocation</li><li>Planning loops</li><li>Decision chaining.</li></ul><p>Controls the “what model sees, remembers, believes, acts on.” Scrutinize like Application Security (AppSec) does authz/access control.</p><h4>3. Impact Layer (What Keeps Sec Teams Up at Night)</h4><ul><li>Real systems</li><li>Real data</li><li>Real money</li><li>Real people.</li></ul><p>Ask AppSec: “What’s the worst legitimate thing this agent could do?” if the answer is Delete data? Expose secrets? Trigger deployments? Message customers? Risk exists even without exploits.</p><h3>AI Threat Modeling 3 Layers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*VkRkDuheWF9A0-VQ_WoYqA.png" /></figure><h4>Real-World Threats: Beyond Model Safety Hype</h4><p>Stop fixating on hallucinations/guardrails — the real levers are in connectivity.</p><h4>1. Context Poisoning</h4><p>Slow corruption via documents, logs, tickets, agent-generated summaries. Agent trusts bad assumptions → biased planning → downstream actions. No alerts, no policy violations — works as designed.</p><h4>2. Token/Secret Leakage</h4><p>LLMs trained to be helpful → blindly pass tool outputs back.Debug logs with keys, context reuse without redaction. Model doesn’t grok sensitivity/regulatory impact.</p><h4>3. Privilege Escalation via Scope Creep</h4><p>Starts innocently: “Just read access for testing.” Agents compose low-risk tools into high-risk chains. Read → lateral movement → destructive workflows. Model didn’t “hack” — just combined granted capabilities.</p><h4>4. Shadow MCP Servers</h4><p>Local MCP servers for demos → shared creds, no login, no ownership, production data flowing through. Already happening across organizations.</p><h3>Step-by-Step MCP Threat Modeling Framework</h3><p>Mental model shift: Context = new input surface. Internal ≠ trusted.</p><ol><li>Map Context Sources — User input + logs/tickets/documents attackers can influence.</li><li>Identify Context Transformations — Summarization = security boundary. Can amplify malice, hide attacks.</li><li>Find Decision Points — Tool selection, param choice, memory writes, escalation.</li><li>Audit Tools — Read/write powers, feedback loops to context. Tools = new system calls (probabilistic).</li><li>Secure Memory — Who reads/writes? Assume slow-burn, cross-session poisoning.</li></ol><h3>MCP Threat Modeling Steps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/193/1*vxMDzLJ6ln-17qgJn96z_w.png" /></figure><h4>Actionable Controls + Governance Checklist</h4><p>Design-time: Architecture diagrams, tool/permission inventories. Run-time (critical but rare): Monitor behavior drift, unexpected tool sequences, memory pollution.</p><p>Key Controls:</p><ul><li>Context validation/classification</li><li>Guarded transformations (summarization)</li><li>Approval gates for critical decisions</li><li>Scoped tokens, time-bound creds</li><li>Output filtering before execution</li></ul><p>Governance Essentials:</p><ul><li>Inventory MCP instances + owners</li><li>Incident response must cover agents</li><li>Checklist: Mapped flows? Known tools? Observable? Stoppable?</li></ul><h4>The Bottom Line</h4><p>Agentic AI doesn’t fail loudly — it fails silently over time, doing exactly what we told it to do. Secure the invisible connective tissue, not just the model. AppSec must evolve from securing code to securing decision-making systems</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c85da12c917" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic AI Memory Management: Key Techniques for Smarter Systems]]></title>
            <link>https://medium.com/@ashutoshshah/agentic-ai-memory-management-key-techniques-for-smarter-systems-d1f3b5e4eecf?source=rss-b0e2a2cddbbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1f3b5e4eecf</guid>
            <dc:creator><![CDATA[Ashutosh Kumar (Shah)]]></dc:creator>
            <pubDate>Fri, 03 Jan 2025 11:20:24 GMT</pubDate>
            <atom:updated>2025-01-03T11:20:24.152Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hva0CmEKA6uxLb-B8hhgkA.jpeg" /><figcaption>AI Memory Management</figcaption></figure><p>Hello Architects and Leaders, today I thought to throw some lights on efficient memory management which is crucial for AI agents design to deliver consistent and context-aware performance. Here’s how it’s done:</p><p>1. Short-Term vs. Long-Term Memory<br>Short-Term Memory: Tracks user intents and queries within the current session to ensure relevant interactions.<br>Long-Term Memory: Retains historical data, preferences, and domain knowledge, enabling continuity across sessions over weeks or months.<br>2. Vector Databases &amp; Semantic Search<br>AI agents convert data into vector embeddings to perform semantic searches. This lets them quickly access contextually relevant information from vast knowledge bases, improving response accuracy.<br>3. Chunking &amp; Context Windows<br>Large inputs (e.g., documents or conversation histories) are split into smaller chunks for focused analysis. This prevents the agent from losing track and helps it prioritize the most critical pieces of data.<br>4. Metadata &amp; Tagging<br>Metadata (e.g., timestamps, user IDs, categories) streamlines data retrieval. By tagging information, agents can instantly access relevant details instead of combing through the entire database.<br>5. Retrieval-Augmented Generation (RAG)<br>Before generating responses, agents query knowledge stores for precise, up-to-date context. This makes outputs more reliable and aligned with the latest information.<br>These techniques ensure AI systems deliver smarter, more personalized, and context-rich interactions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1f3b5e4eecf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Architectural components of the Agentic AI]]></title>
            <link>https://medium.com/@ashutoshshah/the-key-components-of-ai-agent-architecture-ai-agents-are-transforming-how-we-interact-with-b78cf599098d?source=rss-b0e2a2cddbbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b78cf599098d</guid>
            <dc:creator><![CDATA[Ashutosh Kumar (Shah)]]></dc:creator>
            <pubDate>Wed, 01 Jan 2025 00:47:18 GMT</pubDate>
            <atom:updated>2025-01-01T01:03:50.265Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*8qPWqXaciPl5W-VzIh7ETQ.jpeg" /><figcaption>Agentic AI Architectural Components</figcaption></figure><h3>The Key Components of AI Agent Architecture:</h3><p>AI agents are transforming how we interact with technology. Here’s a quick look at the core components that enable them to adapt, learn, and deliver meaningful results:</p><p>1. Perception<br>What it does: Perception is how an AI agent senses its environment, whether it’s through processing text queries, interpreting images, or analyzing structured data.<br>Why it matters: The richer an agent’s perception, the better it understands context and adapts to changes.<br>2. Reasoning<br>What it does: Reasoning allows the agent to process the data it perceives, weigh options, and make informed decisions.<br>Why it matters: This is the backbone of intelligence. It ensures agents respond logically rather than reacting blindly.<br>3. Memory<br>What it does: Memory helps the agent retain past interactions and apply that knowledge for future tasks.<br>Why it matters: With memory, an agent can maintain context and improve its responses over time, making interactions seamless.<br>4. Planning<br>What it does: Planning enables the agent to break down complex tasks into manageable steps and optimize how it achieves goals.<br>Why it matters: It’s not just about solving immediate issues; planning helps chart a course for long-term success.<br>5. Action<br>What it does: Action is the agent’s way of executing decisions—whether recommending a product or completing a task.<br>Why it matters: Action is where ideas become results, closing the loop and creating tangible outcomes.<br>How It All Fits Together:<br>- Perception feeds the agent with data.<br>- Memory stores key information for context.<br>- Reasoning uses that context to make decisions.<br>- Planning charts a path to success.<br>- Action delivers measurable results.<br>Together, these components form the foundation of truly intelligent and autonomous AI systems, capable of thriving in complex environments.</p><p>#AI #AIAgents #TechInnovation #FutureOfWork</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b78cf599098d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic AI Design Approach for Real-Time Fraud Detection in Banking]]></title>
            <link>https://medium.com/@ashutoshshah/agentic-ai-design-approach-for-real-time-fraud-detection-in-banking-6aea385ddee8?source=rss-b0e2a2cddbbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6aea385ddee8</guid>
            <dc:creator><![CDATA[Ashutosh Kumar (Shah)]]></dc:creator>
            <pubDate>Mon, 23 Dec 2024 22:50:14 GMT</pubDate>
            <atom:updated>2024-12-23T23:15:17.313Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EDfKrrzk5TxRTrOUnzqVFQ.jpeg" /><figcaption>Agentic AI approach to combat fraud</figcaption></figure><p>With my experience in fraud system transformation at my previous organization (a Tier 1 bank), I realized that we could have leveraged an Agentic Autonomous AI workflow design approach to address sophisticated real-time fraud. Unfortunately, the concept of Generative AI had not yet gained traction in the market at that time.</p><p>Fraudster are getting smarter and smarter and therefore we need to take super smarter approach to combat thier sophisticated fraud tactics, hence believe traditional fraud detection systems are no longer enough.</p><p>Agentic AI is a great solution that offers an adaptive, real-time solution that enhances fraud prevention through autonomous agents. Let me elaborate through orchestration of some key agents in this space as below</p><p>1. Intelligent Agent Architecture</p><p>At the heart of the design are specialized agents that operate autonomously to monitor transactions, adapt to new threats, and engage customers:</p><p>Transaction Monitoring Agent: Continuously monitors real-time transactions using deep learning to detect suspicious activity.</p><p>Threat Intelligence Agent: Updates detection models with real-time global fraud data.</p><p>Cross-Validation Agent: Ensures accurate fraud detection across accounts and regions.</p><p>Customer Engagement Agent: Sends real-time alerts and verification requests to customers to resolve fraud quickly.</p><p>2. Real-Time Data Processing and Decision-Making</p><p>The solution processes vast amounts of transactional data in real time, enabling fast, data-driven decisions:</p><p>Transaction Streams: Real-time monitoring and analytics for transaction data.</p><p>Lakehouse architecture (Delta lake /Iceberg): Enables fast querying and analysis of transaction patterns.</p><p>3. Adaptive Learning and Model Optimization</p><p>Agentic AI autonomously learns and improves fraud detection over time:</p><p>Reinforcement Learning: Continuously optimizes detection models based on past data.</p><p>Auto-Tuning: Adapts fraud detection models based on real-time feedback to handle evolving fraud tactics.</p><p>So friends, putting my architecture hat on, I must say that right Agentic AI approach can help banks detect fraud faster, reduce false positives, and improve customer engagement, all while staying adaptive to emerging threats.</p><p>I just put my POV here but in case you are ready to embrace real-time, autonomous fraud detection? Feel free connect with me to explore how Agentic AI architecture can be designed to transform your fraud prevention strategy</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6aea385ddee8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gen AI Architecture Greenfield Approach]]></title>
            <link>https://medium.com/@ashutoshshah/gen-ai-architecture-greenfield-approach-41e78f8a5b57?source=rss-b0e2a2cddbbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/41e78f8a5b57</guid>
            <dc:creator><![CDATA[Ashutosh Kumar (Shah)]]></dc:creator>
            <pubDate>Mon, 11 Nov 2024 21:23:22 GMT</pubDate>
            <atom:updated>2024-11-11T21:23:22.319Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*YCsoEROTlIP26WF1671Ylw.jpeg" /><figcaption>Leading the Charge for Greenfield Gen AI</figcaption></figure><p>Hello everyone, here I am back with another article for those Data &amp; AI Delivery Lead / Architecture managers who are passionate to be a stalwart of AI revolution in the organization and ready to take a bold and fresh stab to establish a greenfield Generative AI ecosystem in their organization. So, let&#39;s start with the architectural approach that should focus on creating a modular, scalable, and secure environment and can help adapt to future technological advancements. I have outlined the structured approach that combines platform architecture, process, and operational practices to deliver measurable business outcomes:</p><h3>1. Platform Architecture</h3><ul><li><strong>Core Infrastructure</strong>: Use a cloud-based environment (AWS, GCP, or Azure) to allow for scalable compute and storage. Preferably, adopt a hybrid cloud architecture if sensitive data must remain on-premises. Leverage Kubernetes (e.g., GKE, AKS, or EKS) to manage AI workloads across clusters, enabling efficient resource scaling and resilience.</li><li><strong>Model Hosting and Training Layer</strong>: Choose a MLOps platform (e.g., Google Vertex AI, Azure Machine Learning, or AWS SageMaker) to streamline model management. Use containerized environments (Docker, Singularity) for model training, deployment, and scaling. Support a variety of GenAI models, from fine-tuning proprietary models to adapting open-source models (GPT, BERT, or custom LLMs) depending on business requirements.</li><li><strong>Data Layer</strong>: Set up a unified data lake with strong ETL (Extract, Transform, Load) capabilities, which supports structured, unstructured, and semi-structured data. Implement a data catalog (e.g., Google Data Catalog, Azure Purview) to provide metadata management and ensure lineage tracking. Incorporate data governance with identity-based access, encryption, and compliance to support responsible AI.</li><li><strong>Security and Compliance</strong>: Design the platform with security-first principles, integrating identity and access management (IAM) and regular audits. Implement data privacy measures such as data masking, differential privacy, and role-based access to ensure compliance with data protection regulations like GDPR, CCPA, etc. Use threat detection and endpoint protection solutions to secure model inputs, outputs, and interactions.</li><li><strong>API and Orchestration Layer</strong>: Build an API gateway to expose model APIs and microservices securely, enabling business applications to interact with the GenAI models. Implement event-driven architecture (e.g., Kafka, Google Pub/Sub) to manage real-time data flow and trigger actions based on model outputs. Use workflow orchestration tools (Apache Airflow or Prefect) for end-to-end job management and monitoring.</li></ul><h3>2. Technical Process &amp; Framework</h3><ul><li><strong>Model Lifecycle Management</strong>: Implement a standardized ML lifecycle workflow, covering data ingestion, model training, validation, deployment, monitoring, and retraining. Establish Model Quality Assurance (QA) checkpoints at each stage to ensure the models align with business goals and performance standards.</li><li><strong>Experimentation and Fine-tuning</strong>: Allow data scientists to create and iterate on model experiments through a managed experimentation platform, such as Weights &amp; Biases or MLflow. Set up controlled A/B testing environments to compare model variants and assess their impact on real-world scenarios before full deployment.</li><li><strong>Feedback Loop</strong>: Capture user interactions and feedback with model outputs to iteratively improve model accuracy and relevance. This can involve active learning pipelines where user feedback directly informs model retraining. Use dashboards (e.g., PowerBI, Looker) to visualize and analyze model performance against key business metrics, ensuring continuous alignment with business objectives.</li></ul><h3>3. Way of Working</h3><ul><li><strong>Agile &amp; Iterative Approach</strong>: Adopt an Agile methodology, with cross-functional teams working in sprints to iteratively develop, deploy, and refine GenAI solutions. Regularly revisit the backlog to incorporate new feature requests, data sources, and model improvements based on user feedback and business insights.</li><li><strong>Outcome-Oriented Roadmaps</strong>: Establish clear, outcome-based milestones for GenAI initiatives, such as increasing process efficiency, improving customer satisfaction, or reducing operational costs. Use business KPIs to assess the success of GenAI solutions. For example, customer experience KPIs could be tracked using sentiment analysis models, while efficiency could be measured through automated task completion rates.</li><li><strong>Transparency and Explainability</strong>: Provide model explainability through interpretable AI techniques, like SHAP or LIME, ensuring that business users and stakeholders can understand how models make decisions. Implement audit logs and reporting for model decisions to support accountability and alignment with ethical AI standards.</li></ul><h3>4. Delivering Tangible Business Outcomes</h3><ul><li><strong>Business Use Case Alignment</strong>: Engage closely with business units to identify and prioritize GenAI use cases that align with strategic objectives. Use cases could include automating customer support, generating synthetic data for testing, or creating personalized marketing content. Quantify expected benefits, such as improved productivity, cost savings, or customer engagement, and establish metrics to track these outcomes.</li><li><strong>Performance and ROI Monitoring</strong>: Measure the platform’s impact by tracking KPIs tied to specific business outcomes. Use monitoring tools to measure model latency, accuracy, and usage statistics. Use these insights to continuously refine models, adjust deployment strategies, and optimize resources, ensuring the platform remains responsive to business needs and generates a high return on investment.</li></ul><p>So, if you are able to follow the above architectural approach, your Gen AI platform will be positioned to deliver robust, scalable solutions that drive tangible business outcomes while remaining adaptable to the rapidly evolving GenAI landscape. If you need any assistance, please feel free to reach out to me though my LinkedIn message for a quick chat or coffee catchup :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41e78f8a5b57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Here I am very delighted to publish my learnings for establishing LLMOps using Databricks as the…]]></title>
            <link>https://medium.com/@ashutoshshah/here-i-am-very-delighted-to-publish-my-learnings-for-establishing-llmops-using-databricks-as-the-238065771003?source=rss-b0e2a2cddbbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/238065771003</guid>
            <dc:creator><![CDATA[Ashutosh Kumar (Shah)]]></dc:creator>
            <pubDate>Thu, 17 Oct 2024 18:35:52 GMT</pubDate>
            <atom:updated>2024-10-17T18:39:51.403Z</atom:updated>
            <content:encoded><![CDATA[<p>Learnings for establishing LLMOps using Databricks as the core platform.</p><p>Here I am sharing this critical pointers to ensures a scalable, robust infrastructure, seamless versioning and deployment pipelines, and real-time performance monitoring. With tools like MLflow, Delta Lake, and Databricks Workflows, we can fully operationalize LLMs, making them ready for production at scale, while integrating easily with existing cloud platforms for cost and performance optimization.</p><p>let’s adapt the top three learnings within the Databricks ecosystem:</p><p>1. Scalable and Robust Infrastructure for Training and Serving with Databricks<br>Databricks provides a unified platform for data engineering, machine learning, and model deployment, offering the necessary infrastructure to scale LLMs efficiently.</p><p>Distributed Training on Databricks:</p><p>Databricks supports distributed training on large datasets using Databricks Runtime for Machine Learning. It is optimized for distributed deep learning frameworks (such as Horovod and DeepSpeed) that scale across multiple nodes on the Databricks cluster.<br>Learning: By leveraging Databricks Spark clusters with GPUs (such as NVIDIA A100 or V100) and libraries like HorovodRunner for distributed training, you can parallelize the training process for large language models. Also, Databricks Autoscaling ensures that the compute resources dynamically scale based on the workload, optimizing infrastructure usage and reducing costs.<br>GPU/TPU Utilization:</p><p>Databricks provides GPU-enabled clusters and integrates with NVIDIA RAPIDS for accelerating GPU data processing.<br>Learning: Utilize Databricks’ DBU (Databricks Unit) pricing model to track costs more accurately and dynamically scale clusters based on actual usage patterns. This ensures that infrastructure is highly scalable and resilient while maintaining cost-effectiveness during LLM training and inference.<br>2. Efficient Model Versioning, Continuous Deployment, and Retraining with Databricks<br>Model Versioning and Governance with MLflow:</p><p>Databricks has MLflow tightly integrated, which provides tools for model tracking, versioning, and governance. It tracks hyperparameters, artifacts, and metrics for each experiment, which is critical for LLM version control and reproducibility.<br>Learning: Use MLflow Model Registry on Databricks to keep track of different LLM versions, promote models to staging/production, and roll back if necessary. This ensures that models are governed effectively with easy version management in production.<br>Continuous Deployment (CD) Pipelines:</p><p>Databricks can be integrated with CI/CD pipelines using tools like Databricks Repos and Jenkins, GitLab, or Azure DevOps to automate model deployment and retraining. This ensures seamless updates of LLMs into production.<br>Learning: Implementing Databricks Workflows or Delta Live Tables for automating LLM retraining pipelines ensures that new data continuously flows into your training workflows. Coupled with MLflow’s registry and validation capabilities, this enables a continuous delivery pipeline that tests and promotes models based on performance criteria.<br>3. Monitoring, Observability, and Feedback Loops with Databricks<br>Monitoring Model Performance and Drift on Databricks:</p><p>Databricks supports custom metric logging through MLflow, and you can integrate it with Prometheus or Databricks Metrics to monitor performance in real-time. Metrics such as latency, throughput, and accuracy can be monitored at both the system and model levels.<br>Learning: By using MLflow for logging model-specific metrics (e.g., loss, accuracy) and Databricks SQL Analytics for querying real-time model performance metrics from logs and dashboards, you can monitor model drift and degradation. Automated alerts using Databricks SQL or integrated cloud services (e.g., AWS CloudWatch, Azure Monitor) help to track model anomalies, ensuring timely intervention.<br>Establishing Feedback Loops:</p><p>Databricks facilitates the collection of feedback loops by integrating production logs, business metrics, and user feedback into the data pipeline. You can use Delta Lake to store and manage evolving datasets efficiently.<br>Learning: Implementing real-time data ingestion pipelines via Delta Lake allows you to retrain models based on fresh data. By using Databricks AutoML, models can be retrained automatically on new data and registered in MLflow for comparison with previous models. This ensures continuous model improvement and adaption to changing data patterns.<br>Conclusion<br>Using Databricks for establishing LLMOps ensures a scalable, robust infrastructure, seamless versioning and deployment pipelines, and real-time performance monitoring. With tools like MLflow, Delta Lake, and Databricks Workflows, you can fully operationalize LLMs, making them ready for production at scale, while integrating easily with existing cloud platforms for cost and performance optimization.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=238065771003" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>