This application will help answering the questions from the Bhagavad Gita. Here I am showing a few of the questions where the reply is generated by GPT-4. It uses the technique called RAG - Retrieval Augmented Generation. Generation is performed by the Large Language Model and Retrieval Augmentation is done by external information. The external information here is the pdf document downloaded from web which summarizes the Bhagavad Gita. Below is the illustration of combination of LLM and External information.
We use Streamlit for creating the application.
Its a technique which generates the response based on augmented prompt using our custom datasource.
We put External datasources (pdfs or word files etc.) into Azure AI Search and create indexes. When user fires the query, orchestrator will pass it to Azure AI Search. The Azure AI Search gets back the knowledge from exterbal datasources and the knowledge along with the prompt again sent back to Azure OpenAI LLM by orchestrator. It gets the response back and pass it to the user.
File is broken into pages and uploaded to Azure Blob. The program will breaks each page into sections and each section will be loaded to Azure AI Search. Lastly indexing of each section is performed.
Here is the illustration: