Embedder

One image+text embedding model: photos and queries land in the same space.

Inheritors

Properties

Link copied to clipboard
abstract val dim: Int

Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun embedImage(bitmap: Bitmap): FloatArray

L2-normalized, so a dot product is the cosine similarity.

Link copied to clipboard
abstract fun embedText(query: String): FloatArray