Getting responses which doesn't available in the provided context

Hello Everyone

We have tried created a chat bot that can provide the information based on the provided context. It is able to give answers based on document which is provided.
But Questions like writing programs and some other types of questions are answered from outside the context.
Is there any way we can restrict the Chat GPT model, so this will give the answer from the context only?

Followed this link:

1 Like

You can only try prompting it better, but there is no absolute way to prevent it from tapping into it’s pretrained knowledge.