Text-specific embedding helpers. Currently sentence-transformer-shaped (input names: input_ids, attention_mask, token_type_ids; output: last_hidden_state, mean-pooled against the attention mask).
Text-specific embedding helpers. Currently sentence-transformer-shaped (input names: input_ids, attention_mask, token_type_ids; output: last_hidden_state, mean-pooled against the attention mask).
(embed {:keys [runtime tokenizer]} text)Generate an embedding (float[]) for text via mean-pooling.
deps is a map of {:runtime <Session>, :tokenizer <Tokenizer>}.
Generate an embedding (float[]) for `text` via mean-pooling.
`deps` is a map of {:runtime <Session>, :tokenizer <Tokenizer>}.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |