Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 726 |
-
Output must have sub-headings in bold font
|
| 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()
|
| 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,
|
|
|
|
| 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,
|