RSSAmplifier

Blog

Furó Tamás-Márk

Software Engineer

furotmark.github.ioRSS feed ↗10 posts

Latest posts

Adding a custom CosmosDB memory to Azure AI Agent

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…

Using an Agent Engine AI Agent from dotnet c#

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…

Why do we use async-await in our Code

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…

Setup LangChain with Azure Foundry (new) model

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…

How to Set a Retry Policy in Azure API Management (APIM)

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…

Getting Thread Message History in Azure AI Foundry with Python

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…

Electric vs Gas Car Cost Calculator

Electricity usage (kWh/100km): Electricity price (price/kWh): Fuel usage (L/100km): Fuel price (price/L): Compare Costs Diagonal Comparison Table Updates based on electricity and fuel prices you enter. Fuel L/100km ↓Electric kWh/100km → 10 15 20 25 30 35 40

Entity Framework Query Optimization

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…

Ajustarea setărilor de rețea în destinații exotice

[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…

AI Prompting 101

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…