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

Possible to see the prompts it generates behind the scene? #15

Closed yogeshhk closed 1 year ago

yogeshhk commented 1 year ago

Saw NER notebook. Is it possible to see the prompt it would have generated behind the seen, especially with the few shots example with domain knowledge?

monk1337 commented 1 year ago

Yes, Instead of fit use the generate_prompt to see the prompt.

result       = nlp_prompter.generate_prompt('ner.jinja',
                          domain      = 'medical',
                          text_input  = sentence, 
                          labels      = None)
asifzubair commented 12 months ago

Has this behaviour changed ? I'm trying to use generate_prompt but it just errors out.