aniket-work / Build_AI_Powered_Cases_Discovery_For_Attorney_From_Scratch

Build AI-Powered Legal Case Discovery for Attorneys from Scratch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build_AI_Powered_Cases_Discovery_For_Attorney_From_Scratch

Build AI-Powered Legal Case Discovery for Attorneys from Scratch

Introduction

This project demonstrates how AI enables one-person businesses, allowing anyone to become an entrepreneur or solopreneur. By leveraging AI tools, we can now handle complex tasks that previously required multiple experts. This README guides you through setting up and running an AI-powered Market Analysis business that uses AI for property classification and management.

What's This Project About?

This project is a practical implementation of a one-person startup powered entirely by AI. It includes:

  1. A Streamlit-based frontend for a Market Analysis management website
  2. A Flask backend server that communicates with an AI model
  3. AI-powered property classification for categorizing listings
  4. A simple database system for storing property information

The project demonstrates how AI can automate tasks like property categorization, enabling efficient management of a Market Analysis business by a single person.

Why Use This Project?

  • Learn how to integrate AI into a real-world business application
  • Understand the potential of AI in streamlining business operations
  • Gain insights into building scalable, AI-powered web applications
  • Explore how tasks typically requiring teams can be handled efficiently by AI

Architecture

The project consists of the following components:

  1. Frontend: Streamlit Web Application
  2. Backend: Flask Web Server with RESTful API
  3. Services: LLM Service for property classification, Database Service for data management
  4. External Components: Groq API for LLM model access
  5. Data Storage: JSON file (company_db.json)

Prerequisites:

  • Python installed on your system.
  • A basic understanding of virtual environments and command-line tools.

Steps:

  1. Virtual Environment Setup:

    • Create a dedicated virtual environment for our project:

      python -m venv Build_AI_Powered_Cases_Discovery_For_Attorney_From_Scratch
    • Activate the environment:

      • Windows:
        Build_AI_Powered_Cases_Discovery_For_Attorney_From_Scratch\Scripts\activate
      • Unix/macOS:
        source Build_AI_Powered_Cases_Discovery_For_Attorney_From_Scratch/bin/activate
  2. Install Project Dependencies:

    • Navigate to your project directory and install required packages using pip:

      cd path/to/your/project
      pip install -r requirements.txt
  3. Run the Market Analysis AI Application

    Finally, execute the following command to start the Market Analysis AI application:

    python Legal_Cases_Indexer.py  
    # Run UI
    streamlit run Case_Discovery.py

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

About

Build AI-Powered Legal Case Discovery for Attorneys from Scratch

License:Apache License 2.0


Languages

Language:Python 100.0%