Loading repository data…
Loading repository data…
AkshaySatasiya / repository
This project showcases the integration of advanced AI models for query and answer generation in a chatbot, complemented by a Streamlit application for an interactive user interface. It includes multiple Jupyter notebooks, each demonstrating a different aspect of chatbot functionality using OpenAI and GEMINI models.
This project showcases the integration of advanced AI models for query and answer generation in a chatbot, complemented by a Streamlit application for an interactive user interface. It includes multiple Jupyter notebooks, each demonstrating a different aspect of chatbot functionality using OpenAI and GEMINI models. Additionally, the project features interaction with a PostgreSQL database, enabling the chatbot to retrieve and store information dynamically as part of the conversation flow.
Ensure Python and pip are installed, then clone the repository and install the required dependencies:
git clone <repository-url>
cd <project-directory>
pip install -r requirements.txt
The project includes several Jupyter notebooks and a Streamlit application. Each notebook explores different combinations of AI models for chatbot functionality:
semi_custom_final_GEMINI_OpenAI.ipynbsemi_custom_final_OpenAI.ipynbsemi_custom_final_GEMINI.ipynbsemi_custom_final.py: A web interface integrating the chatbot functionalities.Before running the application, configure the following environment variables:
OPENAI_API_KEY: Your OpenAI API Key for accessing OpenAI models.
GEMINI_API_KEY: Your Gemini API Key for accessing Gemini models.
Database connection details (db_user, db_password, db_host, db_port, db_name) in the script.
To run the notebooks, use Jupyter Notebook or JupyterLab. For the Streamlit application:
streamlit run semi_custom_final.py
This project requires the following dependencies:
Details the setup and functionalities of the Streamlit application, showcasing how it interacts with the AI models to provide a dynamic user experience.
Each notebook within the project serves a unique purpose, demonstrating various integrations and functionalities of the chatbot:
semi_custom_final_GEMINI_OpenAI.ipynb: Demonstrates a chatbot where query generation is powered by OpenAI, and response generation is handled by GEMINI. This notebook showcases the integration of two different AI models to leverage their strengths in specific areas of the chatbot's functionality.
semi_custom_final_OpenAI.ipynb: Focuses on utilizing the OpenAI model for both query generation and response formulation. It highlights how a single AI platform can be used to manage the entire chatbot interaction cycle, providing insights into the capabilities and limitations of using OpenAI exclusively.
semi_custom_final_GEMINI.ipynb: Uses the GEMINI model for both query and answer generation, exploring the potential of GEMINI in handling complete chatbot functionalities. This notebook provides a deep dive into the GEMINI model's effectiveness in understanding and responding to user queries.
Refer to the following documentation for more information on the technologies and libraries used:
Examples of usage will be provided in the respective script files, demonstrating how to interact with the database using different OpenAI and Gemini Models.
For issues related to environment setup, API keys, or database connections, refer to the respective service's documentation. For more specific problems, consider opening an issue in the project repository.
To contribute to this project, please fork the repository and submit a pull request.
This project is released under the MIT License. See the LICENSE file for more details.