{"id":24972982,"url":"https://github.com/weaviate-tutorials/crossword-puzzle-generator","last_synced_at":"2025-03-29T06:11:02.425Z","repository":{"id":253138659,"uuid":"842571371","full_name":"weaviate-tutorials/crossword-puzzle-generator","owner":"weaviate-tutorials","description":"Jupyter notebooks to create a crossword puzzle generator","archived":false,"fork":false,"pushed_at":"2024-08-14T18:18:52.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T18:11:23.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weaviate-tutorials.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-14T16:09:35.000Z","updated_at":"2024-08-14T18:18:56.000Z","dependencies_parsed_at":"2024-08-14T18:39:34.022Z","dependency_job_id":null,"html_url":"https://github.com/weaviate-tutorials/crossword-puzzle-generator","commit_stats":null,"previous_names":["weaviate-tutorials/crossword-puzzle-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaviate-tutorials%2Fcrossword-puzzle-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaviate-tutorials%2Fcrossword-puzzle-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaviate-tutorials%2Fcrossword-puzzle-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaviate-tutorials%2Fcrossword-puzzle-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weaviate-tutorials","download_url":"https://codeload.github.com/weaviate-tutorials/crossword-puzzle-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246145079,"owners_count":20730495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-03T18:11:04.065Z","updated_at":"2025-03-29T06:11:02.399Z","avatar_url":"https://github.com/weaviate-tutorials.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crossword Puzzle Generator\n\nThis repository contains code that creates questions and answers for a topic\nthat you supply. It uses the question-answer pairs to create a crossword puzzle.\n\nYou supply an initial prompt. The code searches a vectorized collection of\nWikipedia data and generates a list of people and places that are associated\nwith the topic. The list is a list of potential puzzle answers.\n\nOnce it has the list of answers, the code searches the Wikipedia collection\nagain to create a clue for each answer.\n\nFinally, the code passes the list of clues and answers to a puzzle generator.\nThe puzzle generator creates a crossword puzzle that uses as many of the answers\nas it can fit into a puzzle grid.\n\n## Get started\n\nThere are two notebooks in the `juypter-notebooks` directory.\n\n### Setup\n\nUse `crossword-setup.ipynb` to create a collection of data based on Wikipedia.\n\nThe notebook uses the Simple English subset of the Wikipedia data set from\nCohere.\n\nThis is where the language is configured: `import_wiki_data(\"simple\", num_rows, skip_rows)`.\n\nTo import a different language, uncomment one of the other import rows or edit\nthe code to add the language name.\n\n### Generate a puzzle\n\nUse `crossword-create-puzzle.ipynb` to generate the puzzle.\n\nThe example code creates a puzzle based on the Harry Potter series. This is the\nquery prompt: `query=\"Get the name of a Harry Potter character or the name of a\nplace associated with Harry Potter\"` To change the puzzle topic, edit the query\nprompt.\n\n## Requirements\n\nThis project uses [Cohere](https://cohere.com/) for the data set and LLM. You\nneed a Cohere API key to run the code in `crossword-create-puzzle.ipynb`.\n\n## Credits\n\nThe code that generates the list of clues and answers is new.\n\nThe code that uses the list to generate a puzzle is a lightly modified version\nof the [`crossword_helmig`](https://github.com/jeremy886/crossword_helmig)\nproject.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweaviate-tutorials%2Fcrossword-puzzle-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweaviate-tutorials%2Fcrossword-puzzle-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweaviate-tutorials%2Fcrossword-puzzle-generator/lists"}