Note:
- If you do not have
git
in your pc. Installgit
- You will need
Node js
andpython
installed 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.example
in thejs
folder. - Rename it to
.env
- Open the
.env
file 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
py
folder. - Look for the
.env.example
file and rename it to.env
;open it with a text editor. - You will find the following variables in the
.env
file: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
.env
folder 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.bat
file 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:5000
to use the app