Skip to content

chrisnienart/RAG_DOCUMENT_UPDATE

 
 

Repository files navigation

RPEC Mortality Analysis Application

Overview

Project Description

This is a Streamlit-based application designed for analyzing and generating sections of the Society of Actuaries' (SOA) Retirement Plans Experience Committee (RPEC) reports. It leverages Retrieval-Augmented Generation (RAG) techniques with LangChain and various AI models (such as OpenAI or Google) to process mortality data from PDFs and datasets. The app allows users to upload documents, configure hyperparameters, and generate narrative reports on topics like mortality trends during events such as the COVID-19 pandemic.

Installation

This project uses uv for faster and more reliable Python package management.

Quick Install

# Install uv globally
pip install uv

# Install dependencies using uv (from project root)
uv pip install .  # Base dependencies only

Development Installation

For development, including test dependencies:

# Install with dev dependencies
uv pip install .[dev]

Using Virtual Environment (Recommended)

# Create and activate virtual environment
uv venv  # Creates .venv by default

# Activate the environment
source .venv/bin/activate  # Linux/MacOS
# OR
.venv\Scripts\activate  # Windows

# Install dependencies in virtual environment
uv pip install .[dev]

Local Install

If uv cannot be installed globally or you prefer to install locally, you can install in the project directory.

# Windows
python -m venv venv
venv\Scripts\activate
pip install uv
uv pip install .[dev]
# Linux/MacOS
python -m venv venv
source venv/bin/activate
pip install uv
uv pip install .[dev]

Running the App

To run the app, run the following command:

streamlit run app.py

This will start the app in your default browser.

About

Generate RPEC data using RAG

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%