Hey,
My assistant keeps returning answers with annotations like 【16†source】, tried some prompt engineering to get it to not return the annotations, but to no avail.
Any way to stop it from printing annotations?
Thank you.
Hey,
My assistant keeps returning answers with annotations like 【16†source】, tried some prompt engineering to get it to not return the annotations, but to no avail.
Any way to stop it from printing annotations?
Thank you.
You could try regex’ing the string out of the output, certainly worth a try.
import re
text = re.sub(r’【\d+†source】', ‘’, text)
Worked with regex, thank you!
Worked with regex, thanks!