Microsoft Community Insights Podcast
Welcome to the Microsoft Community Insights Podcast, where we explore the world of Microsoft Technologies. Interview experts in the field to share insights, stories, and experiences in the cloud.
if you would like to watch the video version you can watch it on YouTube below
https://youtube.com/playlist?list=PLHohm6w4Gzi6KH8FqhIaUN-dbqAPT2wCX&si=BFaJa4LuAsPa2bfH
Hope you enjoy it
Microsoft Community Insights Podcast
Episode 52 — GraphRAG in Action using Microsoft Agent Framework with Christian Glessner
Use Left/Right to seek, Home/End to jump to start or end. Hold shift to jump forward or backward.
You will learn how small knowledge graph, implement a GraphRAG workflow, and connect it to an AI agent powered by the Microsoft Agent Framework and Microsoft Foundry. You will learn how the agent traverses a graph database, interprets relationships, and answers queries over connected data.
Welcome to Microsoft Community Insights podcast. We will share insights from community expert expert to stay up to date with Microsoft episode. We will dive into RathRag in Microsoft Agent Framework. And today we have a special guest called Christian. Do you please introduce yourself, please?
SPEAKER_00Yeah, thank you for having me here. So, yeah, my name is Christian Klesner, and yeah, I'm quite passionized about AI and agentic development workflows, like you two, right? That's why we are here. And I'm also now uh for 17 years already a Microsoft MVP, and I saw so many things already with uh with Microsoft. But yeah, but I think the AI stuff is really super exciting and it changed so many things, and yeah, really happy to be part of this big transition.
SPEAKER_02Okay, so before you before we dive into this episode of the theme, so you be you said you've been an MVP for 17 years. Do you want to tell us how you get started?
SPEAKER_00Oh in your I started with SharePoint, uh SharePoint 2003. So with with.NET One one, I think it was.NET One One, and then you know it came to SharePoint 2003, and this is how I started with that. And I actually built some helpers. Uh I don't know, I started something. It's actually it's a long tradition. I do the I love things, you know. I had that blog and communities thing, I love SharePoint, which I yeah, which I started and published a lot of examples and web parts, and so I that's suddenly I came an email. Oh, I'm an MVP, and I say, Whoa, didn't expect it. And yeah, since that I'm in the program, but yeah, recently or many years, I don't do so much SharePoint anymore. It's still a it's still a nice technology, but most of the time you explain the people why they have to collaborate, and it's more like and less a tech topic, it's more like uh uh a change management topic to make people working and sharing knowledge, and after I don't know, five, ten years it gets a little bit monotone somehow, and you want to switch. Then I also did a lot of mixed reality and then virtual reality as a nice technology, but started then to combine that with AI, but recently it's mostly uh AI that's the highest demand, and I also see you can really make really exciting things with uh with AI in a very short time, and so recently I mostly do AI. Okay, yeah.
SPEAKER_02So before you were you like a SharePoint MVP, then you switched it to AI.
SPEAKER_00So what what was between between uh between mixed reality? Oh okay. So it's when we now I transition to uh more into that AI topics, yeah.
SPEAKER_02Uh okay, it's when you're into mixed reality and then you're you're just curious to learn more and it because it involves it's part of AI, so you're trying to keep up to date with mixed reality.
SPEAKER_00Yeah, what I always liked about it, and I I combined the two topics a long time. Yeah, it is I always thought AI is a little bit, you know. I never liked theory, you know, like hey, taking your phone and then hey, theory and talking with the thing, it doesn't feel natural. And what is nice also in in mixed reality or in virtual environments is you can actually give AI a body, you know, it hangs out with you, it has a face, it shows emotion, it feels more natural in just talking with uh with a device. But let's see, you know, mixed reality, virtual reality is currently not uh hype topic, and maybe even the robots and you don't have to talk in virtual reality with them. If you see in Beijing or something, they're they're running, they're dancing, especially in China. You see that a lot, you know. So maybe I think in the future we definitely will talk not just with the mobile phone, we will talk with robots uh in virtual reality, whatever it may be more natural, not just talking with yeah, it's uh it's similar to the Microsoft hologram, so in virtual reality.
SPEAKER_02So that's an example as well.
SPEAKER_00Yeah, I did a lot with with that stuff uh with AI in in uh mixed reality. Yeah, we're still doing that actually. I'm still doing oh really, yeah. Maybe next time. Short before publishing a SDK. I have a uh by the way, I I did before the iLove SharePoint. Now I made a new thing, uh, which started half a year ago. ILove Agents AI. And uh and part of this, I have already a React wrapper for for the uh foundry voice uh live SDK. So that's quite easy to build all kinds of uh voice agents, and I have also variations not published now where you can build agents uh in uh with voice, live voice, uh task in mixed reality in Unity, and they can do more things. They can you can set guide points, they can walk with you somewhere, they can look something, they can spawn objects, they can change the environment. Um so uh I hope I I will find time to publish that. So I'm still doing that stuff, yeah. But maybe we maybe we switch soon to the graph rack, if not it's anything, so maybe yeah, it's mixed reality.
SPEAKER_02It's quite good mixed reality. So okay, so has this episode theme is mixed reality. No, graph rags, apologies. Uh what is graph frag first? The simple question, and why is it used for why is it used for what can you use it for?
SPEAKER_00Yeah, wait, I I switch uh here my uh to my screen. I will uh what you see there because the the basic thing, what I'm seeing, you see a lot of uh I think you can you can see that, right?
SPEAKER_02So yeah, I can see now. I'm just okay.
SPEAKER_00Yeah, so you I build a lot if you're working with customers, you know, there's currently still well that means still there, there's rec or retrieve augmented results, is a very important topic for customers because you know AI has a lot of power genai. But if you talk with chat GPT, whatever, they have only general knowledge, and for sure, this is not the public knowledge. Uh the companies have their private knowledge and they don't want to make that public. So you have to somehow make the AI aware of your own knowledge, and Rug is the way to uh to do this in in companies, but I see you know, it is not just done if you take all data, you know, you just put it into you throw it into the AI, and then you think, oh, something crazy coming out, like you see on that on that screen here. So you still have, especially with RUC, you have the problem. It's the oldest kind of IT problem, it's called uh garbage in, garbage out, or even shit in, shit out, like you see here. Yeah, and the problem is people think you know, they just put all the stuff, they have all that bad data, all that stuff into the AI, and then the AI makes something super magic out of it, and then finally it becomes great. But this uh, like you see here a little bit on the picture where you have uh the image where you have left the bad data, then you have the AI dealing with this, with that shit, and then you see on the on the right side of it, you see, you know, what actually happened is the AI is really good to make not uh true things, sounds very true, you know. And so what happened is you have that shit data, but AI really presented you in a really nice way that it even sounds super convincing, and I think it's even more dangerous because it may be completely wrong answers because you already feed it in bad data. Yeah, you know you know that problem, right?
SPEAKER_02Yeah, so garbage in, garbage out, whatever you put in, you get back out. So you have to clean your data, you have to make sure your data is 100% before you get like good results in AI terms.
SPEAKER_00Yeah, and then there is another thing is you know what you happen then if you do a Rug solution. You have the data and then you chunk them, and then you have small parts, you know. There are also a lot of different chunking strategies, how big, how small, semantic chunking, and a lot of different chunk strategies. But in the end, you have a lot of chunks, and imagine you have millions of documents, and then you've the AI does a search, uh, a vector search, at least understand that thing, and then it gets bum, a lot of chunks, and it's just fragments of all uh of all the data, so it gets a very how to say fragmented view, and it's hard to see the whole, the big picture because it just gets feeded with a lot of fragments. And I call it actually. So we I did that session together with my friend uh Said, who uh is actually working now for Neo4j. And I call this actually you give the AI, if you use that classic rack approach, I always say you give it junk food. Um wait, I have to switch here on the slide. And the idea is so then I come with the idea, I call it the knowledge sandwich. And it's a little bit like the story is you know, kind of a like on a burger or something, you need a bottom bun somehow, which let's say you have the uh uh the nutrition, the the uh the carbs and things like this, and I say, you know, you have to prepare the data. So and I use in many cases if you have really big data, I use a lot of uh Microsoft fabric for this data foundation, and I really prepare the data, and also I did that in my example that I will show later. I really make over many stages prepare the data in a good way, and here I also use actually foundry, I use uh content understanding a lot here for actually making sense of this unstructured and semi-structured data and fabric before I feed it into the graph. So I do a lot of preparations, and then in the end, foundry, you have a lot of things like foundry IQ, and it is more about and even agent frameworks more about presenting the knowledge, but it's agent framework also doesn't have a tool for uh for ingestion or something like this. So I use fabric for that part and more for the visualizing and agentic work on the front. I use foundry and I like as kind of a knowledge layer, I really like to use Neo4j as a craft database. So what so and what the advantage of the craft database? So I have now to switch a little bit to the demo, but I uh I explain it then also uh because yeah, you have to see it somehow. What is the difference?
SPEAKER_02Yeah. Uh where can other people learn more about it? It's like is it for your blogging? So is does it have a lot of different things?
SPEAKER_00Yeah, I have I think I have this contract example in a little lighter version. I have that also on GitHub and linked on my I Love Agent AI blog. Yeah, and um, I'm also happy I work more because I really like uh I think graph is really uh a big thing with AI. It will I it will get much more attention. And I'm working recently quite close with Neo4J, and I also will do for Neo4J a lot of specially for the agent framework and for for fountain integration, yeah, uh, will also write the content there or support Neo4J also to uh yeah to get more into the uh Microsoft ecosystem together with my friends.
SPEAKER_02Yeah, so for those who want to learn more about Graphrag, I would uh I would attach the the his blog or details on the show notes so you can get to if you want details.
SPEAKER_00And there will also be much more uh there is already on the Neo for J they have also a lab site, and there's also how to integrate it with uh with with Foundry and a lot of uh labs, which I will improve to, especially for agent framework. Nice, brilliant.
SPEAKER_02Yeah, it was it's quite good how you can visualize that in some before that you can actually visualize the data. So that's so the bigger the the bigger the data on a query, the larger the visualization, the graph would be, you know.
SPEAKER_00Yeah, so it is it's really a big difference from the quality. If if the I really has it, it's hard to do that later. But the you know, craft is not the craft data, but it's not a new thing. It was always good, and actually writing the cipher career, which if you have a good craft, it's not so hard. Yeah, the problem all people usually have, and this is also where I help a lot, is actually building a craft. This is actually the hardest part because you have all that non-craft data lying there, you know, in in I don't know, terabytes of data, yeah, and it's there is you know it did that's what I tried at the beginning, and this is how I did it actually in my uh simpler blog post. And you use the LLM, does extraction, but not all of that is right, and then you put it into the graph, and then the graph also has wrong data, and then the AI will also present wrong data. But this is not a special problem of craft, this is the general shit-in, shit out thing, and then I started to use fabric, and I make a lot of more data clean up and and different things, and then I could increase the quality massively, but it was really a longer pipe, and it's I think it's a lot underestimated. Yeah, how much you have to care about that ingestion part. This is and AI also helps there because you know, content understanding. I use a lot of content understanding, I'm actually quite happy with it. You know, it has to PDF cracking, this is not so hard, but then you can also have this uh you know custom schemas where you can extract, like you extract the contact clauses, and it isn't content understanding. If you do custom analyzer, you kind of write for everything like a mini prompt uh for for your different fields that it should extract.
SPEAKER_02So would you recommend so you would you recommend someone to go use uh max fabric instead of using graph first because of the data?
SPEAKER_00If you have really big data, and I have situations with uh with customers that you really really big data, then fabric is a good way to do this because you can do experiments with you know with Python. Um and but later on it scales really on many nodes for for bigger parsing. Um I think it depends a little bit. I I like to use it, um what I really always use meanwhile is I think content understanding got quite good. Of course, it does also for large PDFs, the paging and everything. So I would definitely use content understanding as part of the of the ingestion layer for semi and unstructured data. So and fabric depends a little bit on the data. What I didn't like and fabric too much is currently you're so productive with you know with all that agentic tools like uh you know, like GitHub copilot, like uh clawed code and things like this, and it works also with the GitHub copilot plugin, but it's not works not so good as if you just do it plain, and the productivity is a little bit lower if you do this instead of yeah, because the tooling, uh the agentic tooling is better currently without fabric, but Microsoft's really hard working to uh you know to improve that agentic tool. Because nobody wants to write big SQL statements or all that stuff. Uh no.
SPEAKER_02Maybe they probably will put an MCP in Fabric one time. So hopefully.
SPEAKER_00Yeah, they have found we uh they have uh fabric IQ, they have already this that stuff. And I just saw today they also have some new AI tools for data wrangler, and for sure everything is AI, and maybe my my last thing is really, you know, I really like developing, but I also didn't show now the the agent framework code anymore. Because to be honest, you know, I think just writing code yourself is nice, some maybe for a little bit learning, but in reality, if you do if you're really good with agentic tooling, it's much more productive than you write anything yourself. The AI is really good, you just have to teach it, and so I think we are on a way from you know, from developer to an agentic engineer, and I really I think I barely write code, even though I like that a lot. But the productivity with AI is so much.
SPEAKER_02It's the same, like we're like reviewers, we look at we review our code and stuff instead of writing it. So we get the AI to write it, we just look for the our code for like any like if it's good quality, like proofreading and setting a PRs and stuff, good quality in terms of the problem that I see there is it is for somebody, you know.
SPEAKER_00You see, I'm already a long time in that business, even like you know, um to over 20 years and doing stuff like this already. And you know, I started with HTML uh self-html, I don't know, 5-0 or something, you know, just the beginning of JavaScript and HTML, and you know all that technology stack all behind it, and then you become kind of an architect that knows Azure, Microsoft technology, and you have to know all of the things, and and if you do you see if you monitor the AI and they get crazy, they do something. Wow, you think, oh, what the hell did you do there? And why do you just do that like this? It's like a it's somehow like a junior developer with a PhD, very high ability. Yeah, you have no idea, and then it hacks there, and then you say, ah that's what that's what giving instruction is very important to the AI. But if you know if you know all of that thing and you can control it like a team of junior developers, it's really awesome. But if if you if people now start developing with this and they don't have all that background about entra and how all of that things, authentication, security, protocols working, and then they're just starting with AI, this is kind of even dangerous. They produce results, it looks nice, yeah. But behind this is horrible and unsecure and dangerous. So for people really knowing what they're doing and a good architect, it's wow, it's magic, but it's also dangerous for uh if you are not so yeah, because you trust the AI, and it there's a lot of mistakes, bad architectural decisions, bad security decisions.
SPEAKER_02Yeah, so you never ever trust an agent, you have to trust the human behind the agents, that great agent, because we're the one that behind engineer the agent itself.
SPEAKER_00You become more to to a reviewer to writing plans and later uh do the reviews and and guide this, but the really you know, writing the the the single quote lines, this uh I think that so long anymore.
SPEAKER_02Yeah, we will be just governing, so we'll put in the guardrails for the agent evaluation does. Yeah, so yeah, it will be interesting in a few years. Now, next year is gonna be interesting. So so as this episode is coming to an end, uh we just love to find out about more about our guests. So, Kristen, are you going to any other events? Any other like virtual reality uh talking? Are you talking to any about graph rack daily in any events?
SPEAKER_00Uh uh yeah, my next events that I actually doing is uh fly, I think in two weeks to Bangkok to the agent camp there, and directly from there I do inside together, uh the Agent Con in Berlin. So I fly directly from there to the Agent Con Berlin, which I'm actually working to inside, and then uh I think one month later in June, we go to Brazil, so I come a little bit around to the Agent Con uh in Rio.
SPEAKER_02Yeah, so you have to pack for all temperature, you go around the world. It's yeah, it's all fun anyway.
SPEAKER_00So I I think this personal relationships getting with AI, you know, when AI doing more of that logical work, I think actually, what should we do? What should you do? I think that emotional thing or having connections and just hang out and have a drink together. I think it even gets more important in the times of AI because that somehow sets us apart from uh from the AI machines.
SPEAKER_02We need uh human connections, we need the actual not the agent itself. Don't get me wrong, agents is amazing, but we need the actual one-to-one connection than agent because we're behind, we don't want to create an agent at the at the end.
SPEAKER_00So we let the agents do the work and we you know hanging out at the beach and have some drinks, Niklas, huh? That's the plan.
SPEAKER_02Uh yeah, but you still have to look after the agent. You have to do the ground governance at the agents, you have to do the security like behind the scene, like uh like the infrastructure basically. Uh so yeah, so if you want to watch his talk at uh next month for agent camp bankrupt. Go to Bangkok and go to Thailand. It's an amazing place. Kristen said. I've been to there once and it's quite good. You get uh you get there's always food every night, 24 hours. So it's amazing street food as well. So if you like Asian food, it's amazing there as well. It's very cheap as well, so you can do that as well. Yeah, and hope you hope everyone learned a bit about the importance of using crag rag and then when to use it and how to when to use fabric when you have to clean your data more. So thanks a lot, Kristen. Bye. Bye.
Podcasts we love
Check out these other fine podcasts recommended by us, not an algorithm.
The Azure Podcast
Cynthia Kreng, Kendall Roden, Cale Teeter, Evan Basalik, Russell Young and Sujit D'Mello
The Azure Security Podcast
Michael Howard, Sarah Young, Gladys Rodriguez and Mark Simos