Interact with your PDF files using this OpenAI-powered chatbot. Below are the steps to set it up and start chatting with your documents.
-
Clone the Repository
- Clone this repository to your local machine.
-
Environment Setup
- Rename the file
.env.exampleto.env. - Obtain your OpenAI API key and paste it into the
.envfile.
- Rename the file
-
Install Dependencies
- Run
npm installto install all required packages.
- Run
-
Upload Your Files
- Use the endpoint
api/uploadto upload your PDF file or files.
- Use the endpoint
-
Chat with Your PDF
- Navigate to
http://localhost:3000/chat-pdf?docEmbedding=docName&question=QuestionText. - Replace
docNamewith the name of your uploaded document. - Replace
QuestionTextwith your specific question to the document.
- Navigate to
-
Feedback
- Enjoy interacting with your PDF! If this project helps you, consider leaving a ⭐️ on our GitHub repository!
For any issues or inquiries, contact us at [email protected].
Thank you for using our NODEJS LANGCHAIN OPENAI Chatbot!