![]() |
VOOZH | about |
dotnet add package Encamina.Enmarcha.AI --version 10.0.5
NuGet\Install-Package Encamina.Enmarcha.AI -Version 10.0.5
<PackageReference Include="Encamina.Enmarcha.AI" Version="10.0.5" />
<PackageVersion Include="Encamina.Enmarcha.AI" Version="10.0.5" />Directory.Packages.props
<PackageReference Include="Encamina.Enmarcha.AI" />Project file
paket add Encamina.Enmarcha.AI --version 10.0.5
#r "nuget: Encamina.Enmarcha.AI, 10.0.5"
#:package Encamina.Enmarcha.AI@10.0.5
#addin nuget:?package=Encamina.Enmarcha.AI&version=10.0.5Install as a Cake Addin
#tool nuget:?package=Encamina.Enmarcha.AI&version=10.0.5Install as a Cake Tool
This project contains base classes, interfaces, and common functionalities shared across all ENMARCHA projects related to AI. Essentially, it serves as the common ground for orchestrating the creation and retrieval of cognitive services.
First, install NuGet. Then, install Encamina.Enmarcha.AI from the package manager console:
PM> Install-Package Encamina.Enmarcha.AI
Install .NET CLI. Next, install Encamina.Enmarcha.AI from the .NET CLI:
dotnet add package Encamina.Enmarcha.AI
The main way to use this project is in conjunction with another ENMARCHA project related to AI. The following code snippet represents the most common usage of this project. Starting from a Program.cs or a similar entry point file in your project, add the following code:
// Entry point
var builder = WebApplication.CreateBuilder(new WebApplicationOptions
{
// ...
});
// ...
builder.Services.AddDefaultCognitiveServiceProvider();
The AddDefaultCognitiveServiceProvider extension method adds a default cognitive service provider to the IServiceCollection as a singleton. This allows you to resolve the interface, which is responsible for providing instances of cognitive services based on their name. This setup enables you to configure different implementations for the same cognitive service and retrieve them based on their respective names.
public class MyClass
{
private readonly ICognitiveServiceProvider cognitiveServiceProvider;
public MyClass(ICognitiveServiceProvider cognitiveServiceProvider)
{
this.cognitiveServiceProvider = cognitiveServiceProvider;
}
public Task PredictIntentAsync()
{
// The name is configured when setting up the Intent Prediction service. This service is not
// included within this NuGet package.
var intentPredictionService = cognitiveServiceProvider.GetIntentPredictionService("NAME_OF_INTENT_PREDICTION_SERVICE");
// Utilizing the Intent Prediction Service...
return Task.CompletedTask;
}
}
The above code is not fully functional as the intent prediction service (available in another NuGet package) has yet to be configured.
Another functionality available in this NuGet package is an implementation of , Specifically . This implementation is the recommended of ITextSplitter for generic texts. It splits texts in order until the chunks are small enough (based on ITextSplitter.ChunkSize). As long as possible, it will strive to keep all paragraphs, sentences, and then words, intact, since those would generically seem to be the strongest semantically related pieces of text that could be split. There is an extension method available to add it directly to the dependency container. First, you need to add the to your project configuration. You can achieve this by using any configuration provider. The following code is an example of the appsettings.json file that contains the TextSplitterOptions settings:
{
// ...
"TextSplitterOptions": {
"ChunkOverlap": 64, // Number of elements (characters, tokens, etc.) overlapping between chunks
"ChunkSize": 512, // Number of elements (characters, tokens, etc.) in each chunk.
"Separators": [ "\n\r", "\n\n", "\n", ". ", ", ", " ", "" ] // Collection of separator characters to use when splitting the text and creating chunks
},
// ...
}
Next, in Program.cs or a similar entry point file in your project, add the following code:
// Entry point
var builder = WebApplication.CreateBuilder(new WebApplicationOptions
{
// ...
});
// ...
// Or others configuration providers...
builder.Configuration.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true);
builder.Services.AddOptions<TextSplitterOptions>().Bind(builder.Configuration.GetSection(nameof(TextSplitterOptions)))
.ValidateDataAnnotations()
.ValidateOnStart();
builder.Services.AddRecursiveCharacterTextSplitter();
The extension method AddRecursiveCharacterTextSplitter manages to configure everything necessary to create instances of ITextSplitter. With this setup, you can retrieve instances of ITextSplitter (whose implementation is ). Now, you can resolve ITextSplitter interface as needed.
public class MyClass
{
private readonly ITextSplitter textSplitter;
public MyClass(ITextSplitter textSplitter)
{
this.textSplitter = textSplitter;
}
public IEnumerable<string> SplitText(string text)
{
return textSplitter.Split(text, lengthFunction: ILengthFunctions.LengthByCharacterCount);
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Encamina.Enmarcha.AI:
| Package | Downloads |
|---|---|
|
Encamina.Enmarcha.Bot
Package Description |
|
|
Encamina.Enmarcha.AI.IntentsPrediction.Azure
Package Description |
|
|
Encamina.Enmarcha.AI.QuestionsAnswering.Azure
Package Description |
|
|
Encamina.Enmarcha.AI.LanguagesDetection.Azure
Package Description |
|
|
Encamina.Enmarcha.AI.TextsTranslation.Azure
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.5 | 331 | 6/1/2026 |
| 10.0.4 | 593 | 4/8/2026 |
| 10.0.3 | 578 | 4/6/2026 |
| 10.0.2 | 1,003 | 12/17/2025 |
| 10.0.1 | 479 | 12/17/2025 |
| 10.0.0 | 466 | 12/16/2025 |
| 10.0.0-preview-09 | 607 | 11/19/2025 |
| 10.0.0-preview-08 | 600 | 11/18/2025 |
| 10.0.0-preview-07 | 893 | 10/22/2025 |
| 10.0.0-preview-06 | 700 | 10/14/2025 |
| 10.0.0-preview-05 | 390 | 10/8/2025 |
| 10.0.0-preview-04 | 373 | 10/7/2025 |
| 10.0.0-preview-03 | 500 | 9/16/2025 |
| 10.0.0-preview-02 | 510 | 9/16/2025 |
| 8.3.0 | 1,342 | 9/10/2025 |
| 8.3.0-preview-02 | 453 | 9/10/2025 |
| 8.3.0-preview-01 | 443 | 9/8/2025 |
| 8.2.1-preview-08 | 467 | 8/18/2025 |
| 8.2.1-preview-07 | 442 | 8/12/2025 |