ryan0303 commited on
Commit
2667803
1 Parent(s): 7315fc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -171,7 +171,7 @@ def initialize_llmchain(llm_model, temperature, max_tokens, top_k, vector_db, pr
171
  retriever=retriever,
172
  chain_type="stuff",
173
  memory=memory,
174
- combine_docs_chain_kwargs={"prompt": Your task is as follows: 1. Determine if the input requirement 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.},
175
  return_source_documents=True,
176
  #return_generated_question=False,
177
  verbose=False,
 
171
  retriever=retriever,
172
  chain_type="stuff",
173
  memory=memory,
174
+ combine_docs_chain_kwargs={"prompt": """Your task is as follows: 1. Determine if the input {query} 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}."""},
175
  return_source_documents=True,
176
  #return_generated_question=False,
177
  verbose=False,