semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

.Net: Decode unicode escapes in TextMemoryPlugin recall

Open atiq-bs23 opened this issue 1 year ago • 1 comments

Motivation and Context

TextMemoryPlugin RecallAsync returns encoded data if the data is not English.

Description

I have added a method to decode unicode escape sequences.

Contribution Checklist

atiq-bs23 avatar Jul 02 '24 13:07 atiq-bs23

#6593 issue is related

atiq-bs23 avatar Jul 02 '24 14:07 atiq-bs23

Closing this PR, since this change could be a breaking change for some customers, but I've created a new PR that allows customizing the JsonSerializer behavior to output unescaped characters to begin with. See #7098

westey-m avatar Jul 04 '24 14:07 westey-m