Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Hello π New here I m trying to create a
Hello π New here I m trying to create a
Inactive
0
Follow
t
tacoraj23
2 years ago
Β·
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
Share
Open in Discord
t
tacoraj23
2 years ago
from here:
https://gpt-index.readthedocs.io/en/latest/how_to/customization/custom_prompts.html
t
tacoraj23
2 years ago
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 ...
L
Logan M
2 years ago
How are you current defining your prompt?
t
tacoraj23
2 years ago
straight from the example. Iimported Prompt from llama_index, defined template, then qa_template = Prompt(template)
t
tacoraj23
2 years ago
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
Join on Discord