def qna_prompt():
    """ 
    prompt template for q and a type answering
    """

    template = """Given the following extracted parts of a long document ("SOURCES") and a question ("QUESTION"), create a final answer one paragraph long. 
    Don't try to make up an answer and use the text in the SOURCES only for the answer. If you don't know the answer, just say that you don't know. 
    QUESTION: {question}
    =========
    SOURCES:
    {summaries}
    =========
    ANSWER:"""
    PROMPT = PromptTemplate(template=template, input_variables=["summaries", "question"])
    return PROMPT
 
    prompt template for q and a type answering
    
examples/GPT-examples/utilities.py