Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -549,7 +549,7 @@ with strategies_container:
|
|
549 |
)
|
550 |
|
551 |
# LCEL Chains with memory integration
|
552 |
-
if os.path.exists(file_path)
|
553 |
financials_chain = (
|
554 |
{
|
555 |
"context": doc_retriever_financials,
|
@@ -581,7 +581,7 @@ with strategies_container:
|
|
581 |
description="Useful for answering questions about specific ESG figures, data and statistics.",
|
582 |
)
|
583 |
|
584 |
-
if os.path.exists(file_path)
|
585 |
vector_query_tool_financials = Tool(
|
586 |
name="Vector Query Engine Financials",
|
587 |
func=lambda query: query_engine_financials.query(query), # Use query_engine to query the vector database
|
@@ -602,7 +602,7 @@ with strategies_container:
|
|
602 |
vector_query_tool_ESG,
|
603 |
]
|
604 |
|
605 |
-
if os.path.exists(file_path)
|
606 |
tools.append(
|
607 |
Tool(
|
608 |
name="Financials QA System",
|
|
|
549 |
)
|
550 |
|
551 |
# LCEL Chains with memory integration
|
552 |
+
if os.path.exists(file_path):
|
553 |
financials_chain = (
|
554 |
{
|
555 |
"context": doc_retriever_financials,
|
|
|
581 |
description="Useful for answering questions about specific ESG figures, data and statistics.",
|
582 |
)
|
583 |
|
584 |
+
if os.path.exists(file_path):
|
585 |
vector_query_tool_financials = Tool(
|
586 |
name="Vector Query Engine Financials",
|
587 |
func=lambda query: query_engine_financials.query(query), # Use query_engine to query the vector database
|
|
|
602 |
vector_query_tool_ESG,
|
603 |
]
|
604 |
|
605 |
+
if os.path.exists(file_path):
|
606 |
tools.append(
|
607 |
Tool(
|
608 |
name="Financials QA System",
|