LegalDocs AI is an automated document analysis system designed to streamline the processing of complex legal texts. Utilizing advanced Natural Language Processing (NLP) models, the platform facilitates the extraction of key insights, generation of concise summaries, and provision of verifiable source citations for legal contracts and court cases.
- Automated Summarization: Leverages large language models to process and summarize PDF documents with high accuracy.
- Source Citation: Implements precise page-level referencing to ensure traceability and verification of generated summaries.
- Authentication & Security: Features a secure user authentication system with robust session management.
- Document Management: Provides a persistent history of processed documents, allowing for efficient retrieval and review.
- Responsive Interface: Built on a modern React framework with TypeScript, ensuring a stable and type-safe user experience.
- Framework: FastAPI (Python) for high-performance API delivery.
- NLP Engine: LangChain integration with HuggingFace Transformers.
- Persistence: SQLAlchemy ORM with SQLite/PostgreSQL support.
- Core: React library with Vite build tool.
- Language: TypeScript for static typing and code maintainability.
- Styling: TailwindCSS for utility-first design.
- Integration: Builder.io for visual component management.
- Python 3.9+
- Node.js 16+
- Git
-
Navigate to the backend directory:
cd backend -
Initialize the Python virtual environment:
python -m venv venv
-
Activate the environment:
- Windows:
.\venv\Scripts\activate - macOS/Linux:
source venv/bin/activate
- Windows:
-
Install required dependencies:
pip install -r requirements.txt
-
Launch the application server:
uvicorn main:app --reload
The API will be accessible at
http://127.0.0.1:8000.
-
Navigate to the client directory:
cd client -
Install package dependencies:
npm install
-
Start the development server:
npm run dev
The interface will be accessible at
http://localhost:5173.
LegalDocs-AI/
├── backend/ # Application server and API logic
│ ├── core/ # Configuration and security settings
│ ├── models/ # Database schema definitions
│ ├── routers/ # API route handlers
│ ├── services/ # Business logic and AI processing
│ └── main.py # Application entry point
│
├── client/ # Frontend user interface
│ ├── src/
│ │ ├── components/ # React presentation components
│ │ ├── pages/ # Route views
│ │ ├── hooks/ # Custom state logic
│ │ └── lib/ # Utility functions
│ └── public/ # Static assets
│
└── shared/ # Shared resources
This project is licensed under the MIT License.
