Skip to content

reverg/langchain-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

langchain-practice

RAG Chatbot

A simple RAG chatbot that responds based on the contents of a PDF file.

How to run

Requirements

  • OpenAI API key
  • PDF file containing your data
    • Rename it as docs.pdf or change rag_chatbot.py line 62
    • Place in the same directory as rag_chatbot.py

Local environment

pip install -r requirements.txt
OPENAI_API_KEY="your_key" streamlit run rag_chatbot.py

Using Docker

docker build -t langchain-practice .
docker run -e OPENAI_API_KEY="your_key" -p 8501:8501 langchain-practice

Tutorials

Practices based on official tutorials of LangChain

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published