--- license: cc-by-sa-4.0 --- # Genshin Impact Fandom Wiki Multimodal Dataset ## Description This dataset is a comprehensive collection of **22,162** fandom wiki pages for the popular game *Genshin Impact*. The dataset includes *markdown*-formatted content from the wiki, featuring interleaved text, as well as image, video, and audio file links. Additionally, the associated multimodal files (images, videos, and audio) have been downloaded and organized to facilitate the multimodal dataset usage. - **Text**: Markdown-formatted content from Genshin Impact fandom wiki pages, including character descriptions, lore, quest dialogues, gameplay mechanics, and more. - **Images**: In-game screenshots, character art, item icons, and other visual assets referenced in the wiki pages, mostly in `png`, `jpg` format. - **Videos**: Embedded gameplay clips, tutorials, etc, mostly in `mp4`, `gif` format. - **Audio**: Sound effects, voice lines associated with the game, mostly in `.ogg` format. ### Statistics The total number of tokens in the markdown content is **47,674,290**, as calculated by `tiktoken`. For individual markdown files, the maximum token count is 655,266, and the minimum is only 38. ## Intended Use This dataset is intended for research and development in multimodal model pretraining, fine-tuning, and game studies. Potential use cases include: - Training and evaluating multimodal models that can process and generate text, images, and audio. - Analyzing game-related content for insights into player behavior, game design, and storytelling. - Building tools for automated content generation or summarization for gaming communities. ## Dataset Structure The dataset is organized as follows: - `genshin.jsonl`: Contains markdown content as well as some meta info for each wiki page. - `images/`: Stores 184,773 downloaded multimodal files (images, videos, and audio) referenced in the markdown content. - Multimodal Distribution ``` {'ogg': 152274, 'png': 28762, 'mp4': 2515, 'gif': 422, 'other': 390, 'jpg': 332, 'svg': 44, 'jpeg': 23, 'webp': 11} ``` ### Example Each sample contains the following fields: - **url**: The source page URL - **sections**: A list of sections corresponding to the table of contents (if available) - **category**: A list of tags associated with the HTML content - **markdown**: The final markdown representation of the entire content See a case for details: ```json { "url": "https://genshin-impact.fandom.com/wiki/%22Bubbly_Kamera%22", "sections": [ { "title": "\"Bubbly Kamera\"", "level": 0, "markdown": "# \"Bubbly Kamera\"" }, { "title": "", "level": -1, "markdown": "The \"Bubbly Kamera\" is a gadget that was only obtainable by Chinese players, during the Genshin Impact x Pizza Hut collaboration of 2022.\nIt was included as a reward for certain purchases.\n\nIt allows the player to take pictures like a normal Kamera, but the printed images have a Hydro-like hue and bubbles along the borders." }, { "title": "Info Card", "level": 1, "markdown": "## Info Card\n\"Bubbly Kamera\"\n---\n\n![Item \"Bubbly Kamera\"](https://static.wikia.nocookie.net/gensin-impact/images/e/ec/Item_%22Bubbly_Kamera%22.png)" }, { "title": "Trivia", "href": "#Trivia", "level": 1, "markdown": "## Trivia\n\n* The Kamera is likely inspired by the invention of the first camera on Earth, the daguerreotype, as the Kamera originates from Fontaine, and the daguerreotype was invented in France.\n\t+ This may be reflected by the Spanish and French localizations' names for the Kamera, which are *Daguerrotipo* and *Daguerréotype*, respectively.\n* The Kamera's method of producing instant photos may be inspired by the Polaroid instant cameras.\n* The Kamera's design resembles a twin-lens reflex film camera, which has two lenses, one for viewfinder and another for taking pictures." }, { "title": "Etymology", "href": "#Etymology", "level": 2, "markdown": "### Etymology\n\n* \"Kamera\" stems from the Latin phrase \"camera obscūra,\" meaning \"dark chamber,\" and thus literally translates to \"chamber.\"" }, { "title": "Gallery", "href": "#Gallery", "level": 1, "markdown": "## Gallery\n\n![Bubbly Kamera Preview](https://static.wikia.nocookie.net/gensin-impact/images/0/09/Bubbly_Kamera_Preview.png)" }, { "title": "Other Languages", "href": "#Other_Languages", "level": 1, "ignore": true }, { "title": "Change History", "href": "#Change_History", "level": 1, "ignore": true }, { "title": "Navigation", "href": "#Navigation", "level": 1, "ignore": true } ], "category": [ "Article Stubs", "Article Stubs with Reason", "China Exclusive", "Gadgets", "Kamera Gadgets", "4-Star Items", "Reusable Gadgets", "Quick Use Gadgets", "Memento Gadgets", "Released in Version 3.0" ], "markdown": "# \"Bubbly Kamera\"\n\nThe \"Bubbly Kamera\" is a gadget that was only obtainable by Chinese players, during the Genshin Impact x Pizza Hut collaboration of 2022.\nIt was included as a reward for certain purchases.\n\nIt allows the player to take pictures like a normal Kamera, but the printed images have a Hydro-like hue and bubbles along the borders.\n\n## Info Card\n\"Bubbly Kamera\"\n---\n\n![Item \"Bubbly Kamera\"](https://static.wikia.nocookie.net/gensin-impact/images/e/ec/Item_%22Bubbly_Kamera%22.png)\n\n## Trivia\n\n* The Kamera is likely inspired by the invention of the first camera on Earth, the daguerreotype, as the Kamera originates from Fontaine, and the daguerreotype was invented in France.\n\t+ This may be reflected by the Spanish and French localizations' names for the Kamera, which are *Daguerrotipo* and *Daguerréotype*, respectively.\n* The Kamera's method of producing instant photos may be inspired by the Polaroid instant cameras.\n* The Kamera's design resembles a twin-lens reflex film camera, which has two lenses, one for viewfinder and another for taking pictures.\n\n### Etymology\n\n* \"Kamera\" stems from the Latin phrase \"camera obscūra,\" meaning \"dark chamber,\" and thus literally translates to \"chamber.\"\n\n## Gallery\n\n![Bubbly Kamera Preview](https://static.wikia.nocookie.net/gensin-impact/images/0/09/Bubbly_Kamera_Preview.png)" } ``` ### Usage The `images` directory mirrors the structure of the original URLs. For example: - **URL**: `https://static.wikia.nocookie.net/gensin-impact/images/c/c2/Item_Black_Nacre_Promo_Poster.png` - **Local file path**: `images/c/c2/Item_Black_Nacre_Promo_Poster.png` Since the original URLs are retained in the markdown content, you should replace them with the local paths before use. Note: all multimodal files, including images, videos, and sounds, are stored in the `images` folder. ## Data Collection The dataset was created by scraping publicly available Genshin Impact fandom wiki *main* pages (pages belonging to other domains such as `Talk`, `User`, `Help` are not included). The html content was parsed and then processed to markdown format, and all linked multimedia files (images, videos, and audio) were downloaded and organized into the dataset. The dataset underwent the following preprocessing steps to ensure quality and consistency: 1. **Filtering by Category**: - Pages categorized as "removed" were excluded from the dataset to ensure only active and relevant content is included. 2. **Length Filtering**: - Pages with final markdown content containing fewer than 150 characters were filtered out to remove incomplete or low-information entries. 3. **Dialogue Formatting**: - Traveller's dialogue lines are prefixed with the starter text `"Traveller:"` to standardize the format and provide context for dialogue-based content. 4. **HTML Cleaning**: - Specific rules were applied to remove noise and unnecessary content from the HTML, such as unwanted sections like `Change History`, `