This repository was created as part of learning how to create RAG using langchain thru Youtube video from CampusX channel.
- Create .env file.
- Add variable
OPENAI_API_KEY
with correct value in the file. - Run command
pip install -r requirements.txt
- Run command
stremlit run app.py
- Browse
http://localhost:8501
in browser.
- Run command
docker build -t ytchatter:latest .
- Run command
docker run -e OPENAI_API_KEY=<<openaiapikey>> -p 8501:8501 ytchatter:latest
- Replace
<<openaiapikey>>
with a valid OpenAI Api key in the above command.
- Replace
- Browse
http://localhost:8501
in browser.
- Browse
http://localhost:8501
in browser. - Enter YouTube video id or YouTube Video URL in the input box and hit Enter.
- Start chatting by asking questions about the video.