import os # Ensure your OpenAI API key is set in the environment variables. api_key = os.getenv("OPENAI_API_KEY") os.environ["OPENAI_API_KEY"] = api_key # Directory to persist embeddings with ChromaDB PERSIST_DIRECTORY = "./chroma_db" BASE_URL = "https://courses.analyticsvidhya.com/collections?page="