ryan0303 commited on
Commit
dd13ff8
1 Parent(s): 00c7fa8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -149,7 +149,7 @@ def initialize_llmchain(llm_model, temperature, max_tokens, top_k, vector_db, pr
149
  retriever=vector_db.as_retriever()
150
  progress(0.8, desc="Defining retrieval chain...")
151
 
152
- prompt_template_string = f'''Your task is as follows: 1. Determine if the input {user_question} is compliant with the provided {context}. 2. If the requirement is compliant, report "This requirement is compliant." 3. If the requirement is not compliant report "This requirement is not compliant." 4. If the requirement is not compliant, give the reason for non compliance and return the specific rule or guideline the requirement violates. 5. If the requirement is not compliant, report a refined version of the requirement delimited in quotes that is compliant with the provided {context}.'''
153
 
154
  # Create a PromptTemplate object
155
  prompt_template = PromptTemplate(
 
149
  retriever=vector_db.as_retriever()
150
  progress(0.8, desc="Defining retrieval chain...")
151
 
152
+ prompt_template_string = f'''Your task is as follows: 1. Determine if the input is compliant with the provided context. 2. If the requirement is compliant, report "This requirement is compliant." 3. If the requirement is not compliant report "This requirement is not compliant." 4. If the requirement is not compliant, give the reason for non compliance and return the specific rule or guideline the requirement violates. 5. If the requirement is not compliant, report a refined version of the requirement delimited in quotes that is compliant with the provided context.'''
153
 
154
  # Create a PromptTemplate object
155
  prompt_template = PromptTemplate(