page_type | languages | products | urlFragment | name | description | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
ai-samples |
AI Samples for .NET |
.NET samples demonstrating how to use AI in your .NET applications. |
Welcome to the official home for .NET samples demonstrating how to use AI in your .NET applications. If you're new to AI, start at the top and work your way down. Otherwise, jump in wherever suits your interests.
Microsoft.Extensions.AI is a set of core .NET libraries developed in collaboration with the .NET ecosystem, including Semantic Kernel. These libraries provide a unified layer of C# abstractions for interacting with AI services, such as small and large language models (SLMs and LLMs) and embeddings.
Core benefits:
- Unified API: Offers a consistent and standard set of APIs and conventions for integrating AI services into .NET applications.
- Flexibility: Allows .NET library authors to use AI services without forcing a specific AI provider, making it parameterizable with any provider.
- Ease of Use: Enables .NET application developers to experiment with different packages using the same underlying abstractions and to utilize a single API throughout their application.
- Componentization: Facilitates the addition of new capabilities and simplifies the componentization and testing of applications.
For more details, see the Introducing Microsoft.Extensions.AI Preview blog post.
Topic | GitHub Link |
---|---|
Abstraction implementations | GitHub Link |
Azure OpenAI | GitHub Link |
OpenAI | GitHub Link |
Azure AI Inference | GitHub Link |
Ollama | GitHub Link |
Discover how to bring AI into your .NET application! This session covers the tools, libraries, and best practices for incorporating LLMs or other AI capabilities to create an "intelligent app". We'll explore practical examples, including how to leverage Azure AI services and the .NET AI ecosystem, to enhance your apps with AI.
Youtube: Infusing your .NET Apps with AI: Practical Tools and Techniques
# | Topic | YouTube Link and Time | GitHub Link |
---|---|---|---|
1 | Hello Semantic Kernel | 3m 0s | Hello Semantic Kernel |
2 | Add Chat History | 5m 40s | Add Chat History |
3 | Add Plugin - Function Call | 7m 10s | Add Plugin - Function Call |
4 | Add Logging | 9m 24s | Add Logging |
5 | Add Plugin - Bing Search | 11m 15s | Add Plugin - Bing Search |
6 | Modify Kernel Behavior with Dependency Injection | 12m 37s | Modifying Kernel Behavior with Dependency Injection |
7 | Using Semantic Kernel in a Web App | 15m 57s | Using Semantic Kernel in a Web App |
# | Topic | GitHub Link |
---|---|---|
1 | Text Summary | Hike Benefits Summary Project |
2 | Hiker AI | Hiker AI Project |
3 | Chat Context/Data | Chatting About my Previous Hikes Project |
4 | Hiker AI Pro (Tool extension) | Hiker AI Pro |
5 | Generating images | Hike Images Project |
REF | Using Milvus | Coming Soon |
REF | Using Qdrant | Coming Soon |
# | Topic | GitHub Link |
---|---|---|
1 | Text Summary | Hike Benefits Summary Project |
2 | Hiker AI | Hiker AI Project |
3 | Chat Context/Data | Chatting About my Previous Hikes Project |
4 | Hiker AI Pro (Tool extension) | Hiker AI Pro |
5 | Generating images | Hike Images Project |
# | Topic | GitHub Link |
---|---|---|
1 | Customer Support | Customer Support Project |
# | Topic | GitHub Link |
---|---|---|
REF | Tokenizer | Coming Soon |
REF | Embeddings | Coming Soon |
REF | RAG | Coming Soon |
REF | Prompts / Prompt Engineering | Coming Soon |
# | Topic | GitHub Link |
---|---|---|
E2E | Azure Search . | Azure Search Repository |
E2E | E-Shop Sample | E-Shop Repository |
# | Topic | GitHub Link |
---|---|---|
REF | Phi | Phi |
REF | LLaMA | LLaMA |
# | Topic | GitHub Link |
---|---|---|
REF | Clip | Coming Soon |
# | Topic | GitHub Link |
---|---|---|
REF | TikToken | Coming Soon |
# | Topic | GitHub Link |
---|---|---|
REF | Azure AI Search | Coming Soon |
REF | PostgreSQL + pgvector | Coming Soon |
REF | Milvus | Coming Soon |
REF | Qdrant | Coming Soon |
# | Topic | GitHub Link |
---|---|---|
REF | Vector<T> | Coming Soon |
There are many .NET related projects on GitHub.
- .NET home repo - links to 100s of .NET projects, from Microsoft and the community.
- ASP.NET Core home - the best place to start learning about ASP.NET Core.
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.
.NET (including the csharp-notebooks repo) is licensed under the MIT license.