James MacQuillan commited on
Commit
6b19354
·
1 Parent(s): fca837c
Files changed (3) hide show
  1. app.py +1 -1
  2. healthcheck.txt +20 -1
  3. search_requirements.txt +4 -1
app.py CHANGED
@@ -241,7 +241,7 @@ examples = [
241
  ["What companies report earnings this week"],
242
  ["write me a health check on adobe"],
243
  ["Analyze the technical indicators for Apple"],
244
- ["Build an intrinsic value model for Apple"],
245
  ["Make a table of Apple's stock price for the last 3 days"],
246
  ["What is Apple's PE ratio and how does it compare to other companies in consumer electronics"],
247
  ["How did Salesforce perform in its last earnings?"],
 
241
  ["What companies report earnings this week"],
242
  ["write me a health check on adobe"],
243
  ["Analyze the technical indicators for Apple"],
244
+ ["give me the current sentiment score for Apple"],
245
  ["Make a table of Apple's stock price for the last 3 days"],
246
  ["What is Apple's PE ratio and how does it compare to other companies in consumer electronics"],
247
  ["How did Salesforce perform in its last earnings?"],
healthcheck.txt CHANGED
@@ -169,4 +169,23 @@ A Recommendation Statement, if necessary, for areas needing attention.
169
 
170
 
171
  SMART SHEET OBJECTIVE:
172
- ANALYSE THE NEWS BROUGHT IN ON THE TOPIC IN IMMENSE DETAIL, ANALYSING EVERYTHING AND SIMULATING POSSIBLE OUTCOMES(WHERE NECCESSARY), EXPLAIN THE IMPLICATIONS OF THE NEWS AND WHAT MAY HAPPEN BECAUSE OF IT, ANALYSE IT IN DEPTH.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
 
170
 
171
  SMART SHEET OBJECTIVE:
172
+ ANALYSE THE NEWS BROUGHT IN ON THE TOPIC IN IMMENSE DETAIL, ANALYSING EVERYTHING AND SIMULATING POSSIBLE OUTCOMES(WHERE NECCESSARY), EXPLAIN THE IMPLICATIONS OF THE NEWS AND WHAT MAY HAPPEN BECAUSE OF IT, ANALYSE IT IN DEPTH.
173
+
174
+ SENTIMENT SCORE OBJECTIVE:
175
+ Analyze the retrieved data to produce a Quantineuron sentiment score for [Company Name] on a scale from 0 to 100, where 100 indicates very positive sentiment and 0 indicates very negative sentiment.
176
+
177
+ 1. **Identify Segments**: Divide the retrieved text into sections for news, social media, and analyst opinions based on context cues such as "news," "analyst," "social media," "Twitter," "buy," "sell," or "forecast."
178
+ 2. **Sentiment Scoring**:
179
+ - **News**: Analyze sentiment in news sections for positivity, negativity, or neutrality regarding the company’s stock. Assign a sentiment score for news between 0-100.
180
+ - **Social Media**: Gauge sentiment in social media mentions (if present) by analyzing terms like "bullish," "bearish," or other sentiment expressions. Score social sentiment between 0-100.
181
+ - **Analyst Opinions**: Identify sections with analyst opinions or stock ratings (e.g., "buy," "hold," "sell") and score them between 0-100 based on sentiment indicators.
182
+ 3. **Score Aggregation**:
183
+ - Aggregate the sentiment scores for each segment, assigning higher weights to news and analyst sections, and calculate an overall Quantineuron sentiment score between 0-100.
184
+ 4. **User-Friendly Output**:
185
+ - Display the Quantineuron sentiment score alongside a brief summary of key sentiment indicators (e.g., "positive analyst ratings," "mixed social media reactions").
186
+ - Optionally, provide a suggestion based on the sentiment score, e.g., "Consider this score for understanding potential market sentiment in the short term."
187
+
188
+ **Output Format**:
189
+ - "Quantineuron sentiment score for [Company Name]: [Score] out of 100."
190
+ - "Summary: [Brief sentiment highlights]."
191
+ - Optional Suggestion: "[Guidance based on sentiment]."
search_requirements.txt CHANGED
@@ -5,4 +5,7 @@ WHEN THE USER ASKS FOR A HEALTH CHECK:
5
  search for the latest metrics on the company
6
 
7
  WHEN THE USER ASKS FOR A SMART SHEET:
8
- search for the latest news on the event
 
 
 
 
5
  search for the latest metrics on the company
6
 
7
  WHEN THE USER ASKS FOR A SMART SHEET:
8
+ search for the latest news on the event
9
+
10
+ WHEN THE USER ASKS FOR A SENTIMENT SCORE:
11
+ SEARCH FOR THE SENTIMENT DATA ON THE COMPANY WHETHER THAT BE NEWS SENTIMENT, SOCIAL MEDIA SENTIMENT OR MARKET SENTIMENT TOWARDS THE STOCK