Skip to content

🏏 2024 IPL Information and Q&A This Streamlit application leverages GPT-4 to provide answers to user queries about the 2024 Indian Premier League (IPL). It fetches data from the Wikipedia page of the 2024 IPL, allowing users to interactively ask questions and receive accurate information.

Notifications You must be signed in to change notification settings

ishaan-bhalla/Gpt-4o_RAG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏏 2024 IPL Information and Q&A

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.

Features

  • 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.

Prerequisites

  • Python 3.11
  • OpenAI API Key (Get your API key from OpenAI)

Installation

Clone the repository

git clone "https://github.com/ishaan-bhalla/Gpt-4o_RAG"
cd Gpt-4o_RAG

Create a virtual environment

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`

Install dependencies

pip install -r requirements.txt

Set up OpenAI API Key

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

Running the Application

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.

Usage

  • Enter your question about the 2024 IPL in the provided text area.
  • The application will fetch and display the answer using GPT-4.

Acknowledgements

About

🏏 2024 IPL Information and Q&A This Streamlit application leverages GPT-4 to provide answers to user queries about the 2024 Indian Premier League (IPL). It fetches data from the Wikipedia page of the 2024 IPL, allowing users to interactively ask questions and receive accurate information.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages