Mjlehtim commited on
Commit
4eb5b6c
·
verified ·
1 Parent(s): 5ad1d71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -722,8 +722,8 @@ def company_strategy():
722
  def financial_strategy():
723
  doc_retriever_financial = create_vector_database_financial().as_retriever()
724
  prompt_template = """<|system|>
725
- You are a seasoned attorney specilizing in financial law and legal analysis. You write expert analyses for institutional investors.
726
- Output must have sub-headings in bold font and be fluent.<|end|>
727
  <|user|>
728
  Answer the {question} based on the information you find in context: {context} <|end|>
729
  <|assistant|>"""
@@ -1061,11 +1061,11 @@ with strategies_container:
1061
  }
1062
 
1063
  if company_document:
1064
- store = create_vector_database_company().as_retriever()
1065
  if financial_document:
1066
- store = create_vector_database_financial().as_retriever()
1067
  if intercreditor_document:
1068
- store = create_vector_database_intercreditor().as_retriever()
1069
 
1070
  agent_settings = {
1071
  "max_iterations": 3,
 
722
  def financial_strategy():
723
  doc_retriever_financial = create_vector_database_financial().as_retriever()
724
  prompt_template = """<|system|>
725
+ You are a seasoned attorney specializing in financial law and legal analysis. You write expert analyses for institutional investors.
726
+ Output must have fluent sub-headings in bold font.<|end|>
727
  <|user|>
728
  Answer the {question} based on the information you find in context: {context} <|end|>
729
  <|assistant|>"""
 
1061
  }
1062
 
1063
  if company_document:
1064
+ store = create_vector_database_company()
1065
  if financial_document:
1066
+ store = create_vector_database_financial()
1067
  if intercreditor_document:
1068
+ store = create_vector_database_intercreditor()
1069
 
1070
  agent_settings = {
1071
  "max_iterations": 3,