Jrocks
Jrocks6mo ago

Jrocks - I'm using the template "OpenAI Assista...

I'm using the template "OpenAI Assistant with Retrieval." How do I remove the source citations from the responses of OpenAI? This is problematic because this AI is intended to engage with customers, and I don't want them to see these citations.
No description
4 Replies
dhsg
dhsg6mo ago
Interested to find out as well *(using Gsheets)
Gaurav Chadha
Gaurav Chadha6mo ago
@Jrocks Did you tried adding this to the instructions to remove the citation from the response? Try by giving example: remove every expression such as [4:0source], from the response.
Jrocks
JrocksOP6mo ago
Yes, I tried that, but it doesn't work all the time, which is a problem. I was thinking more about updating the node so it filters the citation and removes it automatically. I just don't know the code or where to put it
tanx
tanx6mo ago
@Jrocks A no code way could be to add another assistant/chat node after this and ask it to “output the exact input except for when sources are present, remove the sources and the brackets surrounding them” or something like that and add the output to the following node. Or generate a node with buildships ai tool that does it with code (might take a few attempts and some experimenting)