Cheselle commited on
Commit
a42f911
·
1 Parent(s): 1444045

The RAG is a rag

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -32,9 +32,6 @@ import pymupdf
32
  # Improves the overall user experience and response quality with LLMs
33
 
34
  system_template = """\
35
- You are a kind, helpful and polite AI.
36
-
37
- Make sure that you have received a question before you respond.
38
  Use the following context to extract and synthesize information to answer the user's question as accurately as possible.
39
  Make sure that you think through each step.
40
 
@@ -42,7 +39,7 @@ If the answer is not found in the context:
42
  1. Politely inform the user that the information is not available.
43
  2. If possible, suggest where they might find more information or how they could rephrase their question for better clarity.
44
 
45
- Always aim to provide clear, concise, and helpful responses."""
46
  system_role_prompt = SystemRolePrompt(system_template)
47
 
48
  user_prompt_template = """\
@@ -52,7 +49,6 @@ Context:
52
  Question:
53
  {question}
54
 
55
- Please provide a clear and concise answer that you have thought through based on the above context.
56
  """
57
  user_role_prompt = UserRolePrompt(user_prompt_template)
58
 
 
32
  # Improves the overall user experience and response quality with LLMs
33
 
34
  system_template = """\
 
 
 
35
  Use the following context to extract and synthesize information to answer the user's question as accurately as possible.
36
  Make sure that you think through each step.
37
 
 
39
  1. Politely inform the user that the information is not available.
40
  2. If possible, suggest where they might find more information or how they could rephrase their question for better clarity.
41
 
42
+ Always aim to provide clear and helpful responses."""
43
  system_role_prompt = SystemRolePrompt(system_template)
44
 
45
  user_prompt_template = """\
 
49
  Question:
50
  {question}
51
 
 
52
  """
53
  user_role_prompt = UserRolePrompt(user_prompt_template)
54