Chat PDF Wrote article to help understand this code. How to build your own PDF Reader Bot using OpenAI in Next.js Chat with any PDF and get answers to your content-related questions. You'll need to create .env file and provide OpenAI key in the variable OPENAI_API_KEY npm install npm run dev