Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 1.44 KB

README.md

File metadata and controls

36 lines (19 loc) · 1.44 KB

WikiGameBot

Overview

WikiGameBot is a web application that lets you see a computer play the WikiGame, where the objective is to navigate from a starting Wikipedia topic to a target topic using as few turns as possible, relying solely on hyperlinks available on the current page for navigation.

How it Works

Embeddings

WikiGameBot utilizes HuggingFace's SentenceTransformer models to generate embeddings of Wikipedia summaries, with which cosine similarity is used to calculate the topic nearest to the target at any given page.

Cosine Similarity

To determine the next page to navigate to, WikiGameBot calculates the cosine similarity between the embedding of the target summary and the embeddings of summaries on the current page. The page with the summary that is most similar to the target summary is chosen for the next move.

Learn More

To dive deeper into how WikiGameBot was developed and explore the Python code behind it, check out the detailed article: https://medium.com/@kmaurinjones/how-i-made-a-bot-that-can-play-the-wiki-game-python-code-included-5d207254cf33

Feel free to explore the code, contribute, or provide feedback to enhance this project further!

Enjoy the WikiGame adventure!

Example

WikiGameBot

Contact

You can reach out to me via one of the following ways to connect about this project or anything else.

Email: kmaurinjones@gmail.com

LinkedIn: https://www.linkedin.com/in/kmaurinjones/