MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / llama_get_embeddings

Function llama_get_embeddings

llama.cpp:10691–10693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10689}
10690
10691float * llama_get_embeddings(struct llama_context * ctx) {
10692 return ctx->embedding.data();
10693}
10694
10695const char * llama_token_get_text(const struct llama_model * model, llama_token token) {
10696 return model->vocab.id_to_token[token].text.c_str();

Callers 2

mainFunction · 0.50
send_embeddingMethod · 0.50

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected