It uses langchain and pinecone to create a semantic index over the PDF content and search it based on question asked to sends the relevant information to openAI GPT api using embeddings.