llama-cpp-d ~master (2026-03-20T18:06:26.5280947)
Dub
Repo
LlamaContext.getEmbeddingsIth
llama
ctx
LlamaContext
Embeddings for the
i
th output token (-1 = last). Returns
null
for invalid index.
struct
LlamaContext
@
trusted
@
nogc
nothrow
float
[]
getEmbeddingsIth
(
int
i
)
Meta
Source
See Implementation
llama
ctx
LlamaContext
functions
decode
encode
getEmbeddings
getEmbeddingsIth
getEmbeddingsSeq
getLogits
memoryClear
printPerf
stateGetData
stateGetSize
stateLoadFile
stateSaveFile
stateSeqGetData
stateSeqGetSize
stateSeqSetData
stateSetData
mixins
__anonymous
properties
memory
nCtx
poolingType
static functions
fromModel
Embeddings for the ith output token (-1 = last). Returns null for invalid index.