I suggest you configure your RAG with more than one prompt, one for DIY another for TEAM. Then you can condition which prompt to use based on the retrieved documents scores/distances.