Skip to content

TarushS-1996/FinGenInsights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FinGenInsights

FinGenInsights is a financial summarization tool built with Streamlit and LAMAIndex. It provides users with a convenient way to analyze financial data by summarizing and performing comparative analysis. By leveraging LAMAIndex and OpenAI API, the tool extracts insights from PDF files containing financial information and presents them in a Red-Amber-Green (RAG) format.

Table of Contents

  1. Introduction
  2. Features
  3. Installation
  4. Usage
  5. Contributing
  6. Future Plans
  7. License

Introduction

FinGenInsights aims to simplify financial analysis by providing a user-friendly interface for summarizing and analyzing financial data. With its integration of LAMAIndex and OpenAI API, the tool can extract valuable insights from PDF files containing financial reports and present them in an easily understandable format.

Features

  • Upload PDF files containing financial data for analysis.
  • Perform RAG-based summarization of financial information.
  • Generate bullet points summarizing the financial status of a specific quarter.
  • Extract important tabular data for visualization purposes.
  • Access historical financial insights by uploading PDF files to S3 buckets.

Installation

To install and run FinGenInsights locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/TarushS-1996/FinGenInsights.git
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up your OpenAI API key:
export OPENAI_API_KEY="YOUR_API_KEY"
  1. Airflow Installation

(a) Airflow Installation

To run the Airflow scripts included with FinGenInsights, you need to set up Apache Airflow. Follow these steps to install and configure Airflow:

(a). Install Airflow:

pip install apache-airflow

(b). Initialize the Airflow database:

airflow db init

(c). Create a user for Airflow:

airflow users create
--username admin
--firstname FIRST_NAME
--lastname LAST_NAME
--role Admin
--email [email protected]

(d). Start the Airflow web server:

airflow webserver --port 8080

(e). Open another terminal or command line instance and start the Airflow scheduler:

airflow scheduler

(f). Access the Airflow web interface by navigating to http://localhost:8080 in your web browser.

  1. To manage environment variables securely, you should set up a .env file in the root directory of the project. Here's how to create and configure it:

(a). Create a new file named .env in the root directory.

(b). Open the .env file in a text editor and add your environment variables:

OPENAI_API_KEY=your_openai_api_key_here
AWS_ACCESS_KEY_ID=your_aws_access_key_id_here
AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key_here
AWS_REGION=your_aws_region_here

(c). Save the file. These environment variables will be loaded automatically when the application or scripts are run.

  1. Run the application:
streamlit run mainPage.py
  1. Access the application through your web browser at http://localhost:8501.

Usage

  1. Upload PDF files containing financial data through the web interface.
  2. Wait for the analysis to complete.
  3. View the summarized insights and comparative analysis generated by the tool.
  4. Explore visualizations and download generated reports for further analysis.

Contributing

Contributions to FinGenInsights are welcome! If you'd like to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-name).
  3. Make your changes and commit them (git commit -am 'Add new feature').
  4. Push your changes to your forked repository (git push origin feature-name).
  5. Create a new pull request.

Future Plans

In future releases, we plan to implement features that allow users to upload PDF files to S3 buckets directly from the application. This will enable users to access historical financial insights and generate a better understanding of their financial progress over time.

License

This project is licensed under the MIT License.

About

LLM model for finance summarization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •