A simple and modern LLM-powered Chatbot API built using:
- π§ Hugging Face Inference API (Meta-Llama-3-8B-Instruct)
- β‘ FastAPI β high-performance Python web framework
- π Python 3
- π python-dotenv for secure token handling
This project demonstrates how to build a lightweight R&D-style chatbot using open-source LLMs β suitable for learning, internships, and real applications.
- Command-line chatbot (
chatbot_hf.py) - FastAPI REST API server (
main.py) - Clean request/response structure using Pydantic
- Secure environment variable handling via
.env - Minimal, readable, extendable architecture
- Ready to deploy or integrate with UI / LangChain
git clone https://github.com/YOUR_USERNAME/hf-chatbot.git
cd hf-chatbot