An intelligent FAQ bot built using Python and Flask, designed to answer queries related to GirlScript Summer of Code (GSSoC). This bot reads FAQs from a JSON file and returns the most relevant answer using semantic similarity via string matching techniques.
- Query understanding with string matching Processing
- Cosine similarity-based matching
- Preloaded with GSSoC-related FAQs
- Easy-to-extend question-answer pairs
- REST API endpoint for integration
- User enters a query.
- The bot computes the cosine similarity between the query and all known questions.
- Returns the most semantically similar answer from the dataset.
- Node.js
Clone the repository:
git clone https://github.com/abdulwasaeee/gssocFAQ-Bot.git
cd gssocFAQ-Bot
Install the dependencies:
npm install
Start the Flask server:
node ./index.js
For Docs website of bot Navigate to:
http://localhost:3000/docs
Edit the faq.json
file and add more question-answer pairs in the same format:
{
"questions": [
{
"question": "What is GSSoC?",
"answer": "GirlScript Summer of Code is a 3-month open-source program conducted by GirlScript Foundation."
}
]
}
Contributions are welcome! Please fork the repository and submit a pull request.
Steps:
- Fork the repo
- Create your feature branch (
git checkout -b feature/YourFeature
) - Commit your changes (
git commit -m 'Add commit msg'
) - Push to the branch (
git push origin feature/YourFeature
) - Open a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.
If you found this helpful, consider starring the repository to show your support!