Chatbot giving answer out of context I provided from pdf

Hi Everyone,
I have created as RAG based chat bot, but sometimes I am getting out of context answer, even though I am using temperature = 0.
Can someone explain me how can I handle this situation.

Thanks,
Yogesh

1 Like

Dear @dyogesh,

Welcome to the community.

Please send me your notebook as personal message, so that I can look into the issues.

Hi Yogesh,

Could you try to update the prompt like

Generate a response based strictly on the information present in the training data. Do not generate novel or out-of-scope answers.

And try once.

Regards,
Shiva. P

1 Like

Sure, I’ll try this.

1 Like