Home DEVELOPER AI Chatbots in .NET: New .NET AI Template should reduce entry-level obstacles

AI Chatbots in .NET: New .NET AI Template should reduce entry-level obstacles

0


Microsoft published .NET AI Template as a preview. It is a template to create a chatbot based on artificial intelligence. It is available for many Microsoft products: Development Environment Visual Studio, Free Source Code Editor Visual Studio Code and .NET Command-Line Interface (CLI). Visual Studio Code is for use Extension c# Dev Kit necessary.

Advertisement


With the .NET AI template, developers intend to get a simplified entry to create an AI-powered chat application. Chat is possible based on custom data fed by PDF files. In the initial release, attention is on a blazer-based web application, using Microsoft.extensions.ai– And Microsoft.extensions.vectordata-Brack. Both complaints are currently in preview positions. The template also uses RAG patterns (recovery of recovery generation), which is often used for chat applications.

The new template supports both local and azure integration: it can handle a local vector store for the prototype with the prototype. Azure ai on search (East azure cognitive discovery) is an information recovery system that can be used in traditional and geni scenarios.

The code generated by the .NET AI template includes the UI components for chat interaction, citation tracking and subsequent suggestions. These components are individually adjustable. The template also provides codes for data processing, cashing and singing.

The template brings two sample PDF files and an example of data engineering code to process PDFS. This code is flexible, so PDF can be exchanged. For this it is necessary to stop the current project, to remove PDF /wwwroot /data folder and insert your own PDF there. Then the application should be resumed.

When starting the application, the data engineering code, which is located in /vervices/ddataingestor.cs, resembles the content of the data folder, removes the old files from the configured vector store and adds the new.

New Probability for REF structure in .NET 9.0 (11): C# 13.0

There are many AI model providers to choose, there is a screenshot from the development team from Visual Studio:



Visual Studio: These AI models are available for .NET AI Template.

(Image: Microsoft)

It should be noted that depending on the file number and size, the quota and installment of the configured AI provider can be reached. When the application starts, the error message or significant delay is made.

You can get more information about the use of new AI template On .NET blogAdditional help to create AI app in .NET Microsoft offers Learn page,


(May)

Javaland 2025: Safe tickets for Community Conference now

NO COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Exit mobile version