feat: Switch embed to llama_get_embeddings_seq (#1263)
* switch to llama_get_embeddings_seq * Remove duplicate definition of llama_get_embeddings_seq Co-authored-by: Andrei <abetlen@gmail.com> --------- Co-authored-by: Andrei <abetlen@gmail.com>
This commit is contained in:
parent
40c6b54f68
commit
2811014bae
1 changed files with 1 additions and 1 deletions
|
@ -814,7 +814,7 @@ class Llama:
|
|||
|
||||
# store embeddings
|
||||
for i in range(n_seq):
|
||||
embedding: List[float] = llama_cpp.llama_get_embeddings_ith(
|
||||
embedding: List[float] = llama_cpp.llama_get_embeddings_seq(
|
||||
self._ctx.ctx, i
|
||||
)[:n_embd]
|
||||
if normalize:
|
||||
|
|
Loading…
Reference in a new issue