Retrieve data from Knowledge base

This example pipeline demonstrates querying a knowledge base and retrieving information from it.

Prerequisites

  1. Configure the Agent Retrieve Snap to query the existing knowledge base that contains data about wild fire. Configure the Number of results to 3 to return three responses.
    Agent Retrieve configuration

    On validation, the Snap retrieves information about wild fire from the knowledge base and returns the response in three rows. Each response contains data chunks about content, location, metadata, and score.
    Agent Retrieve Output

  2. Configure the Mapper Snap to pass the context and prompt in a single array.


  3. Configure the Amazon Bedrock Prompt Generator Snap to add a prompt.
    Anthropic Claude on AWS Messages configuration

    On validation, the Snap generates a prompt.
    Claude on AWS Messages Snap Output

  4. Configure the Anthropic Claude on AWS Messages Snap to create an answer.
    Anthropic Claude on AWS Messages configuration

    On validation, the Snap generates an answer pertaining to wildfire.
    Claude on AWS Messages Snap Output

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