Spaces:
Paused
Paused
Shreyas094
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -481,15 +481,30 @@ def calculate_relevance_score(summary, model):
|
|
481 |
input_variables=["summary"],
|
482 |
template="""You are a financial analyst tasked with providing a relevance score to news summaries.
|
483 |
The score should be based on the financial significance and impact of the news.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
484 |
Use the following scoring guide:
|
485 |
- 0.00-0.20: Not relevant to finance or economics
|
486 |
- 0.21-0.40: Slightly relevant, but minimal financial impact
|
487 |
- 0.41-0.60: Moderately relevant, some financial implications
|
488 |
-
- 0.61-0.80: Highly relevant, significant financial impact
|
489 |
- 0.81-1.00: Extremely relevant, major financial implications
|
490 |
-
|
491 |
Provide a score between 0.00 and 1.00, where 0.00 is not relevant at all, and 1.00 is extremely relevant from a financial perspective.
|
492 |
-
|
493 |
Summary: {summary}
|
494 |
|
495 |
Relevance Score:"""
|
|
|
481 |
input_variables=["summary"],
|
482 |
template="""You are a financial analyst tasked with providing a relevance score to news summaries.
|
483 |
The score should be based on the financial significance and impact of the news.
|
484 |
+
|
485 |
+
Consider the following factors when assigning relevance:
|
486 |
+
- Earnings reports and financial performance
|
487 |
+
- Debt issuance or restructuring
|
488 |
+
- Mergers, acquisitions, or divestments
|
489 |
+
- Changes in key leadership (e.g., CEO, CFO)
|
490 |
+
- Regulatory changes or legal issues affecting the company
|
491 |
+
- Major product launches or market expansion
|
492 |
+
- Significant shifts in market share or competitive landscape
|
493 |
+
- Macroeconomic factors directly impacting the company or industry
|
494 |
+
- Stock price movements and trading volume changes
|
495 |
+
- Dividend announcements or changes in capital allocation
|
496 |
+
- Credit rating changes
|
497 |
+
- Material financial events (e.g., bankruptcy, major contracts)
|
498 |
+
|
499 |
Use the following scoring guide:
|
500 |
- 0.00-0.20: Not relevant to finance or economics
|
501 |
- 0.21-0.40: Slightly relevant, but minimal financial impact
|
502 |
- 0.41-0.60: Moderately relevant, some financial implications
|
503 |
+
- 0.61-0.80: Highly relevant, significant financial impact
|
504 |
- 0.81-1.00: Extremely relevant, major financial implications
|
505 |
+
|
506 |
Provide a score between 0.00 and 1.00, where 0.00 is not relevant at all, and 1.00 is extremely relevant from a financial perspective.
|
507 |
+
|
508 |
Summary: {summary}
|
509 |
|
510 |
Relevance Score:"""
|