DrishtiSharma commited on
Commit
60d8729
·
verified ·
1 Parent(s): 66fd7c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -13
app.py CHANGED
@@ -194,29 +194,26 @@ write = Task(
194
 
195
  analyse = Task(
196
  description=(
197
- "1. Conduct a comprehensive statistical analysis of patent filing trends, innovation hot spots, and future growth projections in the transparent antenna industry.\n"
198
  "2. Identify and rank the top regions, leading assignees/companies driving innovation.\n"
199
  "3. Highlight regional innovation trends and the distribution of emerging technologies across different geographies.\n"
200
  "4. Provide actionable insights and strategic recommendations based on the data.\n"
201
- "5. Deliver structured output in a list of dictionaries with 'Category' and 'Values' fields:\n"
202
- " - 'Values' can be:\n"
203
- " a) A dictionary with counts for quantitative data (e.g., {{'Region A': 120, 'Region B': 95}}),\n"
204
- " b) A list of key items (technologies, companies, inventors), or\n"
205
- " c) Descriptive text for qualitative insights.\n"
206
  "6. Example Output Format:\n"
207
  "[\n"
208
- " {{'Category': 'Top Regions', 'Values': {{'North America': 120, 'Europe': 95, 'Asia-Pacific': 85}}}},\n"
209
- " {{'Category': 'Top Assignees', 'Values': {{'Company A': 40, 'Company B': 35}}}},\n"
210
- " {{'Category': 'Emerging Technologies', 'Values': ['Graphene Antennas', '5G Integration']}},\n"
211
- " {{'Category': 'Strategic Insights', 'Values': 'Collaborations between automotive and material science industries are accelerating innovation.'}}\n"
212
  "]\n"
213
- "7. Ensure that the output is clean, well-structured, and formatted for use in visualizations and tables."
214
  ),
215
- expected_output="A structured, well-organized dataset with numeric, list-based, and descriptive insights for comprehensive visual and tabular reporting.",
216
  agent=analyst
217
  )
218
 
219
-
220
  crew = Crew(
221
  agents=[planner, analyst, writer],
222
  tasks=[plan, analyse, write],
 
194
 
195
  analyse = Task(
196
  description=(
197
+ "1. Conduct a comprehensive statistical analysis of patent filing trends, innovation hot spots, and future growth projections in the {topic} sector.\n"
198
  "2. Identify and rank the top regions, leading assignees/companies driving innovation.\n"
199
  "3. Highlight regional innovation trends and the distribution of emerging technologies across different geographies.\n"
200
  "4. Provide actionable insights and strategic recommendations based on the data.\n"
201
+ "5. Categorize outputs as either:\n"
202
+ " - 'Data Insight' for visualizations and tables (quantitative data, trends, technologies).\n"
203
+ " - 'Key Insight' for strategic recommendations and innovation opportunities.\n"
 
 
204
  "6. Example Output Format:\n"
205
  "[\n"
206
+ " {'Category': 'Top Regions', 'Type': 'Data Insight', 'Values': {'North America': 120, 'Europe': 95}},\n"
207
+ " {'Category': 'Emerging Technologies', 'Type': 'Data Insight', 'Values': ['Transparent Conductive Films']},\n"
208
+ " {'Category': 'Strategic Insights', 'Type': 'Key Insight', 'Values': 'Collaborate with material science companies to develop advanced transparent antennas.'},\n"
209
+ " {'Category': 'Innovation Gaps', 'Type': 'Key Insight', 'Values': 'Limited patents in self-healing transparent materials present a growth opportunity.'}\n"
210
  "]\n"
211
+ "7. Ensure all data is factually accurate, verifiable, and strictly aligned with {topic}."
212
  ),
213
+ expected_output="A structured dataset combining Data Insights for comprehensive visualizations and table reporting, and Key Insights for strategic actions.",
214
  agent=analyst
215
  )
216
 
 
217
  crew = Crew(
218
  agents=[planner, analyst, writer],
219
  tasks=[plan, analyse, write],