How to restrict Assistance API for not using own knowledge base

how to restrict Assistance API for not using own knowledge base. Currently if not getting in uploaded file its give result from own knowledge base. but i want result from upladed file.

This comes down to prompt engineering – i.e., how you design the instructions for your assistant. We had to work very hard to get the behavior we wanted in this regard. What we found is that the very first line of your instructions is critical – helping the AI understand its role – which will help it understand the scope of the answers it should provide. Then you must tell it how to find the relevant content in your uploaded documents.

And you should be explicit about what it can and cannot answer. This is a lot more subtle than you might think at first. Remember that the assistant is built on a model that knows essentially everything from the internet. You need to ask yourself how it is supposed to understand what kind of questions are and are not in scope. One solution is to simply and directly explain that scope within the instructions. Another is to explain it indirectly by having it look at the content in the uploaded documents – but remember that you can’t get all of that content into the context it is going to use. Once you understand how the whole thing works, I think the light will go on and you’ll start to see how to define the scope appropriately in your use case.

1 Like

Thanks, I will try to instruct Assistance well to use only uploaded documents to answer with the help of the prompt.