Find answers from the community

Updated 6 months ago

Prompts

At a glance

The community member is experiencing an error while performing RAG (Retrieval Augmented Generation) on the meta-llama/Llama-2-7b-chat-hf model. The code was working fine a few days ago, but now the community member is unable to perform query_engine.query(). The community member tried using str(query_wrapper_prompt), which allowed the model to be downloaded, but the issue persists.

In the comments, another community member suggests that the type has changed and advises the original poster to avoid wrapping the query_wrapper_prompt with the Prompt class, and instead use something like query_wrapper_prompt = "...{query_str}...". The original poster confirms that this solution worked.

I am getting this error.
I am performing RAG on meta-llama/Llama-2-7b-chat-hf, few days ago the same code was working fine.
I tried with str(query_wrapper_prompt) the model gets downloaded but I can't perform query_engine.query().
1st image - when I keep query_wrapper_prompt as it is.
2nd image - after applying str(query_wrapper_prompt)

Any help is appreciated!
Thank you πŸ™‚.
Attachments
Screenshot_2023-08-26_at_9.13.05_PM.png
Screenshot_2023-08-26_at_9.15.56_PM.png
L
k
2 comments
Yea the type changed

Just avoid wrapping the query wrapper prompt with the Prompt class

It will just look something like `query_wrapper_prompt = "...{query_str}..."
Thanks for the help πŸ˜ƒ
It's working πŸ‘
Add a reply
Sign up and join the conversation on Discord