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.example
to.env
. - Obtain your OpenAI API key and paste it into the
.env
file.
- Rename the file
-
Install Dependencies
- Run
npm install
to install all required packages.
- Run
-
Upload Your Files
- Use the endpoint
api/upload
to 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
docName
with the name of your uploaded document. - Replace
QuestionText
with 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!