Skip to content

A full-stack Q&A chatbot built with React and Django, powered by LangChain and Hugging Face’s Meta-Llama-3-8B-Instruct model. Features a sleek, real-time chat interface for asking questions and receiving AI-generated answers, with a history-clearing option. Showcases seamless integration of AI-driven NLP with modern web development.

Notifications You must be signed in to change notification settings

akash-tk/LangChain-Q-A

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

LangChain-Q-A

A full-stack Q&A chatbot built with React and Django, powered by LangChain and Hugging Face’s Meta-Llama-3-8B-Instruct model.

Features

  • Real-time chatbot interface
  • LangChain-powered natural language processing
  • Uses Meta-Llama-3-8B-Instruct from Hugging Face
  • Simple and clean React-based UI
  • Option to clear chat history

Tech Stack

  • Frontend: React
  • Backend: Django + Django REST Framework
  • LLM Integration: LangChain + Hugging Face (Meta-Llama-3-8B-Instruct)

Getting Started

1. Clone the Repository

git clone https://github.com/your-username/LangChain-Q-A.git
cd LangChain-Q-A

2. Backend Setup (Django)

cd backend
python -m venv venv
source venv/bin/activate        # On Windows: venv\Scripts\activate
pip install -r requirements.txt

Create a .env file in the backend folder and add your Hugging Face token:

HUGGINGFACEHUB_API_TOKEN=your_token_here

Run the Django server:

python manage.py runserver

3. Frontend Setup (React)

cd ../frontend
npm install
npm start

The React app will open at http://localhost:3000.

Folder Structure

LangChain-Q-A/
├── backend/       # Django backend with LangChain logic
├── frontend/      # React frontend for the chat UI
└── README.md

License

This project is licensed under the MIT License.

Credits

About

A full-stack Q&A chatbot built with React and Django, powered by LangChain and Hugging Face’s Meta-Llama-3-8B-Instruct model. Features a sleek, real-time chat interface for asking questions and receiving AI-generated answers, with a history-clearing option. Showcases seamless integration of AI-driven NLP with modern web development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published