An intelligent FAQ chatbot developed as part of the CodeAlpha Artificial Intelligence Internship Program. This project uses Natural Language Processing (NLP) techniques to understand user queries and provide the most relevant answers from a predefined FAQ dataset.
The chatbot is designed to improve information retrieval by matching user questions with stored FAQs using TF-IDF vectorization and cosine similarity. It also includes voice interaction features to enhance the user experience.
Finding accurate information quickly can be challenging when users have repetitive questions. This chatbot addresses that problem by automatically identifying the most relevant FAQ and returning the best possible answer in real time.
The application provides a clean and interactive interface built with Streamlit, making it easy for users to interact through both text and voice.
- NLP-based question understanding
- FAQ matching using TF-IDF vectorization
- Cosine similarity for accurate answer retrieval
- Interactive Streamlit web interface
- Voice-to-text support for user queries
- Text-to-speech functionality for chatbot responses
- Fast and responsive user experience
- Easy-to-maintain FAQ knowledge base
- Python
- Streamlit
- NLTK
- Scikit-learn
- TF-IDF Vectorizer
- Cosine Similarity
- Speech Recognition
- Text-to-Speech (TTS)
- The user enters a question through text or voice.
- The query is cleaned and preprocessed using NLP techniques.
- TF-IDF converts the text into numerical vectors.
- Cosine similarity compares the query with stored FAQs.
- The most relevant FAQ is identified.
- The chatbot displays the corresponding answer.
- Optionally, the answer can be spoken aloud using text-to-speech technology.
User Question
↓
Text Preprocessing
↓
TF-IDF Vectorization
↓
Cosine Similarity Matching
↓
Best FAQ Selection
↓
Chatbot Response
↓
Voice Output (Optional)
Clone the repository:
git clone https://github.com/anuragsahu-git/CodeAlpha_FAQ_Chatbot.gitNavigate to the project folder:
cd CodeAlpha_FAQ_ChatbotInstall dependencies:
pip install -r requirements.txtRun the application:
streamlit run app.pyAdd screenshots of the chatbot interface here after deployment.
Example:
- Home Screen
- Chat Interface
- Voice Interaction Feature
The objective of this project is to demonstrate the practical application of Natural Language Processing techniques for building an intelligent FAQ assistant capable of understanding user queries and providing relevant responses efficiently.
Anurag Sahu
Artificial Intelligence Intern – CodeAlpha
GitHub: https://github.com/anuragsahu-git
This project was developed for educational and internship purposes under the CodeAlpha Artificial Intelligence Internship Program.