https://github.com/wanadzhar913/chat-with-pdfs-using-llms
Simple PDF chatbot using LangChain, OpenAI API, FAISS and Streamlit.
https://github.com/wanadzhar913/chat-with-pdfs-using-llms
faiss langchain openai-api python streamlit
Last synced: 3 months ago
JSON representation
Simple PDF chatbot using LangChain, OpenAI API, FAISS and Streamlit.
- Host: GitHub
- URL: https://github.com/wanadzhar913/chat-with-pdfs-using-llms
- Owner: wanadzhar913
- Created: 2023-07-02T04:35:09.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-12T14:01:43.000Z (10 months ago)
- Last Synced: 2025-04-13T16:12:39.922Z (6 months ago)
- Topics: faiss, langchain, openai-api, python, streamlit
- Language: Python
- Homepage:
- Size: 1.3 MB
- Stars: 5
- Watchers: 0
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://chat-with-pdfs-using-llms-kedxembo5i.streamlit.app/)
### **TLDR**
Simple PDF chatbot using LangChain, OpenAI, FAISS and Streamlit.
### **Sample User Interface**

### **Getting Started**
#### 1.0 For deploying to Steamlit Cloud
This should be pretty straightforward. Link your GitHub and Streamlit account and Streamlit's
Community Cloud should take care of the CI/CD.```{bash}
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txtstreamlit run app.py
```#### 2.0 Docker Container
If you'd like to deploy via Docker, we can get started with the below. Be sure to
set your `OPENAI_API_KEY` environment variable below!```{bash}
docker build -t simplepdfchatbot .
docker run -e OPENAI_API_KEY="" -p 8501:8501 simplepdfchatbot
```### **Resources**
- https://www.youtube.com/watch?v=dXxQ0LR-3Hg
- https://medium.com/@manasabrao2020/building-a-rag-pdf-chat-application-using-streamlit-and-langchain-3d30dc225bad
- https://docs.streamlit.io/library/api-reference/chat/st.chat_message
- https://python.langchain.com/api_reference/community/vectorstores/langchain_community.vectorstores.faiss.FAISS.html