How to build Streamlit GUI to chat with Travel Recommendation RAG🚀: Python — LlamaIndex #2

Опубликовано: 24 Июль 2026
на канале: Code AI with Rok
1,532
22

In today’s tutorial, we're going to build a Streamlit graphical user interface so that we can chat with a travel recommendation RAG using LlamaIndex with an OpenAI model. I'll show you an example in Python.

⭐ Code ⭐
⦁ GitHub repository: https://github.com/rokbenko/ai-playgr...
⦁ Code for this tutorial: https://github.com/rokbenko/ai-playgr...

🙌 Support 🙌
⦁ Subscribe:    / @rokbenko  
⦁ Keep tutorials brewing: https://buymeacoffee.com/rokbenko

🌐 Profiles 🌐
⦁ GitHub: https://github.com/rokbenko
⦁ LinkedIn:   / rokbenko  
⦁ X: https://x.com/rokbenko

🎞️ Timestamps 🎞️
00:00 – Intro
00:15 – Code for this tutorial
00:30 – Install LlamaIndex and Streamlit
00:34 – Set environment variables
01:07 – App look if env variables provided vs. not provided
01:43 – App title and Streamlit session state explained
02:14 – Get the user's question, append it to the state and display it
02:29 – Set OpenAI model parameters
03:14 – If statement explained
03:24 – Load documents and create a vector index
03:44 – Perform a streaming query
04:05 – Get the assistants's answer and append it to the state
04:21 – Run the Streamlit app
04:54 – Outro

#AI #LlamaIndex #OpenAI #Streamlit #RAG