Skip to content

kevinc07/Causal_Anaylsis_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Casual Anaylsis

Introduction

範例圖片 The Casual Anaylsis System is a cutting-edge tool designed to streamline the process of collecting and analyzing financial data. Developed during an internship at Fubon, this system serves as a powerful interface that seamlessly connects with stock databases, news sources, and Wikipedia to gather comprehensive data for analysis.

Key Features:

  • Data Integration: The system aggregates data from various sources, providing a centralized repository for financial information.
  • Historical Event Tracking: It meticulously records historical events, allowing users to trace their impact on financial markets.
  • Causal Analysis: Employing advanced analytical techniques, the system identifies causal relationships within financial data.
  • Text-to-image: visualizarion text capabilities, it converts text into image for further analysis.
  • Financial Report Analysis: The system automates the analysis of financial reports, simplifying the evaluation of company performance.
  • Data Visualization: Through visualizations, users gain a deeper understanding of market trends and patterns.

Installation Steps

Download

  • Ensure that the folder "Causal Analysis Agent" has been successfully downloaded to your computer.

Make sure the folder contains the following files

  • app.py
  • config.py
  • demo.py
  • static folder
  • templates folder

Prerequisites

Apply for your own SERP API Key

  • Visit https://serpapi.com/plan and register for an account.
  • Once logged in, you will find your Private API Key under "Your account".

Apply for a Vector Database

  • Go to the following link (Apply on the upper right): https://www.pinecone.io/
  • Register for an account and register an API.
  1. After registration, you can create a vector database in the "Index" section (visible after entering the Pinecone official website).
  2. Click "Create Index" in the upper right corner.
  3. Set the name of the vector database (to be entered in config.py later).
  4. Set the dimension to 1536.
  5. Other settings can be left as default.
  6. After creating, go to "API keys" to get keys and the Environment.

Fill in the OpenAPI Key, SERPAPI Key, Pinecone API Keys, Environment, and Index Name

  • In config.py, fill in your own OpenAPI Key, SERPAPI Key, and Pinecone API Keys as follows:
OPEN_API_KEY = ""
serpapi = ""
pinecone_api = ""
pinecone_env = ""
pinecone_index_name = ""

Install necessary packages

  • Run the following command to install dependencies:
pip install -r requirements.txt

Install drawing package

npm install -g @mermaid-js/mermaid-cli

Open the terminal

  • Navigate the terminal path to the directory of the Causal Analysis Agent:
cd + Causal_Analysis_Agent_Folder_Path

Execution

  • Run the following command:
python app.py

Open the Website

  • Copy the link and paste it into your browser to open the website.

Begin Interacting with the Pages

Demo

System architecture flowchart

範例圖片

Event name and background introduction

範例圖片

Casual relationship flowchart

範例圖片

Event Causes (including three reasons and three effects), Future Implications, My Perspective (Generated by GPT)

範例圖片

Viewpoint Analysis (Analysis with a Specific Perspective)

範例圖片

Recent News Summary and Event Tracking

範例圖片

Related Historical Events

範例圖片

Event's Impact on Stock Prices

範例圖片

Analysis of Stock Price Trends Before and After the Event Occurred

範例圖片

Visualization of Stock Price Trends Before and After the Event Occurred

範例圖片

Changes in Financial Indicators Before and After the Event Occurred

範例圖片

Changes in Financial Indicators Before and After the Event Occurred

範例圖片

EChanges in Financial Indicators Before and After the Event Occurred

範例圖片

Other Financial Data Metrics

範例圖片

Summarized Analysis

範例圖片

Including Financial Ratio Data and Balance Sheet Data

範例圖片

Income Statement

範例圖片

Reference Links

範例圖片

Issue with Drawing Function

  • If you notice that the drawn result differs from your expectations, you can regenerate the image in the upper right corner individually.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published