1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
Are you using a file format supported by Bedrock Knowledge Base?
The following document describes the file formats supported by the Knowledge Base.
https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-ds.html
Relevant content
- asked 4 months ago
- AWS OFFICIALUpdated a year ago

Hi, based on this list, it's useful to preprocess the files of your datasource: either you remove them when their internal format is really not text or you convert their name when they indeed contain text (abcd.log -> abcd.log.txt)
Our team is also getting this same error for cpp files that we batch renamed from filename.cpp -> filename_cpp.txt since the contents are in fact plain text. .h files are getting converted correctly, however, where we maintained the same batch rename process - filename.h -> filename_h.txt