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.
- Backend: Python, LangChain
- Frontend: Chainlit
- AI Model: Phi-3-Mini-4K-Instruct via Hugging Face
- Connecting Langchain and Huggingface: ChatHuggingface class
Follow the steps below to install dependencies and run the chatbot.
Make sure you have the following installed on your system:
- Python 3.x
- Pip (Python package manager)
- Git (optional, for version control)
-
Clone the repository:
git clone https://github.com/your-username/ai-chatbot.git cd ai-chatbot
-
Install dependencies:
Run the following command to install all necessary dependencies:python3 install_dependencies.py
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.
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.
- Model used: Phi-3-Mini-4K-Instruct
- Learning and Reference resources
For questions or suggestions, feel free to reach out to: Nishtha Pant via nishthapant2024@gmail.com