In this repository you will find a simple web app with functionalities similar to the ChatPDF service. The purpose of this repository is twofold:
- To facilitate my university life by giving me the opportunity to ask questions about professors' handouts and learn more quickly.
- To see the potential of langchain js and learn how to use it to its full potential with a practical project.
To run the application on your PC, simply follow these simple steps:
-
Clone the repository to your PC.
git clone https://github.com/mperetto/JS-chat-over-pdf.git
-
Install all the dependencies.
npm install
-
Create a .env file with the following format and enter your OpenAI API KEY.
OPENAI_API_KEY="<YOUR-OPENAI-APIKEY>" -
Start the local server.
npm run serve
Et Voilà! Go to localhost:8080 and start using the app. 🚀