aws-samples / bedrock-claude-chat

AWS-native chatbot using Bedrock + Claude (+Mistral)
MIT No Attribution
913 stars 323 forks source link

fix: enable public API access without knowledge #601

Closed iwasawamnb closed 5 days ago

iwasawamnb commented 6 days ago

Issue #, if available:

598

Description of changes: In /backend/app/usecases/chat.py, I modified it to search the docs only when the bot has knowledge registered. (This ensures that the public API without knowledge works correctly.)

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