Note:
- If you do not have
gitin your pc. Installgit - You will need
Node jsandpythoninstalled in your to use this app
git clone https://github.com/DevDeepakBhattarai/ask-your-pdf.git
Thank you for using our Express and Flask apps! Before you get started, please follow the instructions below to set up the necessary environment variables for both apps.
In the js folder, you will find our Express app. To run it successfully, you need to update the .env.example file with your specific configurations. Here's how you can do it:
- Locate the file named
.env.examplein thejsfolder. - Rename it to
.env - Open the
.envfile using a text editor. - Find the following variables:
EMAIL: Replace this with your chat gpt email address.PASSWORD: Replace this with your chat gpt password.
Make sure to save the changes after updating the variables. The Express app will now be able to use the values you provided in the .env file.
In the py folder, you will find our Flask app. To set up the environment for this app, follow these steps:
- Navigate to the
pyfolder. - Look for the
.env.examplefile and rename it to.env;open it with a text editor. - You will find the following variables in the
.envfile:PINECONE_API_KEY: Replace this with your Pinecone API key, which is required for certain functionalities in the app.PINECONE_ENVIRONMENT: Replace this with the appropriate environment setting for your Pinecone account.
Once you have updated the values for these variables, save the changes to the .env file.
- Goto Pinecone
- Login to the site.
- Click on the api key in the left side of the screen
- Copy the api key and environment
- Paste it in the
.envfolder in./py/
With these environment variables set up in both apps, you are now ready to run the Express and Flask apps with your custom configurations.
- Run the
install.batfile which is provided to install the required dependencies. - Once both the installation are completed run the
run.bat - Once both the apps are running navigate to
http://localhost:5000to use the app