Aleksey Matsarski commited on
Commit
5a0e4ad
·
1 Parent(s): 07097fe

Add ReadMe

Browse files
Files changed (1) hide show
  1. README.md +87 -17
README.md CHANGED
@@ -1,17 +1,87 @@
1
- ---
2
- title: Financial Analysis System
3
- emoji: 💬
4
- colorFrom: yellow
5
- colorTo: purple
6
- sdk: gradio
7
- sdk_version: 5.42.0
8
- app_file: app.py
9
- pinned: false
10
- hf_oauth: true
11
- hf_oauth_scopes:
12
- - inference-api
13
- license: mit
14
- short_description: Financial analysis system
15
- ---
16
-
17
- An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Multi-Agent Financial Analysis System
2
+
3
+ ## Overview
4
+
5
+ The **Multi-Agent Financial Analysis System** is an advanced AI-driven platform designed to revolutionize the way financial data is processed and analyzed. The system employs a multi-agent architecture powered by agentic AI, leveraging specialized Large Language Models (LLMs) to analyze market news, earnings reports, and stock data. The ultimate goal is to deliver structured, actionable, and explainable investment insights for traders, investors, and financial analysts.
6
+
7
+ ## Objectives
8
+
9
+ 1. **Multi-Agent Architecture**
10
+ Design a robust multi-agent system with distinct specialized roles, including:
11
+ - News Analysis
12
+ - Earnings Report Analysis
13
+ - Market Trends Analysis
14
+
15
+ 2. **Data Integration**
16
+ Integrate real-time financial data sources such as APIs and news feeds to ensure accurate and timely analysis.
17
+
18
+ 3. **Explainable Insights**
19
+ Generate transparent and explainable investment briefs and predictions, enabling users to make informed decisions.
20
+
21
+ 4. **Autonomous Workflows**
22
+ Demonstrate autonomous capabilities by showcasing features like:
23
+ - Planning investment tasks
24
+ - Self-critique and evaluations
25
+ - Iterative workflow improvements
26
+
27
+ ## Key Features
28
+
29
+ - **Agent-Based Processing**: The system utilizes multiple specialized agents that work collaboratively on segmented tasks to provide a holistic analysis.
30
+ - **Real-Time Data Analysis**: Connects to live financial data sources and processes high volumes of data in real-time.
31
+ - **Actionable Output**: Provides structured summaries and final investment recommendations tailored to specific investment scenarios.
32
+ - **Transparency**: Investment insights are backed by clear explanations, improving trust and usability.
33
+
34
+ ## Technology Stack
35
+
36
+ The system is built using modern AI technologies centered around Large Language Models (LLMs) and integrates with financial data APIs. The architecture includes:
37
+ - Python-based agent workflows.
38
+ - Specialized modules for financial data ingestion and processing.
39
+ - Autonomous feedback mechanisms for iterative improvement and decision-making.
40
+
41
+ ## Example Workflow
42
+
43
+ Here is an example of how the system functions:
44
+ 1. A user provides a company stock ticker (e.g., `AAPL`).
45
+ 2. The system begins processing by splitting tasks across agents to analyze:
46
+ - News relevant to the stock.
47
+ - The company’s latest earnings information.
48
+ - Broader market trends impacting the stock.
49
+ 3. The agents collaborate, refine insights, and self-critique results, leading to an actionable investment recommendation.
50
+ 4. The final analysis provides:
51
+ - **News Summary**: Key relevant headlines and sentiment analysis.
52
+ - **Earnings Summary**: Insights from the latest earnings reports.
53
+ - **Market Summary**: Broader trends and their relationship to the selected stock.
54
+ - **Final Recommendation**: A structured, actionable output.
55
+
56
+ ## How to Get Started
57
+
58
+ To contribute or explore the system in action:
59
+ 1. Clone the project repository.
60
+ 2. Configure API keys and data sources as necessary.
61
+ 3. Run the main workflow function to generate insights.
62
+
63
+ ```python
64
+ from workflow.agents_workflow import build_agents_workflow
65
+
66
+ app = build_agents_workflow(llm_model_name="gpt-4o-mini")
67
+
68
+ # Example usage:
69
+ state = app.invoke({
70
+ "ticker": "AAPL",
71
+ "query": "Produce investor-ready insights for AAPL",
72
+ "news_summary": None,
73
+ "earnings_summary": None,
74
+ "market_summary": None,
75
+ })
76
+ ```
77
+
78
+ ## Roadmap
79
+
80
+ Future enhancements include:
81
+ - Expanding the agent roles to support alternative asset classes (e.g., cryptocurrencies, bonds).
82
+ - Integrating more complex sentiment and risk analysis tools.
83
+ - Implementing an intuitive web-based user interface for broader accessibility.
84
+
85
+ ## Contributions
86
+
87
+ We welcome contributions from the community! Please review the contribution guidelines and feel free to submit pull requests or issues with suggestions and improvements.