https://github.com/youssefhosni/chat-with-pdf
Step-by-Step Guide to Building a PDF-Chat App using LangChain, OpenAI API & Streamlit
https://github.com/youssefhosni/chat-with-pdf
Last synced: about 2 months ago
JSON representation
Step-by-Step Guide to Building a PDF-Chat App using LangChain, OpenAI API & Streamlit
- Host: GitHub
- URL: https://github.com/youssefhosni/chat-with-pdf
- Owner: youssefHosni
- License: mit
- Created: 2023-06-29T02:34:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-04T01:33:24.000Z (almost 2 years ago)
- Last Synced: 2025-04-30T20:05:01.166Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 549 KB
- Stars: 75
- Watchers: 3
- Forks: 20
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chat-With-Pdf
This project highlights how to leverage a ChromaDB vector store in a Langchain pipeline to create a chat with a Pdf application. You can load in a pdf based document and use it alongside an LLM without fine-tuning.
# Startup 🚀
1. Create a virtual environment `python -m venv langchainenv`
2. Activate it:
- Windows:`.\langchainenv\Scripts\activate`
- Mac: `source langchain/bin/activate'
3. Clone this repo `git clone https://github.com/nicknochnack/LangchainDocuments`
4. Go into the directory `cd LangchainDocuments`
5. Install the required dependencies `pip install -r requirements.txt`
6. Add your OpenAI APIKey to line 52 of `app.py`
7. Start the app `streamlit run app.py`
8. Load the Pdf you would like to ask questions
9. Ask questions and get the answers