lasyaEd / TermsAndConditionsBot

0 stars 0 forks source link

Build the RAG Pipeline #1

Open lasyaEd opened 1 month ago

lasyaEd commented 1 month ago
  1. Model Setup (LegalBERT for Retrieval, T5 for Generation)
lasyaEd commented 1 month ago

app.py: The main entry point for running the Flask application. Import and initialize the app here.

models.py: Load and set up your models (LegalBERT and T5) and any related functions.

retrieval.py: Define functions for retrieving relevant documents using LegalBERT.

simplification.py: Define functions for simplifying text using T5.

api.py: Define your Flask API endpoints. You can import functions from the other modules here.