Giter Club home page Giter Club logo

mominalix / esg-analysis-using-retrieval-augmented-generation-engine Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 10 KB

Analyse environmental, social, and governance policies for potential gaps using AI - powered by LLMs, RAG techniques, and a regulatory knowledge base using OpenAI API, LangChain, Pinecone and Streamlit.

Python 100.00%
artificial-intelligence esg lllm pinecone python retrieval-augmented-generation streamlit environmental-social-governance langchain

esg-analysis-using-retrieval-augmented-generation-engine's Introduction

ESG Policy Analyzer

This repository contains a Python-based tool that leverages Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG) to assist in the analysis of Environmental, Social, and Governance (ESG) policies.

Key Features

  • Identifies potential gaps and discrepancies between company policies and relevant ESG regulations.
  • Utilizes OpenAI's LLM for advanced text understanding and analysis generation.
  • Employs the Langchain library for flexible integration of LLMs and retrieval techniques.
  • Pinecone vector database for efficient storage and retrieval of regulations.
  • Streamlit integration for a user-friendly web interface.

Prerequisites

  • Python 3.7 or later
  • OpenAI API key
  • Pinecone API key and environment
  • A structured source of ESG regulations (e.g., JSON file, database)
  • Required Python libraries:
    • openai
    • langchain
    • streamlit
    • spacy
    • pypdf2
    • pinecone-client

Installation

  1. Clone this repository:

    git clone https://github.com/mominalix/ai-powered-esg-compliance.git
  2. Install dependencies:

    cd ai-powered-esg-compliance
    pip install -r requirements.txt 

Running the Tool

  1. Set your API keys in the ESG_assessment.py file or as environment variables.
  2. Prepare your regulations data in the supported format.
  3. Start the Streamlit application:
    streamlit run ESG_assessment.py

Usage

  1. Upload your company policy documents (PDF format).
  2. The tool will extract the policy text, analyze it against relevant ESG regulations, and highlight potential gaps or areas for improvement.

Disclaimer

This tool is intended for preliminary analysis and should not be considered a substitute for professional legal advice.

Future Development

  • Fine-tuning the LLM on ESG-specific data.
  • More sophisticated gap analysis logic using advanced NLP techniques.
  • Integration with external regulatory databases.

esg-analysis-using-retrieval-augmented-generation-engine's People

Contributors

mominalix avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

fickya1987

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.