Promptify
Promptify copied to clipboard
Relation extraction not working
Hi @monk1337,
I guess something in text_input parameter of nlp_prompter changed after the recent updates you made.
Check the attached screenshot, which I tried on your few shot example.
Hi, You have to pass the template and model in Prompter and in fit function you provide the sentence.
example
prompter = Prompter(model=model, template = 'relation_extraction.jinja')
output = prompter.fit(text_input = sentence, domain = "medical", labels = None)
Thanks @monk1337, this works.
Any plans to include langchain's get_openai_callback() method to get the token and cost information.
doesn't the raw openai call provide that anyways?