= os.getenv('OPENAI_API_KEY')
oai_key print(oai_key)
your-openai-api-key
requirements.txt
filePlease reference this blog post on how to use this notebook.
This is a simple RAG chatbot built on top of Llama Index and Gradio. It allows you to upload any text or PDF files and ask questions about them! Before running this, make sure you have exported your OpenAI API key as an environment variable:
answer (message, history)
requirements.txt
file