Simple tutorial on creating a Chatbot QnA using Gemini that can read your PDF documents
In this instruction, I use pyenv for the virtual environment and python 3.9.17. It actually works on python >= 3.9
git clone https://github.com/ardyadipta/gemini_chatbot_qna
cd gemini_chatbot_qna
pyenv virtualenv 3.9.17 gemini_chatbot
pyenv activate gemini_chatbot
pip install -r requirements.txt
-
visit https://aistudio.google.com/prompts/new_chat?pli=1
export GOOGLE_API_KEY=`<your Google API key`> echo $GOOGLE_API_KEY
streamlit run app.py