Generate PDF statistics summary with Amazon Bedrock

This example pipeline demonstrates how to generate a summary of a PDF file using Amazon Bedrock Multimodal Content Generator Snap.

  1. Configure the File Reader Snap to pass your input PDF document.

    Download the PDF document.

    Note: In this example, we use the File Reader Snap. However, you can replace the JSON Generator Snap with any Snap of your choice, such as the Chunker, Constant, JSON Generator, or S3 File Reader Snaps.
  2. Configure the Amazon Bedrock Multimodal Content Generator Snap with the Type set to document and Content type with application/pdf to process and generate multimodal content from PDF files.

    On validation, the Snap outputs a structured response that includes sl_type (indicating the modality), sl_contentType (content format), sl_content (the actual content), and name (content identifier).

    Amazon Bedrock Multimodal Content Generator Snap configuration Amazon Bedrock Multimodal Content Generator Snap output

    Amazon Bedrock Multimodal Content Generator Snap configuration


    Amazon Bedrock Multimodal Content Generator Snap output

  3. Configure the Amazon Bedrock Prompt Generator Snap with the upstream multimodal content and set the prompt to Please describe this document.

    On validation, the Snap displays the upstream multimodal content passed, including the prompt details.

    Amazon Bedrock Prompt Generator Snap configuration Amazon Bedrock Prompt Generator Snap output

    Amazon Bedrock Prompt Generator Snap configuration


    Amazon Bedrock Prompt Generator Snap output

  4. Configure the Amazon Bedrock Converse API Snap to process incoming multimodal content and generate the responses based on the prompt.

    On validation, the Snap displays the response with a description of the PDF document with the usage details.

    Amazon Bedrock Converse API Snap configuration Amazon Bedrock Converse API Snap output

    Amazon Bedrock Converse API Snap configuration


    Amazon Bedrock Converse API Snap output

To successfully reuse pipelines:
  1. Download and import the pipeline into the SnapLogic Platform.
  2. Configure Snap accounts, as applicable.
  3. Provide pipeline parameters, as applicable.