llama-cpp-python icon indicating copy to clipboard operation
llama-cpp-python copied to clipboard

AttributeError: 'Llama' object has no attribute 'embed'

Open BayramAnnakov opened this issue 3 years ago • 2 comments

I believe you forgot to change from 'embed' to 'create_embedding' in LlamaCppEmbeddings ('embed_documents' & 'embed_query')

BayramAnnakov avatar Apr 03 '23 22:04 BayramAnnakov

Fixed, sorry about that, that embedding function actually got dropped earlier but I've added it back in to fix langchain support.

You should just be able to pip install --upgrade llama-cpp-python

Let me know if that works now.

abetlen avatar Apr 03 '23 22:04 abetlen

all good now - thank you very much @abetlen !

BayramAnnakov avatar Apr 03 '23 23:04 BayramAnnakov