This Streamlit application loads data from the Wikipedia page about the 2024 Indian Premier League (IPL) and allows you to ask questions about it. The application utilizes GPT-4 to answer your queries about IPL.
- Loads information from the Wikipedia page about the 2024 IPL.
- Allows users to ask questions about the 2024 IPL.
- Provides answers using the GPT-4 language model.
- Python 3.11
- OpenAI API Key (Get your API key from OpenAI)
git clone "https://github.com/ishaan-bhalla/Gpt-4o_RAG"
cd Gpt-4o_RAG
Using Conda:
conda create --name environment_name python==3.11
conda activate environment_name
Using venv:
python -m venv environment_name
source environment_name/bin/activate # On Windows use `environment_name\Scripts\activate`
pip install -r requirements.txt
Create a .env
file in the root directory of the project and add your OpenAI API key:
echo "OPENAI_API_KEY=your_openai_api_key_here" > .env
Run the following command to start the Streamlit application:
streamlit run app.py
Open the provided local URL in a web browser to interact with the application.
- Enter your question about the 2024 IPL in the provided text area.
- The application will fetch and display the answer using GPT-4.