//clika-runtime/io.clika.modelverse/EmbeddingListener
EmbeddingListener
[common]
interface EmbeddingListener
The calls a text-embedding request makes on the model's worker thread, in order: onEmbeddings once with one vector per text (in the texts' order), then onDone; or onError alone when the request fails.
Functions
| Name | Summary |
|---|---|
| onDone | [common] abstract fun onDone(report: EmbeddingReport) The request ended: its facts. A canceled request ends here with EmbeddingReport.canceled true. |
| onEmbeddings | [common] abstract fun onEmbeddings(embeddings: List<FloatArray>) One vector per text, in the texts' order; every vector has the model's embedding length. |
| onError | [common] abstract fun onError(message: String) The request failed; the model's message. The request is over. |