I am trying to make a docs question answering program with AzureOpenAI and Langchain
llm = AzureOpenAI(openai_api_key=OPENAI_API_KEY, deployment_name=OPENAI_DEPLOYMENT_NAME, model_name=MODEL_NAME) # Configure the location of the PDF file. pdfReader = PdfReader('databorders.pdf') # Extract the text from the PDF file. raw_text = '' for i, page in enumerate(pdfReader.pages): text = page.extract_text() if text: raw_text += text…