VocabularyFile

The "Looks like" vocabulary as shipped with a search model (vocabulary.bin): words from Recognize Anything's tag list (Apache 2.0, cleaned up) and each one's text vector, made by this app's own text model and tokenizer (Search Lab), so they match searches exactly. Format: "LUMV", version, count, dimensions, then per word its UTF-8 text and fp16 vector.

Functions

Link copied to clipboard

The words and their vectors, or null when the file isn't there or isn't one of these.

Link copied to clipboard
fun write(file: File, words: List<String>, vectors: List<FloatArray>)