File size: 1,373 Bytes
dcf8917
b999377
 
 
 
4d55cc7
 
 
819af17
b999377
cdc6d1f
 
 
5e2063f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
1. ~~include graphs/charts~~
2. include tables
3. fix viz insights section
4. Allow users to download the report as PDF or TXT.
5. split the code into functional modules:
   - data_loader.py β†’ Handles dataset loading (CSV, Hugging Face)
   - sql_tools.py β†’ Contains SQL-related tools and database setup
   - agents.py β†’ Defines agents and their goals
   - app.py β†’ 
6. tab 1 -- Answer to the query + visualization specific to the query asked; tab 2 -- all the visualizations for the uploaded CSV/dataset.


final report should consist of:
overview, [yearly salary trends, location + remote work impact, company size consideration] + visual insights, conclusion)



------

    # Agent for generating the main report (without Conclusion)
    report_writer = Agent(
        role="Technical Report Writer",
        goal="Summarize the analysis into a structured report with Introduction, Key Insights, and Analysis. DO NOT include any conclusion or summary.",
        backstory="Markdown report excluding Conclusion and Summary.",
        llm=llm,
    )

    # agent for generating ONLY the Conclusion
    conclusion_writer = Agent(
        role="Conclusion Specialist",
        goal="Summarize findings into a clear and concise Conclusion/Summary section.",
        backstory="An expert in crafting well-structured and insightful conclusions.",
        llm=llm,
    )