Azure AI Building RAG Application Solution: Using Azure Open AI to generate embedding on PDF documents and executing vector quires for RAG Applicaiton
In the previous article , we have seen how to create Azure AI Search Service, Azure Open AI, and Azure Blob Storage using Azure Portal. Furthermore, we have uploaded PDF documents in the Azure Blob storage. We have seen how to create Azure AI Search Data Source, Index, and Indexer using Code. In this article, we will see the implementation of the RAG solution. As shown in Figure 1, the Step 1 is already completed in. Figure 1: RAG Application The project creation is already explained in previous article . In this article we need to modify the AzureAISearchServiceManager class. Since, we will be using the PDF documents for embedding, we need to make sure that the PDF contents from PDF documents are split and they are embedded. Step 1: Modify the AzureAISearchServiceManager class by adding method as shown in List 1. public static List<string> SplitTextContentsChunks(string text, int maxCharsPerChunk = 7000) { var chunks = new List<string>(); ...