A simple RAG chatbot that responds based on the contents of a PDF file.
- OpenAI API key
- PDF file containing your data
- Rename it as
docs.pdf
or changerag_chatbot.py
line 62 - Place in the same directory as
rag_chatbot.py
- Rename it as
pip install -r requirements.txt
OPENAI_API_KEY="your_key" streamlit run rag_chatbot.py
docker build -t langchain-practice .
docker run -e OPENAI_API_KEY="your_key" -p 8501:8501 langchain-practice
Practices based on official tutorials of LangChain