Find answers from the community

Updated 2 months ago

Hello πŸ™‚ New here I m trying to create a

Hello πŸ™‚ New here. I'm trying to create a custom Prompt at query time. I get this error: 'Prompt' object has no attribute 'input_variables'. Any ideas?
t
L
5 comments
I looked at base.py -- is the error b/c input_variables belongs to the Prompt class v Prompt obj as its outside the init ...
How are you current defining your prompt?
straight from the example. Iimported Prompt from llama_index, defined template, then qa_template = Prompt(template)
Sorry -- now it is working. Re-installed llama-index. Thanks for responding. Not sure what was going on yesterday.
Add a reply
Sign up and join the conversation on Discord