Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #34. Semantic kernel summaries plugin fails to preserve the original language of the text #35

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Also, any bug fix must start with the prefix �Bug fix:� followed by the desc

Previous classification is not required if changes are simple or all belong to the same category.

## [8.0.2]

### **Major Changes**
- In `Encamina.Enmarcha.SemanticKernel.Plugins.Text` Summarize Plugin, a new parameter `locale` has been added to control the output language of the generated summary. [(#34)](https://github.com/Encamina/enmarcha/issues/34)

## [8.0.1]

### **Major Changes**
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>8.0.1</VersionPrefix>
<VersionPrefix>8.0.2</VersionPrefix>
<VersionSuffix></VersionSuffix>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"name": "maxWordsCount",
"description": "Maximum number of words that the summary should have",
"defaultValue": "1000"
},
{
"name": "locale",
"description": "Language in which the summary will be generated",
"defaultValue": "en"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
Your task is TO SUMMARIZE the INPUT text using no more than {{$maxWordsCount}} words.
DO NOT TRANSLATE the text, USE the same language as the INPUT.
Your task is TO SUMMARIZE the INPUT text using no more than {{$maxWordsCount}} words in the '{{$locale}}' language.
Maximize detail and meaning.
Focus on the content in the INPUT text.
ALWAYS answer in the SAME LANGUAGE as the INPUT.
USE {{$maxWordsCount}} words or less TO SUMMARIZE the content in INPUT.
Summarize using the '{{$locale}}' language.

[INPUT]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ public static class Parameters
/// The name of the «minWordsCount» parameter, which represents the maximum number of words that the summary should have.
/// </summary>
public static readonly string MaxWordsCount = nameof(MaxWordsCount).ToLowerInvariant();

/// <summary>
/// The name of the «locale» parameter, which represents the language in which the summary will be generated.
/// </summary>
public static readonly string Locale = nameof(Locale).ToLowerInvariant();
}
}
}
Expand Down
Loading