A Streamlit app featuring various LLM-based Generative AI chatbots designed to interact with users in different ways.
-
AskBot.py
: The main entry point of the app. This is the initial UI you see when you launch the app, providing a basic chatbot where you can ask queries. -
.env
: Contains environmental variables, including API keys required for accessing various services. -
requirements.txt
: Lists all the dependencies and modules needed for the project. -
pages/1_ChatBot.py
: A chatbot accessible from the sidebar UI. This bot can engage in conversations and remember context. -
pages/2_PDF-Bot.py
: A specialized bot that allows you to upload a PDF file and ask questions related to its content. -
pages/3_Tool-Bot.py
: A tool/function calling bot that use google generative AI function calling to tell current weather and news.
-
Ensure Python is installed on your machine.
-
Clone the project repository or download the zip file.
-
Open the project folder in VS Code or any other IDE.
-
Create a virtual environment using:
python -m venv <name_of_virtual_environment>
-
Activate the virtual environment:
- On Windows:
.\<name_of_virtual_environment>\Scripts\activate
- On macOS/Linux:
source <name_of_virtual_environment>/bin/activate
- On Windows:
-
Install project dependencies:
pip install -r requirements.txt
-
Create Accounts on the following platforms:
Generate your personal API keys or tokens on all platforms.
-
Configure API Keys:
- Copy your Hugging Face API token, Cohere API key, and LangChain API key.
- Open the
.env
file and replace"your HuggingFace API key"
,"your Cohere API key"
,"your LangChain API key"
,"your Google API key"
and"your WeatherMap API key"
with your actual keys or token as strings. Save the changes.
-
Run the App: Ensure you are in the project directory and execute:
streamlit run AskBot.py
-
the App will launch automatically in the browser.
-
If not you will get a
http://localhost:port
link in the terminal, just open that link in the browser.