Encamina.Enmarcha.Bot.Skills.QuestionAnswering
8.1.6-preview-07
See the version list below for details.
dotnet add package Encamina.Enmarcha.Bot.Skills.QuestionAnswering --version 8.1.6-preview-07
NuGet\Install-Package Encamina.Enmarcha.Bot.Skills.QuestionAnswering -Version 8.1.6-preview-07
<PackageReference Include="Encamina.Enmarcha.Bot.Skills.QuestionAnswering" Version="8.1.6-preview-07" />
paket add Encamina.Enmarcha.Bot.Skills.QuestionAnswering --version 8.1.6-preview-07
#r "nuget: Encamina.Enmarcha.Bot.Skills.QuestionAnswering, 8.1.6-preview-07"
// Install Encamina.Enmarcha.Bot.Skills.QuestionAnswering as a Cake Addin #addin nuget:?package=Encamina.Enmarcha.Bot.Skills.QuestionAnswering&version=8.1.6-preview-07&prerelease // Install Encamina.Enmarcha.Bot.Skills.QuestionAnswering as a Cake Tool #tool nuget:?package=Encamina.Enmarcha.Bot.Skills.QuestionAnswering&version=8.1.6-preview-07&prerelease
Bot Skills Question Answering
This project mainly contains abstractions related to data used by other ENMARCHA NuGet packages or necessary for creating Question Answering skills
Setup
Nuget package
First, install NuGet. Then, install Encamina.Enmarcha.Bot.Skills.QuestionAnswering from the package manager console:
PM> Install-Package Encamina.Enmarcha.Bot.Skills.QuestionAnswering
.NET CLI:
Install .NET CLI. Next, install Encamina.Enmarcha.Bot.Skills.QuestionAnswering from the .NET CLI:
dotnet add package Encamina.Bot.Skills.QuestionAnswering
How to use
In addition to the abstractions (interfaces, abstract classes, etc.) that have their implementations in other ENMARCHA NuGets in Program.cs
// Add services to the container.
builder.Services.AddQuestionAnsweringSkill(options =>
{
options.QuestionAnsweringServiceName = "YourServiceName";
options.DialogName = "YourDialogName";
options.DialogIntent = "YourDialogIntent";
options.NormalizeMessage = true;
options.NormalizeRemoveCharacters = new List<char> { 'a', 'b', 'c' };
}, ServiceLifetime.Singleton);
IServiceCollectionExtensions
IServiceCollectionExtensions
is a static class that provides extension methods for IServiceCollection
to add and configure services for a question answering skill and Cosmos DB support.
Methods
AddQuestionAnsweringSkill
: Adds and configures the question answering dialog with given configuration options and question answering service name. It takes anIServiceCollection
, anAction<QuestionAnsweringSkillOptions>
, and an optionalServiceLifetime
as parameters. It returns theIServiceCollection
for chaining additional calls.AddCosmosDbSupport
: Adds support for Cosmos DB with configuration parameters from the current configuration. It takes anIServiceCollection
, anIConfiguration
, and an optionalServiceLifetime
as parameters. It returns theIServiceCollection
for chaining additional calls.
QuestionAnsweringDialog
QuestionAnsweringDialog
is a class that defines a dialog for a question answering skill. It inherits from NamedDialogBase
and implements the IIntendable
interface.
Usage
On Program.cs
// Add bot dialogs...
builder.Services.AddSingleton<QuestionAnsweringDialog>().AddSingleton<Dialog, QuestionAnsweringDialog>();
Constructor
QuestionAnsweringDialog
: Initializes a new instance of the class. It takes a stringid
, aQuestionAnsweringDialogServices
object, and anIOptionsMonitor<QuestionAnsweringSkillOptions>
as parameters.
Fields
configurationOptions
: Stores the configuration options for this question answering dialog.services
: Stores the services required for this question answering dialog.isMetadataProcessorAvailable
andisSourcesProcessorAvailable
: Indicate the availability of metadata and sources processors.
QuestionAnsweringSkillOptions
QuestionAnsweringSkillOptions
is a class that provides configuration options for the question answering dialog.
Usage
To use this class, you need to create an instance and set the necessary properties:
var options = new QuestionAnsweringSkillOptions
{
QuestionAnsweringServiceName = "YourServiceName",
DialogName = "YourDialogName",
DialogIntent = "YourDialogIntent",
NormalizeMessage = true,
NormalizeRemoveCharacters = new List<char> { 'a', 'b', 'c' }
};
Constructor
QuestionAnsweringSkillOptions
: Initializes a new instance of the class. It doesn't take any parameters.
Properties
QuestionAnsweringServiceName
: Gets or sets the name of the Question Answering service to use by this skill.DialogName
: Gets or sets the dialog's name.DialogIntent
: Gets or sets the dialog's intent.NormalizeMessage
: Gets or sets a value indicating whether the question answering dialog must normalize the message (question) removing specific characters (usually diacritics). Defaults tofalse
.NormalizeRemoveCharacters
: Gets or sets a collection of characters to remove from the message when normalizing.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- CommunityToolkit.Diagnostics (>= 8.2.2)
- Encamina.Enmarcha.AI.QuestionsAnswering.Abstractions (>= 8.1.6-preview-07)
- Encamina.Enmarcha.Bot (>= 8.1.6-preview-07)
- Encamina.Enmarcha.Bot.Abstractions (>= 8.1.6-preview-07)
- Microsoft.Extensions.Hosting (>= 8.0.0)
- Microsoft.Extensions.Options.DataAnnotations (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.2.0 | 88 | 10/22/2024 |
8.2.0-preview-01-m01 | 103 | 9/17/2024 |
8.1.9-preview-03 | 75 | 11/19/2024 |
8.1.9-preview-02 | 63 | 10/22/2024 |
8.1.9-preview-01 | 76 | 10/4/2024 |
8.1.8 | 103 | 9/23/2024 |
8.1.8-preview-07 | 81 | 9/12/2024 |
8.1.8-preview-06 | 85 | 9/11/2024 |
8.1.8-preview-05 | 92 | 9/10/2024 |
8.1.8-preview-04 | 107 | 8/16/2024 |
8.1.8-preview-03 | 91 | 8/13/2024 |
8.1.8-preview-02 | 102 | 8/13/2024 |
8.1.8-preview-01 | 108 | 8/12/2024 |
8.1.7 | 90 | 8/7/2024 |
8.1.7-preview-09 | 86 | 7/3/2024 |
8.1.7-preview-08 | 97 | 7/2/2024 |
8.1.7-preview-07 | 82 | 6/10/2024 |
8.1.7-preview-06 | 85 | 6/10/2024 |
8.1.7-preview-05 | 83 | 6/6/2024 |
8.1.7-preview-04 | 95 | 6/6/2024 |
8.1.7-preview-03 | 94 | 5/24/2024 |
8.1.7-preview-02 | 90 | 5/10/2024 |
8.1.7-preview-01 | 113 | 5/8/2024 |
8.1.6 | 112 | 5/7/2024 |
8.1.6-preview-08 | 54 | 5/2/2024 |
8.1.6-preview-07 | 88 | 4/29/2024 |
8.1.6-preview-06 | 107 | 4/26/2024 |
8.1.6-preview-05 | 100 | 4/24/2024 |
8.1.6-preview-04 | 82 | 4/22/2024 |
8.1.6-preview-03 | 91 | 4/22/2024 |
8.1.6-preview-02 | 114 | 4/17/2024 |
8.1.6-preview-01 | 88 | 4/15/2024 |
8.1.5 | 122 | 4/15/2024 |
8.1.5-preview-15 | 87 | 4/10/2024 |
8.1.5-preview-14 | 87 | 3/20/2024 |
8.1.5-preview-13 | 84 | 3/18/2024 |
8.1.5-preview-12 | 96 | 3/13/2024 |
8.1.5-preview-11 | 97 | 3/13/2024 |
8.1.5-preview-10 | 88 | 3/13/2024 |
8.1.5-preview-09 | 102 | 3/12/2024 |
8.1.5-preview-08 | 99 | 3/12/2024 |
8.1.5-preview-07 | 95 | 3/8/2024 |
8.1.5-preview-06 | 83 | 3/8/2024 |
8.1.5-preview-05 | 84 | 3/7/2024 |
8.1.5-preview-04 | 95 | 3/7/2024 |
8.1.5-preview-03 | 90 | 3/7/2024 |
8.1.5-preview-02 | 99 | 2/28/2024 |
8.1.5-preview-01 | 88 | 2/19/2024 |
8.1.4 | 140 | 2/15/2024 |
8.1.3 | 122 | 2/13/2024 |
8.1.3-preview-07 | 91 | 2/13/2024 |
8.1.3-preview-06 | 103 | 2/12/2024 |
8.1.3-preview-05 | 115 | 2/9/2024 |
8.1.3-preview-04 | 87 | 2/8/2024 |
8.1.3-preview-03 | 87 | 2/7/2024 |
8.1.3-preview-02 | 93 | 2/2/2024 |
8.1.3-preview-01 | 89 | 2/2/2024 |
8.1.2 | 117 | 2/1/2024 |
8.1.2-preview-9 | 99 | 1/22/2024 |
8.1.2-preview-8 | 98 | 1/19/2024 |
8.1.2-preview-7 | 90 | 1/19/2024 |
8.1.2-preview-6 | 82 | 1/19/2024 |
8.1.2-preview-5 | 79 | 1/19/2024 |
8.1.2-preview-4 | 95 | 1/19/2024 |
8.1.2-preview-3 | 93 | 1/18/2024 |
8.1.2-preview-2 | 87 | 1/18/2024 |
8.1.2-preview-16 | 104 | 1/31/2024 |
8.1.2-preview-15 | 103 | 1/31/2024 |
8.1.2-preview-14 | 87 | 1/25/2024 |
8.1.2-preview-13 | 89 | 1/25/2024 |
8.1.2-preview-12 | 88 | 1/23/2024 |
8.1.2-preview-11 | 92 | 1/23/2024 |
8.1.2-preview-10 | 86 | 1/22/2024 |
8.1.2-preview-1 | 89 | 1/18/2024 |
8.1.1 | 126 | 1/18/2024 |
8.1.0 | 100 | 1/18/2024 |
8.0.3 | 164 | 12/29/2023 |
8.0.1 | 151 | 12/14/2023 |
8.0.0 | 149 | 12/7/2023 |
6.0.4.3 | 118 | 12/29/2023 |
6.0.4.2 | 129 | 12/20/2023 |
6.0.4.1 | 100 | 12/19/2023 |
6.0.4 | 126 | 12/4/2023 |
6.0.3.20 | 134 | 11/27/2023 |
6.0.3.19 | 130 | 11/22/2023 |