Get started with RAG using a prompt flow sample (preview)

In this tutorial, you'll learn how to use RAG by creating a prompt flow. A prompt is an input, a text command or a question provided to an AI model, to generate desired output like content or answer. The process of crafting effective and efficient prompts is called prompt design or prompt engineering. prompt flow is the interactive editor of Azure Machine Learning for prompt engineering projects. To get started, you can create a prompt flow sample, which uses RAG from the samples gallery in Azure Machine Learning. You can use this sample to learn how to use Vector Index in a prompt flow.

Important

This feature is currently in public preview. This preview version is provided without a service-level agreement, and we don't recommend it for production workloads. Certain features might not be supported or might have constrained capabilities.

For more information, see Supplemental Terms of Use for Microsoft Azure Previews.

Prerequisites

  • An Azure subscription. If you don't have an Azure subscription, create a free account.

  • Access to Azure OpenAI.

  • Enable prompt flow in your Azure Machine Learning workspace

In your Azure Machine Learning workspace, you can enable prompt flow by turn-on Build AI solutions with Prompt flow in the Manage preview features panel.

  1. Select Prompt flow on the left menu.

Screenshot showing prompt flow location.

  1. Select Create.

  2. In the Create from gallery section, select View Detail on the Bring your own data Q&A sample.

Screenshot showing view details button on the prompt flow sample.

  1. Read the instructions and select Clone to create a prompt flow in your workspace.

Screenshot showing instructions and clone button on the prompt flow sample.

  1. This opens a prompt flow, which you can run in your workspace and explore.

Screenshot showing the prompt flow sample.

Next steps

Use Azure Machine Learning pipelines with no code to construct RAG pipelines (preview)

How to create vector index in Azure Machine Learning prompt flow (preview).

Use Vector Stores with Azure Machine Learning (preview)