Before the introduction of the Azure Foundry Memory feature (which, at the time of writing, is still in preview), I needed to design a memory solution for my clients’ agents. The goal was to allow agents to share memory across scenarios and to provide a global memory containing basic business knowledge. Since multiple agents were working on various use cases for the same business, a shared memory…
Because there is currently no .NET (dotnet) example on how to use the Google Vertex AI Agent Engine agent in a project, I decided to write one as there are misleading parts without any documentation. First things first You will need to install the NuGet package Google.Cloud.AIPlatform.V1 and Google.Apis.Auth for the authentication part. To check whether there are any issues with the dotnet…
In the project I am currently working on, we inherited a codebase written in an older version of .NET Framework. The ASP.NET part of it was still using synchronous controller methods. This wasn’t changed for a long time because, why bother if it works? Then, some newer methods became async Task type methods with async code. Then we continued to have both, with some wiring when we went from sync to…
The documentations on the Langchain site and also on the Microsoft site seems to be outdated with the introduction of the Azure Foundry (new) interface. So for setting up a Langchain model the URLs are a bit different. The process for configuring LangChain to work with Azure’s AI models has recently changed due to the introduction of the new Azure Foundry interface. If you’ve found that the…
Sometimes requests are denied due to many reasons (like 429 Too Many Request) and it is wise to just retry. The retry can be set on multiple levels, in code (with polly), in service level or in api gateway with a simple policy. In this post I will focus on setting the retry on the Azure Api Gateway. The following policy retries backend calls up to three times if they fail with certain status…
When building an agent with Azure AI Foundry, you’ll often need to look back at the conversation so far. Whether you’re debugging, showing it for reference, or implementing agent “memory” fetching thread message history is essential. Install dependencies You’ll need these packages: azure-ai-projects azure-ai-agents azure-identity Install them with pip: pip install azure-ai-projects azure-ai-agents…
Entity Framework (EF) is a powerful Object-Relational Mapping (ORM) framework for .NET applications. It simplifies data manipulation, but without proper query optimization, EF can lead to suboptimal performance. This post explores two examples of EF query optimization in C# to enhance application efficiency and response times. Making queries better In the first example, the query is made with…
[RO] Călătoria într-o destinație exotică poate fi o aventură palpitantă. De la explorarea unor culturi noi până la descoperirea unor locuri ascunse, există atât de multe lucruri de așteptat. Totuși, o provocare neașteptată poate să îți complice planurile: menținerea conexiunii la rețeaua mobilă. În unele țări, tipurile de rețea disponibile (de exemplu, 5G, 4G sau 3G) pot diferi de ceea ce ești…
Last week, on 2024.05.14, Google updated their Gemini AI models and conducted a demo. They also released a short document titled “Prompting Guide 101”. While the document covers a broad range of topics and is not specifically focused on software development, it provides useful information on how to use prompts effectively, with examples included. This prompting guide was initially created for…