PDF Chatbot is a Streamlit-based interactive web application that allows users to extract and chat with the content in their uploaded PDF documents. The chatbot leverages LLMs, Langchain, and NLP tools and algorithms to understand and answer user queries related to the content of the PDF documents.
Before you begin, ensure you have met the following requirements:
To install PDF Chatbot, follow these steps:
Clone the repository:
git clone https://github.com/musicalchemist/chat_with_pdfs.git
Navigate to the project directory:
cd chat_with_pdfs
Install the required packages:
pip install -r requirements.txt
PDF Chatbot uses OpenAI's language model to understand and generate responses. In order to use this service, you will need an API key from OpenAI.
To obtain the API key, follow these steps:
Navigate to OpenAI's platform.
Sign up for a new account if you don't have one or log in.
After logging in, navigate to the API section.
Here you should be able to generate a new API key.
Once you have obtained the API key, you need to store it in a .env file in your project's src directory (same directory as app.py).
The .env file should look like this:
OPENAI_API_KEY='your-api-key'
Replace 'your-api-key' with the actual API key you obtained from OpenAI.
:warning: IMPORTANT: Make sure to add
.envto your.gitignorefile to prevent it from being committed to your repository, as it contains sensitive information.
After installation, you can start using PDF Chatbot by following these steps:
Navigate to the source directory:
cd src
Run the Streamlit app:
streamlit run app.py
Open a web browser and navigate to the address provided in the console. The default address is typically http://localhost:8501.
2 commits
Python
100.0%
PDF Chatbot is a Streamlit-based interactive web application that allows users to extract and chat with the content in their uploaded PDF documents. The chatbot leverages LLMs, Langchain, and NLP tools and algorithms to understand and answer user queries related to the content of the PDF documents.
Before you begin, ensure you have met the following requirements:
To install PDF Chatbot, follow these steps:
Clone the repository:
git clone https://github.com/musicalchemist/chat_with_pdfs.git
Navigate to the project directory:
cd chat_with_pdfs
Install the required packages:
pip install -r requirements.txt
PDF Chatbot uses OpenAI's language model to understand and generate responses. In order to use this service, you will need an API key from OpenAI.
To obtain the API key, follow these steps:
Navigate to OpenAI's platform.
Sign up for a new account if you don't have one or log in.
After logging in, navigate to the API section.
Here you should be able to generate a new API key.
Once you have obtained the API key, you need to store it in a .env file in your project's src directory (same directory as app.py).
The .env file should look like this:
OPENAI_API_KEY='your-api-key'
Replace 'your-api-key' with the actual API key you obtained from OpenAI.
:warning: IMPORTANT: Make sure to add
.envto your.gitignorefile to prevent it from being committed to your repository, as it contains sensitive information.
After installation, you can start using PDF Chatbot by following these steps:
Navigate to the source directory:
cd src
Run the Streamlit app:
streamlit run app.py
Open a web browser and navigate to the address provided in the console. The default address is typically http://localhost:8501.
2 commits
Python
100.0%