Skip to content

Classify mods whose description is only images #127

Open

Description

@disconsented

This issue was written by an AI assistant (Claude) from a conversation with the maintainer. Check the details before you act on them.

Problem

Some mods put all of their description in images. The classifier gets only the title and the raw BBCode description, so for these mods it gets no useful text and gives back no properties, or wrong ones.

Example: https://workshop-walker.disconsented.com/item/3815290781/Immersive-Warfare

The model (Gemma 4 E4B) supports vision, but the llama setup does not use it.

Proposed change

Server

  • Load the vision projector. Add --mmproj or --mmproj-url to the llama-server command in README.md. We use -hff, so do not rely on the automatic mmproj download.
  • Increase -c from 4096. One image costs some hundred tokens. For 3 images, use 12288 to 16384.
  • In wait_until_healthy (src/processing/llama_actor.rs), read GET /props and examine modalities.vision. If it is false, log a warning and do not send images.

Request

  • Change RequestMessage.content from &str to the OpenAI parts array (image_url parts, then a text part).
  • Send the plain https:// image URL. llama-server downloads it. Thus we do not need base64 or a new dependency. The model container must have outbound internet access.
  • Do not downscale the images. They contain text, and the model must read it.

Data flow

  • Add the image URLs to MLQueueMsg::Queue and LlamaMsg::Process.
  • Get the URLs from the [img] tags in the description, in order. Use the first 2 or 3. If there are none, use preview_url.

When to send images

  • Send images only when the description has little text after the BBCode is removed (for example, less than some hundred characters). This keeps the cost low for most items.
  • Each item now makes 2 requests (features and genres), so each image is encoded 2 times. For items with images, merge the 2 tasks into 1 request with a 4 field schema.

Prompts

  • Add a sentence to prompts/features.txt and prompts/genres.txt: if there are images, they are the mod description, and the text in them is description text.

After the change

The example item already has ml_last_run set. Queue it again with MaybeQueue and the force flag, or clear the field.

Activity

  1. added
    enhancement
    on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions