Find answers from the community

s
F
Y
a
P
Updated 7 months ago

Any tips for getting 'from llama_index.

Any tips for getting 'from llama_index.core.llms.generic_utils import messages_to_prompt' to work?
I'm getting this error: ModuleNotFoundError: No module named 'llama_index.core.llms.generic_utils'.

I have done pip install -U llama-index-llms-openai llama-index-embeddings-openai llama-index-core which I saw recommended for someone else, but didn't help. I'm not finding which package I need to install to do the import. Thanks!
L
1 comment
Plain Text
from llama_index.core.base.llms.generic_utils import messages_to_prompt
Add a reply
Sign up and join the conversation on Discord