Retrieve data and generate a response

This example pipeline demonstrates how to retrieve data from knowledge base and also generate a resposne.


Agent Retrieve and Generate Example Pipeline

Download this pipeline.

Prerequisites

  1. Configure the Agent Retrieve and Generate Snap with the following:
    • Specify the Knowledge base ID which you need to query.
    • Specify the Prompt as "what is the number of Federal fires in 2018?"
    • Specify the Model to which you have access to.

    Agent Retrieve and Generate Snap Configuration

  2. On validation, the Snap retrieves the data about the number of Federal fires in 2018 and the references relevant to the prompt. It also generates a Session ID to continue the conversation.

    Agent Retrieve and Generate Snap Output

  3. To continue the conversation, copy the Session ID from the output and paste it in the Session ID field of the Snap and update the Prompt to "what is the numbe of Federal fires in the next year?"
    Amazon Titan Embedder Snap Configuration

    On validation, the Snap retrieves the data about the number of wild fires in 2019.
    Amazon Titan Embedder 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.