
Sign up to save your podcasts
Or


The world of AI development is evolving rapidly, with new models, techniques, and tools emerging every day.
For developers looking to incorporate AI into their applications, the landscape can be both exciting and overwhelming.
If you missed our initial announcement on the Azure Developer Community Blog, we’re excited to introduce you to the AI Dev Gallery. In this post, we’ll explore this Windows application in greater depth, showcasing how it simplifies AI development with .NET through interactive samples, easy model downloads, and exportable source code.
The AI Dev Gallery is a Windows application that serves as a comprehensive playground for AI development using .NET. It provides everything you need to explore, experiment with, and implement AI capabilities in your applications, all without requiring a connection to cloud services.
The AI Dev Gallery includes a diverse collection of interactive samples that demonstrate different AI capabilities:
All these samples run entirely on your local machine, allowing you to experiment without cloud dependencies or API costs.
Finding and setting up AI models is often a significant hurdle in development. The AI Dev Gallery simplifies this process by allowing you to:
The gallery handles model compatibility, ensuring you get versions that work with the .NET ecosystem.
Tip
Models are cached locally after download, so you only need to download them once even if you use them across multiple samples.Key Feature
One of the most powerful features of the AI Dev Gallery is the ability to view the C# source code behind each sample and export it as a standalone Visual Studio project with a single click.This feature bridges the gap between experimentation and implementation, allowing you to:
What makes the AI Dev Gallery particularly valuable for .NET developers is that it’s built entirely using the foundational pieces of the .NET AI ecosystem. This means that the code you see and export uses the same libraries and patterns you’ll use in production applications.
For chat and embedding generation, the AI Dev Gallery uses Microsoft.Extensions.AI – a unified set of abstractions for AI model integration in .NET applications.
Microsoft.Extensions.AI provides a consistent programming model regardless of the underlying model implementation, whether it’s a local model or a cloud service. This allows you to swap models without changing your application code.
For generative language models specifically, the gallery leverages ONNX Runtime GenAI, which builds on top of Microsoft.Extensions.AI to provide optimized local model execution and an effective chat client implementation.
Learn more about Microsoft.Extensions.AI
To convert text into tokens (the numerical representations that models understand), the AI Dev Gallery uses Microsoft.ML.Tokenizers, which supports a wide range of tokenization schemes:
The tokenizer library in .NET 9 supports multiple tokenization schemes:
This flexibility ensures compatibility with virtually any text-based AI model.
Learn more about tokenizers in .NET
For semantic search and RAG scenarios, the AI Dev Gallery uses Microsoft.Extensions.VectorData, which provides abstractions for working with vector databases and embeddings:
This library makes it easy to implement semantic search and RAG patterns without being tied to a specific vector database implementation.
Learn more about vector search in .NET or read our detailed blog post about semantic search with the AI Dev Gallery for a deeper dive into implementation details.
For post-processing model outputs and performing operations like cosine similarity, the AI Dev Gallery uses Tensor and TensorPrimitives provided by System.Numerics.Tensors:
The Tensor types in .NET 9 provide high-performance numeric operations with minimal memory allocations, which is crucial for AI workloads that often involve large numeric arrays.
Learn more about Tensor and TensorPrimitives
The AI Dev Gallery represents a significant step forward in making AI development accessible to .NET developers. By providing interactive samples, easy model access, and exportable code, it removes many of the barriers that have traditionally made AI integration challenging.
Whether you’re new to AI or an experienced developer looking to explore new capabilities, the AI Dev Gallery provides a comprehensive environment for learning, experimentation, and implementation.
Open Source
We’re continuously adding new samples and features to the AI Dev Gallery. We’d love to hear your feedback and suggestions on what you’d like to see next.
The post Introducing the AI Dev Gallery: Your Gateway to Local AI Development with .NET appeared first on .NET Blog.
By The world of AI development is evolving rapidly, with new models, techniques, and tools emerging every day.
For developers looking to incorporate AI into their applications, the landscape can be both exciting and overwhelming.
If you missed our initial announcement on the Azure Developer Community Blog, we’re excited to introduce you to the AI Dev Gallery. In this post, we’ll explore this Windows application in greater depth, showcasing how it simplifies AI development with .NET through interactive samples, easy model downloads, and exportable source code.
The AI Dev Gallery is a Windows application that serves as a comprehensive playground for AI development using .NET. It provides everything you need to explore, experiment with, and implement AI capabilities in your applications, all without requiring a connection to cloud services.
The AI Dev Gallery includes a diverse collection of interactive samples that demonstrate different AI capabilities:
All these samples run entirely on your local machine, allowing you to experiment without cloud dependencies or API costs.
Finding and setting up AI models is often a significant hurdle in development. The AI Dev Gallery simplifies this process by allowing you to:
The gallery handles model compatibility, ensuring you get versions that work with the .NET ecosystem.
Tip
Models are cached locally after download, so you only need to download them once even if you use them across multiple samples.Key Feature
One of the most powerful features of the AI Dev Gallery is the ability to view the C# source code behind each sample and export it as a standalone Visual Studio project with a single click.This feature bridges the gap between experimentation and implementation, allowing you to:
What makes the AI Dev Gallery particularly valuable for .NET developers is that it’s built entirely using the foundational pieces of the .NET AI ecosystem. This means that the code you see and export uses the same libraries and patterns you’ll use in production applications.
For chat and embedding generation, the AI Dev Gallery uses Microsoft.Extensions.AI – a unified set of abstractions for AI model integration in .NET applications.
Microsoft.Extensions.AI provides a consistent programming model regardless of the underlying model implementation, whether it’s a local model or a cloud service. This allows you to swap models without changing your application code.
For generative language models specifically, the gallery leverages ONNX Runtime GenAI, which builds on top of Microsoft.Extensions.AI to provide optimized local model execution and an effective chat client implementation.
Learn more about Microsoft.Extensions.AI
To convert text into tokens (the numerical representations that models understand), the AI Dev Gallery uses Microsoft.ML.Tokenizers, which supports a wide range of tokenization schemes:
The tokenizer library in .NET 9 supports multiple tokenization schemes:
This flexibility ensures compatibility with virtually any text-based AI model.
Learn more about tokenizers in .NET
For semantic search and RAG scenarios, the AI Dev Gallery uses Microsoft.Extensions.VectorData, which provides abstractions for working with vector databases and embeddings:
This library makes it easy to implement semantic search and RAG patterns without being tied to a specific vector database implementation.
Learn more about vector search in .NET or read our detailed blog post about semantic search with the AI Dev Gallery for a deeper dive into implementation details.
For post-processing model outputs and performing operations like cosine similarity, the AI Dev Gallery uses Tensor and TensorPrimitives provided by System.Numerics.Tensors:
The Tensor types in .NET 9 provide high-performance numeric operations with minimal memory allocations, which is crucial for AI workloads that often involve large numeric arrays.
Learn more about Tensor and TensorPrimitives
The AI Dev Gallery represents a significant step forward in making AI development accessible to .NET developers. By providing interactive samples, easy model access, and exportable code, it removes many of the barriers that have traditionally made AI integration challenging.
Whether you’re new to AI or an experienced developer looking to explore new capabilities, the AI Dev Gallery provides a comprehensive environment for learning, experimentation, and implementation.
Open Source
We’re continuously adding new samples and features to the AI Dev Gallery. We’d love to hear your feedback and suggestions on what you’d like to see next.
The post Introducing the AI Dev Gallery: Your Gateway to Local AI Development with .NET appeared first on .NET Blog.