Overview of Azure OpenAI, Pinecone, and Chainlit PDF QA App
mainThis application provides a question-answering service for PDF documents. It uses a RAG (Retrieval-Augmented Generation) pattern:
- PDF Processing: PDF files are chunked into text segments.
- Embedding & Indexing: Chunks are converted into embeddings using Azure OpenAI's
text-embedding-ada-002and stored in a Pinecone vector store. - Question Answering: When a user asks a question, the app retrieves relevant chunks from Pinecone and uses an Azure OpenAI language model (e.g.,
gpt-35-turbo-16k) to generate an answer with source transparency.