Skip to content

This is a simple AI chatbot built using Python, LangChain, and Chainlit. The chatbot, currently a stateless conversational agent is powered by the GPT-2 model, which is exposed through the Hugging Face framework

License

Notifications You must be signed in to change notification settings

nishthapant/ai-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Chatbot

Project Description

This is a simple AI chatbot built using Python, LangChain, and Chainlit. The chatbot is powered by the Phi-3-Mini-4K-Instruct model, which is exposed through the Hugging Face framework. This chatbot maintains context during a user session making it a stateful conversational AI agent.

Tech Stack

  • Backend: Python, LangChain
  • Frontend: Chainlit
  • AI Model: Phi-3-Mini-4K-Instruct via Hugging Face

Getting Started

Follow the steps below to install dependencies and run the chatbot.

Prerequisites

Make sure you have the following installed on your system:

  • Python 3.x
  • Pip (Python package manager)
  • Git (optional, for version control)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/ai-chatbot.git
    cd ai-chatbot
  2. Install dependencies:
    Run the following command to install all necessary dependencies:

    python3 install_dependencies.py

Run the chatbot

After installing dependencies, start the chatbot by running:

python3 run.py

The chatbot will start and you can interact with it through the provided Chainlit interface.

Future Improvements

Planned enhancements include:

  • Converting this chatbot into a personal assistant by integrating a personal knowledege base to leverage the accuracy of the RAG framework.
  • Deploying the chatbot as a web service.

Acknowledgements

  1. Model used: Phi-3-Mini-4K-Instruct
  2. Learning and Reference resources

Contact

For questions or suggestions, feel free to reach out to: Nishtha Pant via nishthapant2024@gmail.com

About

This is a simple AI chatbot built using Python, LangChain, and Chainlit. The chatbot, currently a stateless conversational agent is powered by the GPT-2 model, which is exposed through the Hugging Face framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages