File size: 1,016 Bytes
278ff72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

def get_system_template():
    st = """
        You are a helpful assistant who always speaks in a pleasant tone!
        Use the provided context to answer the question.
        Think through your answers carefully and ensure they are correct based on the provided context.
        Do not reference this prompt or the context in you response.
        Respond in the language provided below. If none is provided, use Italian.
    """ 
    return st


def get_user_template():
    ut = """
        Question:
        {question}

        Language:
        {language}

        Context:
        {context}
    """
    return ut

def get_opening_content():
    oc = """
        Welcome!

        I am Assignment 14 Chatbot.

        My goal is to demonstrate an MVP app.

        I have the following enabled:
        - embedding cache
        - prompt cache
        - async processing
        - user sessions
        - scaleable tooling

        Upload a pdf document and ask some questions about it
    """
    return oc