Skip to content

Balaji-Analytics/AI-FAQ-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– AI FAQ Assistant

AI FAQ Assistant

An intelligent FAQ chatbot built using Python, Pandas, and Streamlit that helps users find answers instantly through an interactive conversational interface.

Python Streamlit Pandas MIT License


🌐 Live Demo

πŸš€ Try the Application

πŸ”— https://ai-faq-chatbot-sxcpnkr5j7twmxvlyb6udr.streamlit.app/


πŸ“– Overview

AI FAQ Assistant is an intelligent chatbot that enables users to ask questions in natural language and receive accurate answers from a predefined FAQ knowledge base.

Unlike traditional FAQ pages that require users to manually search through long lists of questions, this chatbot automatically finds the best possible answer using multiple search strategies.

The application provides a clean, responsive, and user-friendly interface for a seamless question-answering experience.


🎯 Problem Statement

Traditional FAQ systems become difficult to use as the number of questions increases.

Users often experience:

  • Searching through lengthy FAQ pages
  • Difficulty finding relevant answers
  • Different wording than stored questions
  • Poor user experience

The AI FAQ Assistant solves these challenges by providing an intelligent conversational interface capable of understanding user intent and retrieving the most relevant answer.


πŸ’‘ Solution

The chatbot processes each user query through multiple search techniques before selecting the most appropriate response.

Instead of relying on a single search method, it combines:

  • βœ… Exact Matching
  • βœ… Fuzzy Search
  • βœ… Keyword Matching

This approach increases search accuracy while maintaining fast response times.


✨ Features

  • πŸ€– Intelligent FAQ Chatbot
  • πŸ’¬ Interactive Chat Interface
  • πŸ” Exact Question Matching
  • 🎯 Fuzzy String Matching
  • πŸ”‘ Keyword-Based Search
  • πŸ‘‹ Greeting Detection
  • ❓ Intelligent Fallback Responses
  • πŸ“Š Project Statistics
  • ⚑ Quick Questions
  • πŸ—‘οΈ Clear Chat History
  • πŸ“± Responsive User Interface

βš™οΈ Tech Stack

Technology Purpose
Python Backend Development
Streamlit Web Application
Pandas Data Processing
RapidFuzz Fuzzy Search
HTML UI Structure
CSS Styling

πŸ—οΈ System Architecture

                     User
                       β”‚
                       β–Ό
            Streamlit Chat Interface
                       β”‚
                       β–Ό
             User Question Processing
                       β”‚
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β–Ό            β–Ό            β–Ό
    Exact Match   Fuzzy Search   Keyword Search
          β”‚            β”‚            β”‚
          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                       β–Ό
           Best Matching Response
                       β”‚
                       β–Ό
                 Display Answer

πŸ“‚ Project Structure

AI-FAQ-Chatbot/
β”‚
β”œβ”€β”€ app.py
β”œβ”€β”€ faq.csv
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ README.md
β”‚
β”œβ”€β”€ images/
β”‚   β”œβ”€β”€ home.png
β”‚   β”œβ”€β”€ smart-chat.png
β”‚   β”œβ”€β”€ fallback.png
β”‚   └── sidebar.jpeg
β”‚
└── assets/

πŸ“Έ Application Screenshots

🏠 Home Page

A clean and intuitive interface where users can start interacting with the chatbot.

Home Page


πŸ’¬ Intelligent Question Answering

The chatbot combines Exact Matching, Fuzzy Search, and Keyword Matching to provide the most relevant response, even when the user makes spelling mistakes or phrases the question differently.

Smart Chat


πŸ‘‹ Greetings & Intelligent Fallback

The chatbot recognizes greetings such as Hi, Hello, and Good Morning, while also providing helpful fallback responses for unknown questions.

Fallback


πŸ“Š Interactive Sidebar

The sidebar provides:

  • ⚑ Quick Questions
  • πŸ“ˆ Project Statistics
  • πŸ€– AI Assistant Status
  • πŸ—‘οΈ Clear Chat History

Sidebar


πŸš€ Installation

Clone the Repository

git clone https://github.com/Balaji-Analytics/AI-FAQ-Chatbot.git

Navigate to the Project Folder

cd AI-FAQ-Chatbot

Install Dependencies

pip install -r requirements.txt

Run the Application

streamlit run app.py

πŸ“ˆ Future Improvements

  • 🧠 Semantic Search using Embeddings
  • πŸ€– Large Language Model Integration
  • 🌍 Multi-language Support
  • 🎀 Voice-based Interaction
  • πŸ’Ύ Conversation History
  • πŸ” User Authentication
  • ☁️ Cloud Database Integration
  • πŸ“Š Analytics Dashboard
  • πŸ”Ž AI-powered Knowledge Retrieval

πŸ‘¨β€πŸ’» Author

Balaji Murugan Nadar

πŸ”— GitHub
https://github.com/Balaji-Analytics

πŸ’Ό LinkedIn
https://www.linkedin.com/in/balaji-nadar-3830a22a5/


🀝 Contributing

Contributions, suggestions, and improvements are welcome.

If you'd like to improve this project:

  1. Fork the repository
  2. Create a new branch
  3. Commit your changes
  4. Open a Pull Request

⭐ Show Your Support

If you found this project useful, consider giving it a ⭐ on GitHub.

It helps others discover the project and motivates future improvements.


πŸ“„ License

This project is licensed under the MIT License.

About

AI FAQ Chatbot built with Python, Pandas & Streamlit featuring fuzzy search, keyword matching and an interactive chat interface.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors