Skip to content

πŸ€– A Python-based chatbot that runs in the CLI and uses the Wikipedia library to return concise answers to user queries.

License

Notifications You must be signed in to change notification settings

sanketjadhav09/Wikipedia-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Wikipedia Chatbot πŸ€–πŸ“š

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.

Features 🌟

  • 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.

Screenshots πŸ“·

Chatbot Screenshot

Libraries Used πŸ“¦

  • wikipedia: Python library to fetch content from Wikipedia.
  • Python: The programming language used to implement this project.

How It Works βš™οΈ

  1. User Query: Enter a question or topic you want to know about.
  2. Wikipedia Search: The chatbot searches Wikipedia for the query.
  3. Response: Provides a summarized answer or notifies if there are issues like disambiguation or missing pages.

Prerequisites πŸ“

  • Python 3.6 or higher
  • Jupyter Notebook (for running the .ipynb file)

Setup πŸ› οΈ

  1. Clone the repository:

    git clone https://github.com/sanketjadhav09/Wikipedia-Chatbot.git
    cd Wikipedia-Chatbot
  2. Install the required libraries:

    !pip install wikipedia
  3. Run the program:

    Wikipedia_Chatbot.ipynb

Usage πŸš€

  1. Run the Wikipedia_Chatbot.ipynb Jupyter notebook file.
  2. Follow the prompts to input your query.
  3. The chatbot will fetch and display information from Wikipedia.

Project Structure πŸ—‚οΈ

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

License πŸ“„

This project is an open-source and available under the MIT LICENSE.

Acknowledgements and Contributions πŸ’‘

  • 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!

About

πŸ€– A Python-based chatbot that runs in the CLI and uses the Wikipedia library to return concise answers to user queries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published