This manual provides step-by-step instructions to set up and run the University Chatbot application locally.
Here's the updated version of the Prerequisites section with steps to check for Python and Visual Studio Code installations, and install them if necessary:
Before running the application, ensure you have the following:
Python Installation
The application requires Python. To check if Python is installed, run the following command in your terminal or command prompt:
python --versionIf Python is not installed, follow these steps to install it:
python --versionVisual Studio Code (VS Code)
Visual Studio Code is recommended as the code editor for this application. To check if VS Code is installed, run the following command in your terminal:
code --versionIf VS Code is not installed, follow these steps to install it:
code in the terminal.Gemini API Key
The Gemini API key is required for interacting with Generative AI. Follow these steps to obtain one:
Bing Search API Key
The Bing Search API key is required for integrating web search functionality. Follow these steps to obtain one:
Create the config.py File
To securely store your API keys, create a config.py file in the project directory and add the following code:
# config.py
GEMINI_API = "YOUR_API_KEY_HERE"
BING_API = "YOUR_API_KEY_HERE""YOUR_API_KEY_HERE" with your actual Gemini API Key and Bing API Key.app.py).Use the following command to clone the repository from your Git hosting platform (e.g., GitHub):
git clone https://github.com/manishkolla/GenAI_University_ChatbotChange your working directory to the cloned repository folder:
cd <project-directory>Make sure Python and pip are installed on your system.
python --versionor
python3 --versionpip --versionIf either is missing, download and install the latest version of Python from the official Python website.
It is recommended to use a virtual environment to isolate dependencies.
python -m venv venvvenvScriptsactivatepython3 -m venv venvsource venv/bin/activateInstall all necessary Python libraries listed in the requirements.txt file:
pip install -r requirements.txtRun the Flask application using the following command:
python app.pyOnce the application starts, it will display a local URL (usually http://127.0.0.1:5000/). Open this URL in your web browser to access the application.
You can test the application by interacting with it through the web interface or API (depending on the implementation).
http://127.0.0.1:5000/) in your browser.Once done, deactivate the virtual environment using:
deactivate