promptslab / Promptify

Prompt Engineering | Prompt Versioning | Use GPT or other prompt based models to get structured output. Join our discord for Prompt-Engineering, LLMs and other latest research
https://discord.gg/m88xfYMbK6
Apache License 2.0
3.21k stars 238 forks source link

jinja2.exceptions.TemplateNotFound: relation_extraction.jinja #80

Open Zanejins opened 1 year ago

Zanejins commented 1 year ago

First I install this promptify using the below command

pip3 install git+https://github.com/promptslab/Promptify.git

Then, I want to use the relation extraction model by the below code

 result = nlp_prompter.fit('relation_extraction.jinja',
                              domain='clinical',
                              text_input=sentence)

However, I met this error 'jinja2.exceptions.TemplateNotFound: relation_extraction.jinja'

I debuged and found that there is really no such model, as showed in the below figure.

image

What I should do to solve this problem. Thank you!