com.phronemophobic.llama.util
normalize-embedding
(normalize-embedding emb)
Normalize the embedding emb
so that it matches output from llama.cpp's ./embedding example.
print-response
(print-response ctx prompt)
(print-response ctx prompt opts)
Generates a response from prompt and print the results as they become available.
Returns nil.
untokenize
(untokenize ctx tokens)
Given a sequence of tokens, return the string representation.