Assistant always returns annotations when retrieval is active

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.

1 Like

You could try regex’ing the string out of the output, certainly worth a try.

2 Likes

import re
text = re.sub(r’【\d+†source】', ‘’, text)

2 Likes

Worked with regex, thank you!

Worked with regex, thanks!