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

Function llama_get_embeddings_ith

llama_cpp/llama_cpp.py:3249–3254  ·  view source on GitHub ↗

Get the embeddings for the ith sequence llama_get_embeddings(ctx) + i*n_embd

(
    ctx: llama_context_p, i: Union[ctypes.c_int32, int], /
)

Source from the content-addressed store, hash-verified

3247 ctypes.POINTER(ctypes.c_float),
3248)
3249def llama_get_embeddings_ith(
3250 ctx: llama_context_p, i: Union[ctypes.c_int32, int], /
3251) -> CtypesArray[ctypes.c_float]:
3252 """Get the embeddings for the ith sequence
3253 llama_get_embeddings(ctx) + i*n_embd"""
3254 ...
3255
3256
3257# // Get the embeddings for a sequence id

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…