MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / llama_get_embeddings

Function llama_get_embeddings

llama_cpp/llama_cpp.py:3232–3235  ·  view source on GitHub ↗

Get the embeddings for the input shape: [n_embd] (1-dimensional)

(ctx: llama_context_p, /)

Source from the content-addressed store, hash-verified

3230 "llama_get_embeddings", [llama_context_p_ctypes], ctypes.POINTER(ctypes.c_float)
3231)
3232def llama_get_embeddings(ctx: llama_context_p, /) -> CtypesArray[ctypes.c_float]:
3233 """Get the embeddings for the input
3234 shape: [n_embd] (1-dimensional)"""
3235 ...
3236
3237
3238# // Get the embeddings for the ith token. For positive indices, Equivalent to:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…