<?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 Rahul Nimkande on Medium]]></title>
        <description><![CDATA[Stories by Rahul Nimkande on Medium]]></description>
        <link>https://medium.com/@vermagourav2001?source=rss-fb6fe67060f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Rahul Nimkande on Medium</title>
            <link>https://medium.com/@vermagourav2001?source=rss-fb6fe67060f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:08:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vermagourav2001/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[Microsoft Fabric Data Agents: The Complete Implementation Guide | Part 5 — Design Patterns]]></title>
            <link>https://medium.com/@vermagourav2001/microsoft-fabric-data-agents-the-complete-implementation-guide-part-5-design-patterns-6e4ceea06908?source=rss-fb6fe67060f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e4ceea06908</guid>
            <category><![CDATA[fabric-data-agent]]></category>
            <category><![CDATA[agentic-ai-architecture]]></category>
            <category><![CDATA[text-to-sql]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[agentic-design-patterns]]></category>
            <dc:creator><![CDATA[Rahul Nimkande]]></dc:creator>
            <pubDate>Fri, 26 Jun 2026 14:14:12 GMT</pubDate>
            <atom:updated>2026-06-26T14:15:01.220Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kEdlyHJj6Vft30L9--tr6Q.png" /></figure><blockquote><strong>The most expensive mistake in agentic development isn’t bad instructions — it’s bad architecture.</strong></blockquote><p>You can spend weeks perfecting your prompts, fine-tuning your examples, and optimizing your queries. But if you choose the wrong architecture pattern from the start, none of it matters. Your agent will struggle, users will lose trust, and you’ll end up rebuilding from scratch.</p><p><strong>Here’s the problem:</strong> Your enterprise data doesn’t live in one place. You have a Semantic Model for certified financial metrics, a Lakehouse with raw sales transactions, a Warehouse for complex operational joins. And this data spans multiple domains — Finance, Sales, HR, Operations, Supply Chain — each with different business logic, naming conventions, and user groups. Do you build one mega-agent that tries to master all of it, or multiple specialists each optimized for their domain and source?</p><p>So before writing a single line of instruction, answer this: Should you create one agent that handles everything, or multiple specialized agents? Connect to one data source or several? When does it make sense to split responsibilities?</p><p>Here’s the challenge: <strong>large-scale enterprise databases rarely fit into neat boxes.</strong> You might have hundreds of tables spanning Finance, HR, Sales, Operations, and Supply Chain. Each domain has its own business logic, naming conventions, and complexity. Asking a single agent to master all of this is like asking one person to be an expert accountant, HR specialist, sales analyst, and supply chain manager simultaneously — technically possible, but rarely effective.</p><p>This is where the <strong>Single Responsibility Principle</strong> becomes critical. In software engineering, this principle states that each component should have one clear responsibility. The same applies to agents. A Finance Agent should excel at finance questions. A Sales Agent should master sales data. When you force one agent to handle multiple domains, its context gets diluted, instructions become bloated, and performance degrades.</p><h3>Fabric Data Agent Design Patterns</h3><p>Suppose, you have a large-scale enterprise database — hundreds of tables spanning across multiple domains. How do you architect Fabric Data Agents solution to handle this complexity: one generalist agent or multiple domain specialists?</p><h3>1. Single Agent &amp; Single data source</h3><p>This is the simplest architecture and your recommended starting point. A single agent connects to one data source (Semantic Model, Lakehouse, or Warehouse) and handles all questions related to that source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*xts43jJ204jEmYF5yD36fA.png" /></figure><h4>Example</h4><p>A Finance Agent connected to a Finance Semantic Model with few tables.</p><h4><strong>When to use?</strong></h4><ul><li><strong>Proof of concept or pilot projects</strong> — Validating the technology before scaling</li><li><strong>Focused business domain</strong> — All questions fall within one area (e.g., Finance only, Sales only)</li><li><strong>Limited table count</strong> — 30 tables in your data source</li><li><strong>Single team ownership </strong>— One business team owns both the data and the questions</li></ul><h4><strong>Advantages</strong></h4><ul><li><strong>Simple to build and maintain</strong> — One configuration, one set of instructions, one testing surface</li><li><strong>Fast iteration — </strong>Changes are straightforward, no coordination needed</li><li><strong>Low latency</strong>— No routing overhead, direct query execution</li><li><strong>Easy debugging</strong>— All context is in one place, failures are easy to trace</li></ul><h4><strong>Limitations</strong></h4><ul><li>Limited Scalability. Struggles with large number of tables.</li><li>Single point of failure.</li></ul><h3><strong>2. Single Agent &amp; Multiple Sources</strong></h3><p>A single agent connected to multiple data sources of same or different types — Lakehouse, Semantic Model, Eventhouse, or Warehouse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*Ek2NgVtGaLx584AGPE7-Ug.png" /></figure><h4>Example</h4><p>An Enterprise Agent connected to 3 sources: Finance Semantic Model, Sales Lakehouse, and HR Warehouse.</p><h4>Why to use?</h4><ul><li>Appears simpler than managing multiple agents</li><li>Avoids orchestration complexity</li><li>“One interface for everything” sounds convenient</li><li>Faster initial setup</li></ul><h4><strong>Limitations</strong></h4><ul><li><strong>Source confusion</strong>— Agent can pick wrong source of data.</li><li><strong>No cross-source joins</strong>— Cannot join tables from multiple sources</li><li>Need to write extra instructions for data sources.</li></ul><h3><strong>3. Multiple Agents &amp; Single Source</strong></h3><p>Multiple domain-specific agents (Finance, Sales, HR, Operations) all connected to one shared data source — Semantic Model, Lakehouse, Warehouse, or Eventhouse. An orchestrator routes questions to the right Agent based on domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*kJ_l821S4cb0FLHuQQ5jHQ.png" /></figure><h4>Example</h4><p>A company with 100+ tables across 6 domains (Finance, Sales, HR, Operations, Marketing, Customer Service) all in one Warehouse. Migrated from 1 mega-agent to 4 specialist agents with 20–30 tables each. Orchestrator routes questions to correct specialist, achieving production-grade performance.</p><h4><strong>When to Use?</strong></h4><ul><li><strong>50–150+</strong> tables spanning multiple business domains</li><li>Clear domain boundaries (e.g. Finance, Sales, HR, Operations)</li><li>All data lives in a single data source.</li></ul><h4><strong>Advantages</strong></h4><ul><li>Higher performance per domain — focused context, fewer tables</li><li>Better instruction quality — domain rules don’t compete</li><li>Independent iteration — update Finance without touching Sales</li><li>Clear ownership — teams can own their specialist agents.</li><li>Scalability — add domains by adding agents.</li><li>Fault isolation — one broken agent doesn’t break others</li></ul><h4><strong>Limitations</strong></h4><ul><li>Orchestration complexity — routing layer adds moving parts</li><li>Latency overhead — orchestrator adds 2–3 seconds</li><li>Multi-agent testing — test routing and agent performance</li><li>Cross-domain questions — require explicit handling</li></ul><h3>4. <strong>Multiple Agents &amp; Multiple Sources</strong></h3><p>Multiple domain-specific agents, each connected to its optimal data source type — Finance to Semantic Model, Sales to Lakehouse, Operations to Warehouse, Monitoring to Eventhouse. Enterprise-grade architecture for maximum performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*m2MGD6BHu0Z3xJjwOIu3IA.png" /></figure><h4>Example</h4><p>A global enterprise with Finance Agent (Semantic Model, 20 tables), Sales Agent (Lakehouse, 30 tables), and Operations Agent (Warehouse, 25tables). Orchestrator handles cross-domain questions by calling multiple agents in parallel and synthesizing responses.</p><h4><strong>When to Use?</strong></h4><ul><li>Multiple business domains with distinct data needs</li><li>Diverse data sources — optimal source type per domain</li><li>Enterprise scale — hundreds/thousands of users</li><li>Multiple teams working on their specific agent.</li></ul><h4><strong>Advantages</strong></h4><ul><li>Highest performance — right domain + right source type</li><li>Best query efficiency — queries on optimal source</li><li>Future-proof — add domains/sources independently</li><li>Domain ownership — teams own agent and data source</li><li>Flexible optimization — update one without affecting others</li></ul><h4><strong>Limitations</strong></h4><ul><li>Highest architecture complexity — orchestration + synthesis.</li><li>Larger testing surface — routing, agents, cross-agent synthesis</li><li>Higher cost — orchestrator + multiple agents + sources</li><li>Cross-source joins not supported by design.</li><li>Operational overhead — more components to monitor</li></ul><h3><strong>Pattern Comparison: Choose Your Architecture</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tK8Gl2ptwW1taqVqaR8D0g.png" /></figure><p>Architecture isn’t glamorous, but it’s where most agentic projects succeed or fail. The patterns I’ve shared here come from real deployments — the mistakes that cost us weeks, the pivots that saved projects, and the architectures that actually scaled to production. Your data isn’t getting simpler, and your users won’t lower their expectations. Choose your architecture deliberately, not by default.</p><p>Which architecture pattern are you using (or planning to use) for your data agents? Have you hit any scaling challenges that forced you to rethink your approach?</p><p><em>Drop your experience in the comments.</em></p><p><em>Thanks for reading! 🚀</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e4ceea06908" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Fabric Data Agents: The Complete Implementation Guide | Part 4 — Production Deployment…]]></title>
            <link>https://medium.com/@vermagourav2001/microsoft-fabric-data-agents-the-complete-implementation-guide-part-4-production-deployment-69e6a36fe112?source=rss-fb6fe67060f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/69e6a36fe112</guid>
            <category><![CDATA[fabric-data-agent]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[text-to-sql]]></category>
            <category><![CDATA[deployment]]></category>
            <dc:creator><![CDATA[Rahul Nimkande]]></dc:creator>
            <pubDate>Wed, 13 May 2026 17:05:14 GMT</pubDate>
            <atom:updated>2026-05-14T08:11:18.905Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Microsoft Fabric Data Agents: The Complete Implementation Guide | Part 4 — Production Deployment Methods</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LsuWkA53kIumZsNjyhxcXA.png" /></figure><p>In the previous parts, we built a Fabric Data Agent, chose the right data source, and set up evaluation to ensure accuracy. Now comes the practical question: <strong>how do you actually deploy this to your users?</strong></p><p>There are multiple deployment methods, each suited to different integration needs, and levels of control. There’s no single right answer.</p><h3>Deployment Methods</h3><p>Microsoft provides multiple ways to deploy a Fabric Data Agent to end users — each optimized for a different audience, level of control, and integration depth.</p><h3><strong>Method 1: M365 Copilot (Deployed from Fabric)</strong></h3><p>Publish your agent directly from Fabric to <strong>M365 Copilot</strong>, making it available as a plugin across the Microsoft 365 experience. No additional infrastructure. No external services. Your agent is built and managed in Fabric, and users access it through M365 Copilot — the tool they already use every day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*Q7wQGJ5tgdEnPXa34y9aGA.png" /></figure><h4><strong>When to use?</strong></h4><ul><li>Your users already work in Microsoft 365 (Word, Excel, Teams, Outlook)</li><li>You want the fastest possible method from dev to production.</li><li>Internal use cases with existing Fabric governance.</li><li>You want zero-friction deployment without building a separate integration.</li></ul><h3><strong>Method 2: Azure AI Foundry Integration</strong></h3><p>Register your Fabric Data Agent as a <strong>tool</strong> within an Azure AI Foundry agent. Foundry orchestrates routing, multi-agent coordination, and combines your data agent with other capabilities (web search, document retrieval, code execution).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*WIyM_v9kgP0C3ze149EV2Q.png" /></figure><h4><strong>When to use?</strong></h4><ul><li>You need multi-agent workflows that span multiple tools</li><li>You want to combine data queries with non-data capabilities (web search, document retrieval)</li><li>Your platform team manages AI agents centrally</li><li>You want enterprise-grade tracing, evaluation, and monitoring from a single control plane</li></ul><p><strong>Example —</strong> “Compare Q4 revenue with industry benchmarks” → Foundry routes to Fabric Agent for revenue, Web Search for benchmarks, and synthesizes one response.</p><p><strong>Limitations: </strong>Additional Azure infrastructure, 1–3s added latency, extra cost, more moving parts.</p><h3><strong>Method 3: Copilot Studio</strong></h3><p>Embed your agent into Teams or any channel via Copilot Studio. Users interact through natural conversation where they already work 8+ hours/day. Supports adaptive cards, guided flows, proactive alerts, and human escalation — all with M365 SSO and RLS applied automatically.</p><p>Copilot Studio also supports multi-agent orchestration (route to different agents based on topic), automated workflows (trigger Power Automate flows from agent responses), topic-based routing, and knowledge source integration — giving you orchestration capabilities without needing Azure AI Foundry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*jhvB18otiBL4CQuLSUnjbg.png" /></figure><h4><strong>When to use?</strong></h4><p>Broad organizational rollout to non-technical users (executives, business managers, field teams)</p><ul><li>You need rich conversational UX (adaptive cards, buttons, approval flows)</li><li>You want workflow automation and multi-agent routing within the Microsoft low-code ecosystem</li><li>You’re rolling out to hundreds or thousands of users simultaneously</li></ul><p><strong>Limitations:</strong> Additional latency (multiple hops), additional licensing cost, conversation-only UX.</p><h3><strong>Method 4: Custom Applications (REST API)</strong></h3><p>Call your agent programmatically via SDK or REST API. Embed into any application — web portals, mobile apps, automated workflows, Slack bots, or internal tools. You own auth, caching, rate limiting, and error handling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*ocJIri_wlvmtehed6HQRoA.png" /></figure><p><strong>When to use?</strong></p><ul><li>You need full control over user experience and branding</li><li>External users or customers need access (not just internal employees)</li><li>Automated pipelines need data answers without human interaction</li><li>You’re embedding agent capabilities into an existing product</li><li>You’re building for multiple platforms (web + mobile + bot)</li></ul><p><strong>Limitations:</strong> Highest dev effort. You own everything — auth, errors, scaling, session management.</p><h3>Effort Metrics</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IUzUSyzEFNwP_F_iPeiYcg.png" /><figcaption>Effort metrics table for deployment methods</figcaption></figure><h3><strong>Production Readiness Checklist</strong></h3><p>Regardless of method, ensure these are in place before going live:</p><ul><li><strong>Data-level security —</strong> Users only see data they’re authorized to access</li><li><strong>Authentication: </strong>Required authentication like OAuth2 or Entra ID.</li><li><strong>Telemetry —</strong> Every question + answer logged with user ID and timestamp.</li><li><strong>Monitoring — </strong>Track latency, accuracy, error rate, and user satisfaction</li><li><strong>Data freshness —</strong> User should know when data was last refreshed</li><li><strong>Feedback loop —</strong> “Was this helpful?” mechanism feeding back into evaluation</li><li><strong>Capacity planning:</strong> Monitor Fabric CU consumption; scale before hitting limits</li></ul><p><em>Which deployment method are you starting with? Share your experience below.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69e6a36fe112" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Fabric Data Agents: The Complete Implementation Guide | Part 3 — Evaluation & Quality…]]></title>
            <link>https://medium.com/@vermagourav2001/microsoft-fabric-data-agents-the-complete-implementation-guide-part-3-evaluation-quality-405abcd6c0f1?source=rss-fb6fe67060f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/405abcd6c0f1</guid>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agent-evaluation]]></category>
            <category><![CDATA[text-to-sql]]></category>
            <category><![CDATA[fabric-data-agent]]></category>
            <dc:creator><![CDATA[Rahul Nimkande]]></dc:creator>
            <pubDate>Tue, 12 May 2026 09:26:30 GMT</pubDate>
            <atom:updated>2026-05-13T15:34:12.417Z</atom:updated>
            <content:encoded><![CDATA[<h3>Microsoft Fabric Data Agents: The Complete Implementation Guide | Part 3 — Evaluation &amp; Quality Assurance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XaVnIaOn_TMlzxrJ9bYJow.png" /></figure><h4>The problem</h4><p>LLMs are probabilistic. They <em>sound</em> confident even when wrong. They can hallucinate table names, mix up dates, and apply wrong filters — all with perfect confidence.</p><h4>The solution</h4><p>Stop guessing. Test systematically.</p><h3>The Three-Step Evaluation Process</h3><p>Testing your agent properly comes down to three steps:</p><ul><li>Build a test set with questions and verified answers</li><li>Run your agent against those questions</li><li>Analyze the results and fix issues</li></ul><p>Let’s walk through each step with actual code.</p><h3>Step 1: Build Your Test Set</h3><p>You need a CSV file with questions and correct answers.</p><pre>question,expected_answer<br>How many total orders in 2024?,5432<br>What&#39;s the average order value?,2847.50<br>Which product has highest revenue?,Widget Pro<br>What&#39;s revenue growth YoY?,12.5%</pre><p><strong>How to create it?</strong></p><ul><li>List 40–50 real business questions</li><li>Run them manually against your data (or automate it)</li><li>Document the verified correct answer</li><li>Add it to the CSV</li></ul><h4>💡 Pro tip</h4><ul><li>Include hard questions</li><li>Edge cases (nulls, zeros, ambiguous terms)</li><li>Multi-step calculations</li><li>Temporal questions (“Q4 vs last year”)</li><li>Questions that trick other agents</li></ul><h3>Step 2: Run the Evaluation</h3><p>Upload your test set in a Fabric OneLake and create a Fabric Notebook for evaluation.</p><p><strong>Install the SDK</strong></p><pre>%pip install -Uq fabric-data-agent-sdk</pre><p><strong>Load Your Test Set</strong></p><pre>import pandas as pd</pre><pre>eval_dataset_path = &quot;&lt;your csv path&gt;&quot;<br>eval_testset = pd.read_csv(eval_dataset_path)<br>eval_testset.columns = [&#39;question&#39;, &#39;expected_answer&#39;]<br>display(eval_testset)</pre><p>This loads your CSV and shows you what you’re testing.</p><p><strong>Run Evaluation Against Your Agent</strong></p><pre>from fabric.dataagent.evaluation import evaluate_data_agent</pre><pre>data_agent_name = &quot;Your_Data_Agent_Name&quot;<br>table_name = &quot;evaluation_results&quot;<br>data_agent_stage = &quot;sandbox&quot; # or &quot;prod&quot; for production agent</pre><pre>evaluation_id = evaluate_data_agent(<br>  eval_testset,<br>  data_agent_name,<br>  workspace_name=&quot;Your_Workspace_Name&quot;,<br>  table_name=table_name,<br>  data_agent_stage=data_agent_stage<br>)</pre><pre>print(f&quot;Evaluation started with ID: {evaluation_id}&quot;)</pre><p><strong>What this does?</strong></p><ul><li>Takes each question from your test set</li><li>Asks your agent</li><li>Compares the answer to ground truth (Uses LLM as a judge)</li><li>Scores accuracy</li><li>Returns evaluation ID</li></ul><h3>Step 3: Review the Results</h3><p>Get summary and detailed results.</p><p><strong>Get Summary Statistics</strong></p><pre>from fabric.dataagent.evaluation import get_evaluation_summary<br>eval_summary_df = get_evaluation_summary(table_name)<br>display(eval_summary_df)</pre><p>This shows you —</p><ul><li>Total questions tested</li><li>Number correct</li><li>Overall accuracy %</li></ul><p><strong>Get Detailed Results</strong></p><pre>from fabric.dataagent.evaluation import get_evaluation_details<br><br>eval_details = get_evaluation_details(<br>  evaluation_id,<br>  table_name,<br>  get_all_rows=True,<br>  verbose=True<br>)<br>display(eval_details)</pre><p>This shows you <strong>every question</strong>, the agent’s answer, and whether it was right or wrong.</p><p><strong>Look for patterns</strong></p><ul><li>Same types of questions failing? (e.g: all aggregation questions fail)</li><li>Specific domains weak? (e.g: all finance questions fail)</li><li>Hallucinations? (Agent makes up field names)</li><li>Off-by-one errors? (Off by a digit or percentage)</li></ul><h3>Save Results for Tracking</h3><p>Store evaluation results in Delta tables for historical tracking.</p><pre>eval_summary_spark_df = spark.createDataFrame(eval_summary_df)<br>eval_details_spark_df = spark.createDataFrame(eval_details)</pre><pre># Save summary<br>eval_summary_spark_df.write.mode(&quot;overwrite&quot;).format(&quot;delta&quot;).saveAsTable(&quot;evaluation_summary&quot;)</pre><pre># Save detailed results<br>eval_details_spark_df.write.mode(&quot;overwrite&quot;).format(&quot;delta&quot;).saveAsTable(&quot;evaluation_details&quot;)<br>print(&quot;Results saved to Delta tables&quot;)</pre><p><strong>Why save it?</strong></p><ul><li>Track accuracy over time</li><li>Compare before/after prompt changes</li><li>Build historical reports</li><li>Detect if agent gets worse</li></ul><h3>The Evaluation Checklist!</h3><p>Before you say your agent is “<strong>ready</strong>”</p><ul><li>✅ Test set: 40–50 questions minimum</li><li>✅ Coverage: Simple + medium + complex questions + all domain</li><li>✅ Accuracy: At least 90% correct</li><li>✅ No critical failures: No hallucinations or major calculation errors</li><li>✅ Documented: Know why each failure happened</li><li>✅ Edge cases: Tested nulls, zeros, ambiguous terms</li></ul><p>⏭ <strong>Next in Series (Part 4): </strong>Multi — Fabric Data Agents Orchestration — why one agent will fail in a large production grade application and how domain specific agents can perform better.</p><p><em>How are you evaluating your AI agents? What challenges have you faced? Share in the comments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=405abcd6c0f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Fabric Data Agents: The Complete Implementation Guide | Part 2 — Data Sources: Lakehouse…]]></title>
            <link>https://medium.com/@vermagourav2001/microsoft-fabric-data-agents-the-complete-implementation-guide-part-2-data-sources-lakehouse-27c651b95e9f?source=rss-fb6fe67060f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/27c651b95e9f</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[text-to-sql]]></category>
            <category><![CDATA[data-agents]]></category>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <dc:creator><![CDATA[Rahul Nimkande]]></dc:creator>
            <pubDate>Mon, 20 Apr 2026 19:48:10 GMT</pubDate>
            <atom:updated>2026-06-28T11:21:23.973Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Microsoft Fabric Data Agents: The Complete Implementation Guide | Part 2 — Data Sources: Lakehouse vs. Semantic Model</strong></h3><p>In <a href="https://medium.com/@vermagourav2001/microsoft-fabric-data-agents-the-complete-implementation-guide-part-1-introduction-738972f2f797">Part 1</a>, we covered four data source types: Lakehouse, Warehouse, Semantic Model, and Eventhouse. What we didn’t cover is that choosing the wrong one can affect your results significantly.</p><p>Same agent. Same questions. Same instructions. Different data source. Possibility of different results.</p><p>This article breaks down the two most common sources, Lakehouse and Semantic Model in detail, then compares them head-to-head so you can make the right call before building anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*phSdyfbvWI_S0OhMq7PLig.png" /></figure><h3><strong>Understanding Lakehouse as a Data Source</strong></h3><p>A Lakehouse stores data as <strong>Delta tables</strong> in OneLake. When a Fabric Data Agent connects to a Lakehouse, it generates <strong>SQL</strong> queries against those tables.</p><p><strong>What the agent sees</strong></p><ul><li>Raw tables with all columns and rows</li><li>Agent Instructions (your written rules and logic)</li><li>Data source description and instructions.</li><li>SQL examples (provided by you)</li></ul><p><strong>How the agent works with it?</strong></p><ul><li>Reads table schemas (column names, data types)</li><li>Generates SQL based on the user’s question and your instructions</li><li>Executes the query and then processes the results in the required output format.</li></ul><h3><strong>Understanding Semantic Model as a Data Source</strong></h3><p>A Semantic Model (Power BI dataset) is a curated analytical layer that sits on top of raw data. When an agent connects to a Semantic Model, it generates <strong>DAX</strong> queries.</p><p><strong>What the agent sees?</strong></p><ul><li>Tables Schema and metadata.</li><li>Defined relationships between tables</li><li>Prep Data AI Instructions (Similar to Data Source Instructions)</li><li><strong>Verified Examples</strong> in Semantic Model</li><li><strong>DAX measures — </strong>Pre-defined calculations like <em>Total Revenue, Gross Margin %</em></li><li>Measure descriptions (if you’ve written them)</li></ul><p><strong>How the agent works with it?</strong></p><ul><li>Reads the model metadata: tables, columns, measures, relationships, table and field descriptions, examples and instructions.</li><li>Generates DAX query according to the user input and data read.</li><li>Executes the query and then processes the results in the required output format.</li></ul><h4><strong>What makes this better?</strong></h4><ul><li>Relationships can be defined. No hallucinated joins.</li><li>Descriptions can be added to tables, columns, and measures. Agents read these and use them for reasoning.</li><li>DAX measures embed business logic. The agent doesn’t have to guess what “Total Revenue”</li></ul><h4><strong>Drawbacks</strong></h4><ul><li>Required OneLake connection.</li><li>Agent processing time may be higher due to the complexity of DAX and the Semantic Model layer.</li><li>Not suitable for questions that require raw transaction-level data or real-time freshness.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u9RPgbrs9flO63KIKihpgQ.png" /></figure><h3><strong>Real-World Benchmarks: Case Study</strong></h3><p>We didn’t just theorize — we tested this at scale.</p><p><strong>Setup:</strong> 40+ large tables with complex relationship scenarios across multiple business domains. Same questions, same agent instructions, tested on both Lakehouse and Semantic Model.</p><p>Here’s what we found:</p><h3><strong>Latency</strong></h3><ul><li><strong>Lakehouse Agent —</strong> ~18s average response time</li><li><strong>Semantic Model Agent — </strong>~25s average response time</li><li>Lakehouse was — <strong>~</strong>28% faster</li></ul><p>Why? SQL queries against flat Delta tables are simpler to execute. DAX queries involve measure evaluation, relationship traversal, and the Semantic Model engine layer — all of which add overhead.</p><blockquote><em>If speed is your top priority and questions are straightforward, Lakehouse wins on latency.</em></blockquote><h3><strong>Compute Cost CU(s) — Fabric compute units</strong></h3><ul><li><strong>Lakehouse Agent</strong> 6,000–7,500 CU(s) consumed</li><li><strong>Semantic Model Agent </strong>5,000–6,000 CU(s) consumed</li><li><strong>Result:</strong> Semantic Model was <strong>~25% more efficient</strong> on compute</li></ul><p>Why? Fabric Data Agent compute depends entirely on the number of <strong>input and output tokens consumed per query</strong>. In our case, the Semantic Model agent consumed fewer tokens because pre-defined measures and relationships reduced the amount of schema context and query complexity the agent needed to process. The Lakehouse agent might require more tokens to reason over raw table schemas, generate complex SQL joins, and interpret business logic from instructions — resulting in higher CU consumption.</p><h3><strong>Accuracy on Complex Questions</strong></h3><p>This is where the gap became undeniable.</p><p>For <strong>complex questions involving aggregations, multi-table joins, and business logic</strong></p><p>▸ L<strong>akehouse Agent:</strong> Inconsistent results — answers varied depending on how the agent interpreted joins and which columns it selected. Accuracy dropped significantly as question complexity increased.</p><p>▸ <strong>Semantic Model Agent: </strong>Consistently accurate — pre-defined relationships and certified measures meant the agent didn’t have to guess. It followed the model’s logic every time.</p><p><strong>Our takeaway:</strong> Lakehouse is faster, but Semantic Model is capable of handling complex queries including multi-table joins and lookups. For production agents answering business-critical questions with complex joins and aggregations, <strong>Semantic Model is the stronger choice. </strong>For simpler, straightforward queries where speed matters most, <strong>Lakehouse has the edge.</strong></p><p>Fabric Data Agents also support Warehouse (T-SQL) and Eventhouse (KQL) as data sources. We did not explore these in depth for this series — our focus was on Lakehouse and Semantic Model, which cover the majority of enterprise use cases.</p><h3>Tip for better accuracy</h3><p><strong>Incorrect way</strong> — Cryptic column names: <em>TRX_AMT_LC, CUST_STAT_CD, ORD_TYP_ID</em></p><p><strong>Correct way </strong>— Descriptive column names: <em>Transaction_Amount, Customer_Status, Order_Type</em></p><blockquote>Agents struggle with abbreviations. If humans need a data dictionary, so do AI models</blockquote><p>In Semantic Models, you can add descriptions to both tables and individual fields directly in the model. Fabric Data Agents read these descriptions and use them for reasoning — giving them context that raw column names alone cannot provide. This is one of the key advantages of using a Semantic Model as your data source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*B9w5xPP0YTr_dU5C3MK4Ig.png" /><figcaption>For the field name <strong>TRX_AMT_LC</strong>, I have added the description <strong>“Transaction Amount”</strong> for the Data Agent to read.</figcaption></figure><h3><strong>What’s Next?</strong></h3><p>Choosing the right data source is only half the battle. Next, you need to measure and improve what your agent actually returns.</p><p><strong>Part 3 — Evaluation of Fabric Data Agents</strong> — Building a Testing Framework to Measure Accuracy, Classify Failures, and Drive Continuous Improvement.</p><p>Keep reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27c651b95e9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Fabric Data Agents: The Complete Implementation Guide | Part 1 — Introduction]]></title>
            <link>https://medium.com/@vermagourav2001/microsoft-fabric-data-agents-the-complete-implementation-guide-part-1-introduction-738972f2f797?source=rss-fb6fe67060f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/738972f2f797</guid>
            <category><![CDATA[text-to-sql]]></category>
            <category><![CDATA[fabric-data-agent]]></category>
            <category><![CDATA[text-to-sql-generative-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <dc:creator><![CDATA[Rahul Nimkande]]></dc:creator>
            <pubDate>Tue, 14 Apr 2026 19:50:23 GMT</pubDate>
            <atom:updated>2026-06-28T11:14:36.738Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*syz47jrNjThUaiovIITFZA.png" /></figure><blockquote><strong>“Talk to Your Data” Was a Promise. Fabric Data Agents Actually Deliver It.</strong></blockquote><p><strong>Text-to-SQL</strong>, the idea of asking questions in plain English and getting answers from your data isn’t new. You’ve probably tried it — LangChain, custom GPT wrappers, weekend hackathon prototypes. And you’ve probably hit the same walls:</p><ul><li>The LLM doesn’t know your schema well enough</li><li>It hallucinates table names or invents joins</li><li>It works in demos but breaks in production</li><li>You spend more time prompt-engineering than actually building</li></ul><blockquote><strong>The concept is solved. The production-grade, enterprise-ready implementation is where most teams get stuck.</strong></blockquote><p>Microsoft Fabric Data Agents change this. They’re not another “plug your LLM into a database” experiment. They’re a <strong>managed, production-grade service</strong> that translates natural language into SQL, DAX, <em>and</em> KQL depending on where your data lives. One agent, multiple query languages, zero pipeline assembly required.</p><h3><strong>What Are Microsoft Fabric Data Agents?</strong></h3><p>A Fabric Data Agent is a <strong>managed Text-to-SQL agent</strong> inside Microsoft Fabric. It takes a natural language question, generates the appropriate query (SQL, DAX, or KQL), executes it against your data, and returns the result.</p><p>If you’ve built Text-to-SQL pipelines before — LLM, schema introspection, prompt templates, query validation, execution layer — this is that entire stack, <strong>fully managed</strong>. You don’t build it. You configure it.</p><p><strong>For developers:</strong> no LLM hosting, no embedding pipelines, no vector stores, no prompt engineering. Connect your data, select tables, write business-context instructions, and the agent is ready. Consume it via Fabric UI, REST API, or SDK.</p><h3><strong>How It Works? Not Your Problem to Build!</strong></h3><p>Microsoft manages the LLM, you don’t choose it, fine-tune it, or host it. The entire intelligence layer is handled by the service.</p><p><strong>Your job is configuration:</strong></p><ul><li>Pick data sources</li><li>Select tables and columns</li><li>Write business-context instructions and data source instructions.</li></ul><p>Three design decisions baked in:</p><ul><li><strong>Read-only : </strong>Agents query data, never modify it</li><li><strong>Schema-aware: </strong>Pre-configured with your data model and relationships</li><li><strong>Governance-first: </strong>RLS, CLS, and workspace permissions enforced automatically</li></ul><h3><strong>What You Can Connect?</strong></h3><p>Fabric data agent supports the following <strong>data sources</strong>. The agent picks the right query language automatically:</p><ul><li><strong>Lakehouse</strong> → SQL</li><li><strong>Warehouse</strong> → T-SQL</li><li><strong>Semantic Model</strong> → DAX</li><li><strong>Eventhouse</strong> → KQL</li></ul><h3><strong>Getting Started: Creating Your First Agent</strong></h3><p><strong>Prerequisites</strong></p><ul><li>Fabric capacity <strong>F2 or higher</strong></li><li>Fabric Data Agent tenant setting <strong>enabled</strong></li><li>Copilot tenant switch <strong>enabled</strong></li></ul><h4><strong>1. Create Fabric Data Agent</strong></h4><p>Fabric workspace → + New Item → “Fabric data agent” → Name it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BgOTceLHczcYPyuIjQaoTQ.png" /></figure><h4>2. <strong>Add Data Sources</strong></h4><p>Open Fabric Data Agent → Add Data → Browse OneLake catalog, select up to 5 sources. The data source will be visible in the left panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sscbMlIWToUDiy9BwRKgAg.png" /></figure><h4>3. <strong>Select Tables</strong></h4><p>Choose relevant tables/views only</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4jGLmygqMwKc1lXhvuVj6Q.png" /></figure><h4>4. <strong>Add Agent Instructions</strong></h4><p>Define objective, execution process, output structure, business term definitions, guardrails and restrictions and examples.</p><p><em>Note: Charater Limit for Agent Instructions is 15000</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*byqe87q0IkHVbrBsDVk8BQ.png" /></figure><h4>5. <strong>Add Data Source Instructions</strong></h4><p>Per-source context that helps the agent understand each table’s purpose, column meanings, and relationships</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nLiLcVcMvxCjHWr4qFUi0g.png" /></figure><h4>6. <strong>Add SQL Examples</strong></h4><p>Provide sample queries that demonstrate correct patterns for common question types. You can add examples manually or import in bulk from a json file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hwuzA94YRMdwzK6R6Msv0w.png" /></figure><h4>7. <strong>Test your agent</strong></h4><p>Fabric provides a built-in chat. Start with simple questions, then progress to complex queries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zKvtPYrBiXpJQqMShzmzDA.png" /></figure><p>This is a very simple demonstration of Fabric data agents. Its capable of handling very complex scenarios too, which will be covered in the other parts of Fabric Data Agent Implementation series.</p><h3><strong>Current Limitations</strong></h3><ul><li><strong>Read-only — </strong>No create/update/delete</li><li><strong>Structured data only — </strong>No PDFs, docs, or unstructured content</li><li><strong>English only</strong></li><li><strong>Fixed LLM — </strong>Can’t swap the model</li><li><strong>5 data sources max</strong> per agent</li></ul><h3><strong>What’s Next?</strong></h3><p>Creating an agent is easy. Making it <strong>accurate and production-ready</strong> is the real work. I will be covering full production ready implementation in upcoming parts of this series.</p><p><strong>Part 2:</strong> <strong>Lakehouse vs. Semantic Model </strong>— data source choice affects accuracy, latency, compute and maintainability</p><blockquote><strong>About This Series — </strong><em>Microsoft Fabric Data Agents: The Complete Implementation Guide</em> — a multi-part series on building enterprise-grade, production-ready AI agents, from foundations to multi-agent orchestration.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=738972f2f797" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prompt Engineering for Text Intelligence: Extracting What Matters Most]]></title>
            <link>https://medium.com/@vermagourav2001/prompt-engineering-for-text-intelligence-extracting-what-matters-most-23a0b73d0b4b?source=rss-fb6fe67060f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/23a0b73d0b4b</guid>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Rahul Nimkande]]></dc:creator>
            <pubDate>Tue, 07 Oct 2025 09:23:26 GMT</pubDate>
            <atom:updated>2025-10-07T10:29:43.468Z</atom:updated>
            <content:encoded><![CDATA[<h3>Prompt Engineering With Text Intelligence: Extracting What Matters Most</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XlOXEBIvhjjcS7JpW2NSnQ.png" /></figure><p>Prompt engineering is often seen as a way to get better responses from language models — but what if we could make it smarter by first understanding the data we’re prompting on?</p><p>In a recent project in the <strong>logistics domain</strong>, I worked on extracting <strong>key operational details</strong> from customer remarks. These remarks contained valuable information about <strong>transport modes</strong>, <strong>cargo types</strong>, <strong>ports of load</strong>, and more. Instead of jumping straight into prompt writing, we took a data-first approach — analyzing the text, identifying patterns, and using those insights to craft more effective prompts.</p><p>This blog walks you through how we combined <strong>exploratory data analysis (EDA)</strong> with <strong>prompt engineering</strong> to build a system that extracts what truly matters.</p><h3>The Problem</h3><p>Customer remarks in logistics are often unstructured and vary significantly based on geography, language, and operational context. For example:</p><ul><li>A customer in Europe might say: <em>“Shipment via rail delayed at Rotterdam.”</em></li><li>Someone in Latin America could mention: <em>“Carga marítima retrasada en el puerto de Santos.”</em></li></ul><p>These remarks contain <strong>critical logistics details</strong>, but they’re expressed in <strong>different formats, languages, and vocabularies</strong>. Our goal was to build a system that could reliably extract these details regardless of phrasing, origin, or language.</p><h3>Step 1: Understanding the Text</h3><p>Before diving into prompt design, we began by thoroughly analyzing the raw customer remarks. These remarks were unstructured and came from a wide range of geographies and languages, making the task both challenging and insightful.</p><h4>Creating a Structured Dataset</h4><p>To bring order to the chaos, we first created a <strong>structured dataset</strong> with the inputs we had. This involved:</p><ul><li>Organizing each remark with relevant metadata such as:</li><li><strong>Customer region</strong></li><li><strong>Detected language</strong></li><li><strong>Timestamp</strong></li><li><strong>Transport mode</strong></li><li><strong>Cargo type</strong></li><li><strong>Port or terminal mentioned</strong></li></ul><p>This structure helped us filter, group, and analyze remarks more effectively during later stages.</p><h4>Text Processing &amp; Privacy</h4><p>Once structured, we cleaned and prepared the text for analysis:</p><ul><li><strong>Removed unwanted details</strong> such as HTML tags, special characters, and irrelevant metadata.</li><li><strong>Masked sensitive customer information</strong> like phone numbers, email addresses, and company names to ensure privacy and compliance.</li><li><strong>Normalized casing</strong> and removed stopwords to simplify downstream analysis.</li></ul><p>Since the remarks came from customers across different countries, we performed <strong>language detection</strong> to understand the linguistic diversity of the dataset.</p><ul><li>Detected languages using NLP libraries.</li><li>Calculated the <strong>percentage of remarks per language and region</strong>.</li></ul><h3>Step 2: Extracting Key Details</h3><p>Once the remarks were cleaned, structured, and language-normalized, the next challenge was to <strong>extract meaningful logistics-specific information</strong>. These included:</p><ul><li><strong>Transport modes</strong> (e.g., air freight, sea cargo, rail shipment)</li><li><strong>Cargo types</strong> (e.g., hazardous goods, electronics, bulk grain)</li><li><strong>Ports and terminals</strong> (e.g., Port of Singapore, Nhava Sheva, Rotterdam dock)</li></ul><h4>🛠 Techniques Used:</h4><p>To extract these details, we used a combination of:</p><ul><li><strong>Keyword-based filtering</strong>: Using curated lists of logistics terms.</li><li><strong>Contextual phrase extraction</strong>: Capturing bigrams and trigrams around keywords to understand how they were used.</li><li><strong>Word cloud generation of phrases</strong>: Visualized the most common key phrases to quickly identify dominant patterns and recurring issues.</li><li><strong>Custom Python scripts</strong>: Designed to scan remarks and extract phrases like:</li></ul><p>These phrases were then tagged and stored in the structured dataset for further analysis.</p><blockquote><em>Example:</em><br> Around the keyword “port,” we found phrases like:</blockquote><blockquote>“Port of Singapore congestion”</blockquote><blockquote>“arrival at 09/11/2024 2:00PM”</blockquote><blockquote>“departed from Nhava Sheva terminal”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Dcycdtw6MGGHexl9MKWtsA.png" /></figure><h3>Step 3: Quantifying the Insights</h3><p>With the extracted phrases in hand, we moved on to <strong>quantifying their presence and relevance</strong> across the dataset.</p><h4>What We Did:</h4><ul><li>Counted occurrences of each phrase and calculated percentage presence across all remarks.</li><li>Grouped phrases by category (transport mode, cargo type, location).</li><li>Derived insights showing phrases, count and percentage for business team.</li></ul><h3>Step 4: Designing Smarter Prompts</h3><p>Armed with these insights, we began crafting prompts that were <strong>data-driven and domain-aware</strong>.</p><h4>Why Prompt Design Matters</h4><p>In a diverse dataset with multilingual, multi-regional remarks, the way you structure your prompt can make or break the model’s performance. A generic prompt might miss subtle logistics nuances, while a data-informed prompt can guide the model to focus on what truly matters.</p><h4>Prompt Strategy:</h4><ul><li>Included <strong>frequent phrases</strong> as examples to guide the LLM.</li><li>Assigned <strong>confidence scores</strong> based on phrase frequency.</li><li>Structured prompts to extract similar patterns from new remarks.</li></ul><h3>Step 5: Optimizing for Efficiency</h3><p>To ensure scalability and cost-effectiveness, we optimized the prompt design:</p><ul><li><strong>Reduced token count</strong> gradually while monitoring performance.</li><li><strong>Retained only high-impact examples</strong> to maintain accuracy.</li><li><strong>Evaluated LLM responses</strong> against ground truth to fine-tune prompt structure.</li></ul><blockquote>✅ <em>Result:</em><br> Even with fewer tokens, the model retained high accuracy — thanks to the structured, example-rich prompt design.</blockquote><h3>Final Thoughts</h3><p>This approach showed how combining <strong>data analysis</strong> with <strong>prompt engineering</strong> can lead to smarter, more reliable AI systems. By understanding the structure and diversity of text data, extracting meaningful patterns, and designing prompts based on real usage, we improved both accuracy and efficiency.</p><p>Whether you’re working with customer feedback, support logs, or any unstructured text — this method helps you extract what truly matters.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23a0b73d0b4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>