Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

🤖 CodeAlpha AI & ML FAQ Chatbot

An NLP-based FAQ chatbot developed as part of the CodeAlpha Artificial Intelligence Internship.

🚀 Live Demo

Try the chatbot online: https://huggingface.co/spaces/Thakur-sejal18/CodeAlpha_FAQChatbot

📌 Project Overview

This chatbot answers frequently asked questions related to Artificial Intelligence, Machine Learning, Deep Learning, Natural Language Processing, Computer Vision, and Chatbots.

The system uses Natural Language Processing, TF-IDF vectorization, and Cosine Similarity to find the most relevant FAQ and return its answer.

🎯 CodeAlpha Task

Task 2 – Chatbot for FAQs

Requirements Implemented

  • FAQ collection
  • NLP text preprocessing
  • TF-IDF vectorization
  • Cosine similarity
  • Similarity-based FAQ matching
  • Confidence/relevance handling
  • Interactive Gradio interface

🧠 How It Works

  1. User enters a question.
  2. The question is preprocessed.
  3. The text is converted into a TF-IDF vector.
  4. Cosine similarity is calculated against the stored FAQ questions.
  5. The most similar FAQ is selected.
  6. A relevance check prevents unrelated responses.
  7. The corresponding answer is displayed.

✨ Features

  • 🤖 AI and ML FAQ chatbot
  • 🧠 NLP-based preprocessing
  • 📊 TF-IDF vectorization
  • 🔍 Cosine similarity matching
  • 🛡️ Fallback handling for unrelated questions
  • 💬 Interactive Gradio interface
  • 📚 40 AI/ML FAQs

🛠️ Technologies Used

  • 🐍 Python
  • 🧠 Natural Language Processing (NLP)
  • 📊 Scikit-learn
  • 🔢 TF-IDF
  • 🔍 Cosine Similarity
  • 🎈 Gradio
  • 🔤 Regular Expressions

📚 FAQ Topics

The chatbot covers topics including:

  • 🤖 Artificial Intelligence

  • 🧠 AI Models

  • 📈 Machine Learning

  • 🎯 Supervised Learning

  • 🔎 Unsupervised Learning

  • 🎮 Reinforcement Learning

  • 📊 Classification

  • 📉 Regression

  • 🗂️ Training & Testing Data

  • 📚 Datasets

  • 🏷️ Features & Labels

  • 🧠 Deep Learning

  • 🔗 Neural Networks

  • 🖼️ CNN

  • ⚡ Activation Functions

  • 🔄 Backpropagation

  • 🧠 LSTM

  • 💬 Natural Language Processing

  • 📝 Text Preprocessing

  • 🔤 Tokenization

  • 📊 TF-IDF

  • 🔍 Cosine Similarity

  • 👁️ Computer Vision

  • 🖼️ Image Classification

  • 🎯 Object Detection

  • 📈 Model Evaluation

  • 🎯 Precision & Recall

  • 📋 Confusion Matrix

  • ⚠️ Overfitting & Underfitting

  • 🔄 Epochs

  • ✨ Generative AI

  • 🧠 Large Language Models (LLMs)

  • 💬 Chatbots

    🎯 Applications

This chatbot can be useful for:

  • 🎓 AI/ML learning
  • 📚 Educational assistance
  • 🤖 AI concept exploration
  • 💬 Interactive FAQ systems
  • 🧑‍💻 Beginner-friendly AI learning
  • 📖 Quick technical reference

🚀 Future Enhancements

  • 🗣️ Voice-based questions
  • 🌐 Multilingual support
  • 🧠 Advanced NLP models
  • 🤖 Transformer-based chatbot
  • 💾 Conversation history
  • 📊 User interaction analytics
  • 🔍 Larger FAQ knowledge base

🎓 Learning Outcomes

Through this project, I gained hands-on experience with:

  • Natural Language Processing
  • Text preprocessing
  • TF-IDF vectorization
  • Cosine similarity
  • Machine Learning concepts
  • FAQ-based chatbot development
  • Gradio interface development
  • Python application deployment

📁 Project Structure

CodeAlpha_FAQChatbot/ │ ├── app.py ├── requirements.txt └── README.md

👩‍💻 Author

Thakur Sejal
B.Tech — Artificial Intelligence & Machine Learning


If you found this project useful, consider giving the repository a star!

Built with 🐍 Python • 🧠 NLP • 📊 TF-IDF • 🔍 Cosine Similarity • 🎈 Gradio

About

AI-powered FAQ chatbot using NLP, TF-IDF and cosine similarity to answer Artificial Intelligence and Machine Learning questions.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages