Leteo
Copyright (c) 2026 Alexis Sanabria Lopez

Leteo includes implementation and behavioral compatibility work derived from
the MIT-licensed Engram project by Alan Buscaglia and contributors:

https://github.com/Gentleman-Programming/engram

The reference revision used during the Rust reimplementation was:

763a6ba432713725d6ce82a2416eec6cbd9ec94e

Engram copyright (c) 2026 Alan Buscaglia. The applicable MIT copyright and
permission notice is preserved in LICENSE.

Leteo is an independent product and is not affiliated with or endorsed by the
Engram project or Gentleman Programming.

The semantic search model is a set of files that sits beside the binary and not
inside it. Every release archive and the Docker images carry it, and any other
install fetches it with `leteo model install` from the files committed under
assets/model/ at the tag of the binary's version. The model is derived from

sentence-transformers/static-similarity-mrl-multilingual-v1
https://huggingface.co/sentence-transformers/static-similarity-mrl-multilingual-v1

which is licensed under the Apache License, Version 2.0
(https://www.apache.org/licenses/LICENSE-2.0). Leteo changed it: the embedding
table is cut to its first 256 dimensions, quantised to 8-bit integers, and the
tokenizer vocabulary and the table rows are pruned to the pieces used by the
languages Leteo supports. tools/semantic/ rebuilds those files from the
original, and tools/semantic/checksums.json records what each one hashes to.

Every archive and image that carries the model carries this notice and the full
text of the Apache License, Version 2.0, which is in LICENSES/Apache-2.0.txt; the
source and the crate hold it too.

The reader that turns a text into a vector reproduces the behaviour of the
MIT-licensed model2vec-rs crate, by Thomas van Dongen, Stéphan Tulkens and
contributors (https://github.com/MinishLab/model2vec-rs): the median token length
that turns a token budget into a character cut, the character cut applied before
tokenizing, dropping the unknown token from the ids, and mean pooling with its
normalisation. The arithmetic differs — Leteo pools over the int8 table as
stored rather than expanding it to f32 — and a test requires the two readers to
agree bit for bit. model2vec-rs is a dev-dependency, read by that test and not
linked into the released binary.

Rust dependency notices and source links are generated in
THIRD_PARTY_LICENSES.html from Cargo.lock. Leteo does not modify the MPL-2.0
dependency sources distributed through crates.io.
