When the system prompt is overwritten, who are you talking to

Production already says refuse when there is no source. The notebook cell still has the old sentence. At runtime you cannot tell which version you are talking to. Assembly order is the system prompt, then retrieval, then the user. The version has to come from the argument passed in this call.