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
I create xxx.jinja as my own templates, then I tried theses code:
prompt = nlp_prompter.generate_prompt('business_analysis.jinja', text_input="GMV下降的原因", domain="business analysis" ) print(prompt) sentence="GMV下降的原因" result = nlp_prompter.fit('business_analysis.jinja',domain='business analysis',text_input=sentence, labels=None) print(result)
here is the question, the "generate_prompt" and "fit" function can't find this template, I tried the absolute path, and even put this template along with the templates of Promptify
I create xxx.jinja as my own templates, then I tried theses code:
prompt = nlp_prompter.generate_prompt('business_analysis.jinja', text_input="GMV下降的原因", domain="business analysis" ) print(prompt) sentence="GMV下降的原因" result = nlp_prompter.fit('business_analysis.jinja',domain='business analysis',text_input=sentence, labels=None) print(result)
here is the question, the "generate_prompt" and "fit" function can't find this template, I tried the absolute path, and even put this template along with the templates of Promptify
Could you please do me a favor