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

Fix Kendra character count validation error #509

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

anaseol
Copy link

@anaseol anaseol commented Jul 2, 2024

Issue #, if available:

Kendra retrieval fails when the query has more than 1000 characters.
The error can be reproduced by choosing a workspace that uses the Kendra engine and sending a message longer than 1000 characters.

kendra_character_count_validation_error

Description of changes:
An attempt to solve this problem would be to remove any leading and trailing whitespace characters and send only the first 1000 characters as query text.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Rob-Powell
Copy link
Contributor

I'm not sure this is the best approach as it can also be solved by increasing the service limit for kendra, perhaps this should be some docs guidance to increase the service quota instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants