Simple RAG Consumption with Azure OpenAI and AI Search > Introduction to Simple RAG Consumption with Azure OpenAI and AI Search recipe
  

Introduction to Simple RAG Consumption with Azure OpenAI and AI Search recipe

The Simple Retrieval Augmented Generation (RAG) Consumption with Azure OpenAI and AI Search recipe is based on REST and SOAP APIs.
The process submits a query that is received from the user, converts it into a vector, and uses it to search for similar vectors in a database. The top K matches are retrieved, filtered by a cutoff score, and used to form a context. This context including the original query is passed to a Large Language Model (LLM) to generate and return a comprehensive response.