# Generative AI Application This is a simple generative AI application built using OpenAI's GPT model, Gradio for the user interface, and tools for Wikipedia and Tavily web search. ## Features - Chat with OpenAI's GPT model. - Use Wikipedia for quick information retrieval. - Use Tavily for web search. ## Setup Instructions ### Prerequisites - Python 3.10 or higher - `uv` for package management ### Installation cd CAS_generative_AI ``` 2. Copy the `.env.example` file to `.env` and fill in your API keys: ``` 3. Install dependencies using `uv`: ```bash uv install ``` ### Running the Application This is a simple generative AI application built using OpenAI's GPT model, Gradio for the user interface, and tools for Wikipedia and Tavily web search. **API keys are managed via a `.env` file and loaded automatically using `python-dotenv`.** ```bash python app.py ``` The app will be available at `http://0.0.0.0:7860`. ## Configuration All configurations are stored in `config.yaml`. Update this file to modify settings such as API keys, model parameters, and tool options. ## Tools ### Wikipedia Tool - Retrieves summaries from Wikipedia. - Configurable language and number of sentences. ### Tavily Tool - Performs web searches using the Tavily API. - Configurable search depth and result limits. ## License This project is licensed under the MIT License.