Comments (2)
Hi @cboin1996
Thanks for reporting this.
Based on my initial read of this, it seems that the encoding issue is already at the Kendra level, therefore I do not see this as a bug in QnA but potentially as an enhancement. However we will look into this and revert back.
from qnabot-on-aws.
Yea it does look to be at the Kendra level, but I still wonder if it could be addressed in the bot fulfillment lambda.
One potential idea I had, is to force specific encoding's within the bot fulfillment lambda.
- Add a parameter to the qnabot designer called 'DecodeKendraResults'
- Decode the search results in bot fulfillment prior to passing it off to the client interface or passing to LLM if LLM plugin is enabled.
ex:
- EncodeKendraResults = 'cp1252'
- DecodeKendraResults = 'utf-8'
in the bot-fulfillment lambda, do something like
'•'.encode('cp1252').decode('utf-8')
but instead of just '•'
, you would have the kendra search results.
When I run the above code I get the correct character - '•'
.
The caveat is this only would work for a single document encoding type.. so maybe I need to figure out if I can specify document encodings within Kendra so that when the fulfillment lambda call's kendra the document is forced to be encoded/decoded with the right encoding that matches the document.
from qnabot-on-aws.
Related Issues (20)
- a Terraform version HOT 2
- Provide session management capabilities HOT 2
- Ability to reset the conversation or start new conversation HOT 2
- QnA wont get any content from Kendra , if the Kendra content is not in english. HOT 15
- [Bug] AWS environment variable for region is wrongly set HOT 3
- Enable Intent Trigger every start of a session HOT 2
- Using Elicit Response but with chaining HOT 4
- Confirmation Decline Response Prompt not sending HOT 2
- Lambda creates about 1 bilion copies of file HOT 5
- Lambda layer changes not reflecting HOT 4
- Response card is not showing when chaining rule is added. HOT 8
- Amazon Polly voice name for Austrian German is incorrect HOT 4
- Score matching HOT 3
- Answer data that contains only double-byte full-width characters cannot be imported. HOT 2
- Shell and other commands not working in Ubuntu linux HOT 4
- Issue: QnABot logs Never Expire. Request: Add configurable log retention period for all CloudWatch log groups used by QnABot HOT 4
- 6.0.0 has updated PassRole resource constraint definition that breaks upgrades or new installs if stack name is greater than 26 characrters HOT 5
- Kendra Web Cwaler is executed, but the KendraCrawlerSNSTopic that launches the ClowlerLambda is not triggered HOT 2
- ELICIT_RESPONSE_DEFAULT_MSG can't be changed HOT 3
- Add support for Titan Models for Bedrock Knowledge Bases HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qnabot-on-aws.