Artificial Intelligence
ABP Framework provides integration for AI capabilities to your application by using Microsoft's popular AI libraries. The main purpose of this integration is to provide a consistent and easy way to use AI capabilities and manage different AI providers, models and configurations in a single application.
ABP introduces a concept called AI Workspace. A workspace allows you to configure isolated AI configurations for a named scope. You can then resolve AI services for a specific workspace when you need to use them.
ABP Framework can work with any AI library or framework that supports .NET development. However, the AI integration features explained in the following documents provide a modular and standard way to work with AI, which allows ABP developers to create reusable modules and components with AI capabilities in a standard way.
Installation
Use the ABP CLI to install the Volo.Abp.AI NuGet package into your project. Open a command line window in the root directory of your project (.csproj file) and type the following command:
abp add-package Volo.Abp.AI
For different installation options, check the package definition page.
Usage
The Volo.Abp.AI package provides integration with the following libraries:
The Microsoft.Extensions.AI library is suggested for library developers to keep the library dependency minimum and simple (since it provides basic abstractions and fundamental AI provider integrations), while Semantic Kernel is suggested for applications that need rich and advanced AI integration features.
Check the following documentation to learn how to use these libraries with the ABP integration: