This is a Python-based chatbot that fetches information from Wikipedia based on user queries. Using the Wikipedia library, the chatbot provides concise answers and handles errors gracefully, such as disambiguation pages or missing articles. It offers a conversational interface for user interaction.
- Retrieves information from Wikipedia based on user input.
- Handles disambiguation errors and suggests alternatives.
- Handles missing pages gracefully and notifies the user.
- Simple and interactive conversational interface.
wikipedia: Python library to fetch content from Wikipedia.Python: The programming language used to implement this project.
- User Query: Enter a question or topic you want to know about.
- Wikipedia Search: The chatbot searches Wikipedia for the query.
- Response: Provides a summarized answer or notifies if there are issues like disambiguation or missing pages.
- Python 3.6 or higher
- Jupyter Notebook (for running the
.ipynbfile)
-
Clone the repository:
git clone https://github.com/sanketjadhav09/Wikipedia-Chatbot.git cd Wikipedia-Chatbot -
Install the required libraries:
!pip install wikipedia -
Run the program:
Wikipedia_Chatbot.ipynb
- Run the
Wikipedia_Chatbot.ipynbJupyter notebook file. - Follow the prompts to input your query.
- The chatbot will fetch and display information from Wikipedia.
Wikipedia-Chatbot/
βββ Wikipedia_Chatbot.ipynb # Jupyter Notebook implementation
βββ Output.png # A screenshot of the chatbot in action.
βββ LICENSE # MIT License file.
βββ README.md # Project documentation
This project is an open-source and available under the MIT LICENSE.
- Special thanks to my mentors for their guidance and support throughout the development of this project.
- This project was completed in a Jupyter Notebook Environment, which provided an interactive and efficient platform for implementation.
- Contributions are welcome! If you have ideas for improvements or additional features, feel free to fork the repository, make changes, and submit a pull request. Your contributions are greatly appreciated!
