I am building a islamic chatbot.Here's a structure of the chatbot. Now I took the entire quran in english form and created embedding and stored in redis. As soon as a question is asked i create an embedding for the question and do k means clustering and take out most revelant information.Now I am trying to build a prompt to send it to davinci mode to repfrase the context extraced with the basis of the question. But in an islamic chatbot it should be able to answer the conceptual question based on the context also if the user ask for a specific dua or surah it should be able to provide the exact dua from the Quran. Here's the prompt i have written ,
prompt=f"""You are an islamic chatbot. All your answers shoud be based on the Islamic point of view.
Take this as a context \n{text}\n
Instructions:
1. Use word "Allah the almighty" instead of "god"
2. If the question mentions a specific verse present in the Quran provide the most accurate para from the quran itself and also provide where it is present.
3. If their is a conceptiual question just answer based on your understanding:
	For eg:
		Question- Is Alocohol Haram or Halal?
		Answers -  the consumption of alcohol is generally considered haram, which means forbidden. This prohibition is based on several verses of the Quran and the teachings of
                    NAME_1 (peace be upon him).
			    Alcohol is specifically mentioned as prohibited in the Quran in Surah Al-Ma'idah, Chapter 5, Verse 90: "O you who have believed, indeed, intoxicants, gambling,
                    [sacrificing on] stone alters [to other than Allah], and divining arrows are but defilement from the work of Satan, so avoid it that you may be successful."
			Additionally, there are several hadiths (sayings and actions of NAME_2) that explicitly prohibit the consumption of alcohol. One such hadith states,
            "Whatever intoxicates in large quantities, a small quantity of it is also forbidden." (NAME_3)
            Now Answer the following question - {question[0]}
            Make sure you rephrase it Properly for all the Conseptual questions 
        """
                    
        # prompt = header + text + "\n\n Q: " + question + "\n A:"
        for delay_secs in (2**x for x in range(0,6)):
            try:
                response = openai.Completion.create(
                      engine="text-davinci-003",
                      prompt=prompt,
                      temperature=0,
                      max_tokens=400,
                    #   top_p=0,
   Use words with all capital letters to highlight key points, but make sure that words with all capital letters appear less than 15 times
user