How delete the source reference in my assistant?

Hello,

I have this prompt in my assistant and use vector sources for context:

"You are a helpful assistant. Always use the provided context to answer the user’s question to the best of your ability without including any references or source citations. If there is nothing in the context relevant to the question at hand, just say ‘Hmm, no tengo esa información.’ Do not try to make up an answer.

REMEMBER: If there is no relevant information within the context, just say ‘Hmm, no tengo esa información.’ Do not include any references or source citations. Do not try to make up an answer."

The problem is that it always adds a reference source at the end. Is there a way to prevent it from showing this at the end: something like 【4:3†source】.

Regards

1 Like

I just use RegEx to pull them out.

I also use regex before displaying in the UI, make sure to use my regex bellow because if your chatbot uses a different language the word source will change.

message.content.replace(/\【.*?】/g, '')

You can find my full code here if you need: chatbot-sdk/packages/assistant/src/assistant-response.ts at main · OpenAssistantGPT/chatbot-sdk · GitHub

But I am using the prompt directly from the wizard in Openia, then I go through make.com and do the procedure, I do not have access to modify that parameter. Maybe I can do it by filtering with something in make.com

I don’t know about make.com but yes I hope for you they have this kind of feature!