Setup cd into scripts/rag Go to _shared.py and replace the uid variable for yours. Set os.environ['OPENAI_API_KEY'] manually on _shared.py Set your .env file in ../../.env Run streamlit run app.py Troubleshooting if you get an error related to this lines, delete memories.json and run it again. all_embeddings = np.array([item['vector'] for item in data.values()]) topic_embeddings = [openai_embeddings.embed_query(topic) for topic in topics] all_embeddings = np.vstack([all_embeddings] + topic_embeddings)