PDF-GPT represents a sophisticated platform seamlessly integrating artificial intelligence and document analysis, elevating the nuances of your PDF exploration. Upon uploading your document, a gateway to insightful conversations and revelations is unlocked. This innovative platform leverages the streamlit library, langchain, and the openai API to deliver a refined user experience.
- Create a Python Virtual Environment
python -m venv venv
- Activate the Virtual Environment
- On Windows
.\venv\Scripts\activate
- On macOS/Linux
source venv/bin/activate
- On Windows
- Install requirements
pip install -r requirements.txt
- Create an '.env' file
OPENAI_API_KEY=your_openai_api_key_here
- Run the app
streamlit run app.py
I also added a script that makes it possible to interact with any open source model (freely available from huggingface and supplied to lm studio). check out this link
The script is called chat.py
and can be run with the following command:
python3 chat.py