Skip to content

Is there support for Documents with Images and Graphs in Amazon Bedrock Knowledge Bases?

0

Is is possible to ingest documents that contain both text an images, and use them as data sources for an Amazon Bedrock Knowledge base? What are the best practices for ingesting image data? I know there's custom LLM parsing, which seems to extract some information about images by leveraging an LLM to analyze the document / document chunk. However, the quota limits are small (100 MB / 100 files). Are there any other alternatives?

2 Answers
2
Accepted Answer

Currently, Amazon Bedrock Knowledge Bases primarily supports text-based document formats. While it can ingest various file types including PDFs, Word documents, and spreadsheets, there isn't explicit support for processing images and graphs within these documents as part of the knowledge base creation process.

The advanced parsing feature you mentioned does offer some capability to extract information from PDFs, which might include some basic image analysis, but as you correctly pointed out, it has significant limitations. The quota for advanced parsing is indeed small, with a maximum of 100 MB of data that can be parsed using this method.

For documents containing both text and images, the text content would be ingested and processed, but the image content would not be directly analyzed or included in the knowledge base in a way that allows for image-based querying or retrieval.

As for best practices for ingesting image data, given the current limitations of Amazon Bedrock Knowledge Bases, there isn't a straightforward method within the service itself. If working with documents that contain important visual information, you might need to consider alternative approaches:

  1. Pre-processing: You could use external tools or services to analyze images and graphs in your documents, extract relevant textual descriptions or metadata, and include this information in the text of the document before ingesting it into the knowledge base.

  2. Separate image processing pipeline: You might need to set up a separate workflow for processing and storing image data, potentially using other AWS services that are more suited to image analysis and storage.

  3. Text-based representation: Where possible, ensure that important information conveyed in images or graphs is also represented in text form within your documents.

At present, there are no other alternatives within Amazon Bedrock Knowledge Bases for directly ingesting and processing image data at scale. The service is primarily designed for text-based information retrieval and generation. If extensive image processing is a critical requirement for your use case, you may need to explore additional services or custom solutions to complement the text-based capabilities of Amazon Bedrock Knowledge Bases.
Sources
Prerequisites for your Amazon Bedrock knowledge base data - Amazon Bedrock
Quotas for Amazon Bedrock - Amazon Bedrock
Prerequisites for creating an Amazon Bedrock knowledge base - Amazon Bedrock

answered 2 years ago

EXPERT

reviewed 2 years ago

0

Short answer is yes, but you probably need to pre-process your content with a multi-model FM like Claude. Very detailed explanation can be found it this AWS Blog: https://aws.amazon.com/blogs/machine-learning/amazon-bedrock-knowledge-bases-now-supports-advanced-parsing-chunking-and-query-reformulation-giving-greater-control-of-accuracy-in-rag-based-applications/

AWS

answered 2 years ago

  • Unfortunately support is limited for advanced parsing with LLMS, the advanced parsing total size is only 100 MB, and you can only ingest up to 100 files per KB (https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html) . Those cannot be adjusted. If you have documents with images that exceed these limits, as mentioned by the re:Post Agent, you'll be better of implementing a custom pre-processing solution. You could leverage the same prompt used for advanced parsing, and, using AWS services such as Bedrock Batch Inference, you could prepare your data for ingestion via Knowledge Base.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.