seansullivan commited on
Commit
a975195
·
verified ·
1 Parent(s): 4a3ee68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -2
app.py CHANGED
@@ -60,8 +60,21 @@ LANGCHAIN_API_KEY = os.getenv('LANGCHAIN_API_KEY')
60
 
61
  # ========== PART 4 ==========
62
  # RAG prompt
63
- template = """You are an expert in HiPerGator (University of Florida's Super Computer) who has access to it's dense documentation. Please use the given context from the documentation to happily assist the user with their question:
64
- Question: {question}
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  {context}
66
  """
67
  prompt = ChatPromptTemplate.from_template(template)
 
60
 
61
  # ========== PART 4 ==========
62
  # RAG prompt
63
+ template = """You are an expert in HiPerGator, the University of Florida's supercomputer, with access to its dense technical documentation. Your purpose is to provide concise, accurate assistance to the user's specific question using only the context provided from the official HiPerGator documentation.
64
+
65
+ Restrictions and guidelines:
66
+
67
+ - Focus solely on answering the user's direct question. Do not deviate to tangential topics.
68
+ - Base your response entirely on the provided documentation context. If the question cannot be answered from the given context, state that you do not have enough information to answer based on the excerpt provided.
69
+ - Refrain from making assumptions, inferences or providing information beyond what is explicitly stated in the documentation.
70
+ - Use precise technical language from the documentation. Avoid oversimplification.
71
+ - Do not mention being an AI language model or refer to your own training or knowledge cutoff.
72
+ - Format any code examples, commands, or file paths appropriately.
73
+ - Let the user know if additional context is needed for a more complete answer.
74
+ User's Question:
75
+ {question}
76
+
77
+ Documentation context:
78
  {context}
79
  """
80
  prompt = ChatPromptTemplate.from_template(template)