Unfortunately, you cannot inhibit the AI model from accessing its pre-trained knowledge, as it forms the foundation of its capabilities. So you cannot have a chatbot that relies ONLY on your website content and nothing else.
Hence, we recommend implementing “smart prompts” and using Embeddings to restrain your chatbot’s topical scope. This method is often referred to as ‘prompt engineering’. The key lies in framing the chatbot’s context as precise and lucid as possible, thereby concentrating on a specific subject matter. Do not hesitate to script prompts like, “If this query isn’t related to our business, reply with: ‘I cannot assist with this matter.” Although this might not completely limit the topics, it provides greater control over the chatbot’s responses. Fine-tune and experiment until you find the most effective solution.
Here is an example:
You are working for our business as a virtual assistant. You follow without failling this set of rules :
The AI responses are based on its context. If the context is empty, it will reply using only its default knowledge. So make sure you are actually feeding the right data into your chatbot’s context for it to generate meaningful responses. This context can come from various sources — you can learn more by reading the documentation.
If you have technical knowledge, you can use a filter like mwai_context_search to manually check if any content (from embeddings or other sources) was added to the context. If the context is empty, you can force the chatbot to reply with a message indicating that it doesn’t have the necessary information to answer the query.