Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lumgashi/termina-ai

Termina AI: Your Personal Contract Simplifier – Transform dense legal language into clear, actionable insights. Upload contracts, highlight key points, uncover risks, and understand your obligations in minutes, not hours.
https://github.com/lumgashi/termina-ai

ai assistant-personnel jwt jwt-authentication mongodb nestjs oauth openai openai-api prisma-orm

Last synced: 6 days ago
JSON representation

Termina AI: Your Personal Contract Simplifier – Transform dense legal language into clear, actionable insights. Upload contracts, highlight key points, uncover risks, and understand your obligations in minutes, not hours.

Awesome Lists containing this project

README

        

Termina AI: Your Personal Contract Simplifier



Streamline the complexity of contracts with AI-powered insights.

Upload contracts, uncover key points, assess risks, and get clear answers to your questions.

---

About Termina AI


Termina AI is an advanced contract simplification tool, built with NestJS, Prisma, MongoDB, OpenAI, and OpenAI's Assistant API. Termina AI transforms dense legal documents into easy-to-understand summaries, helping freelancers, small businesses, and individuals make informed decisions without needing extensive legal expertise.

Key Features




  • Document Summarization: Upload contracts and receive clear, concise summaries that capture the essentials.


  • Key Points & Obligations: Highlights obligations, deadlines, and responsibilities for each party in the contract.


  • Risk Analysis: Identifies potential risks or restrictive clauses to assist in contract evaluation and negotiation.


  • Interactive Q&A: Ask specific questions about the document and get responses within the context of your contract.


  • Secure Authentication: User data is protected with JWT-based Authentication and Google OAuth for secure access.

How It Works




  1. Upload a Document: Users start by uploading a contract file (PDF or DOCX format).


  2. Thread Creation: For each document, a dedicated thread is created with additional instructions specific to the document's context.


  3. File Attachment: The file is attached to the thread, enabling the assistant to access and analyze it.


  4. Run the Assistant: A run is created, and the assistant is activated to generate a response, analyzing the document and extracting key insights.


  5. Ask Follow-Up Questions: Users can ask specific questions related to the contract, receiving tailored responses in a chat-like interface.

Tech Stack




  • Backend: NestJS for server-side processing


  • Database: MongoDB with Prisma for seamless data handling


  • AI Integration: OpenAI's Assistant API for powerful language processing


  • Authentication: JWT and Google OAuth for secure user authentication and authorization

Getting Started


To get started with Termina AI, follow these steps:



  1. Clone the repository: git clone https://github.com/your-username/termina-ai.git

  2. Install dependencies: npm install

  3. Set up environment variables:


    • OPENAI_API_KEY: Your OpenAI API key


    • MONGODB_URI: Your MongoDB connection string


    • JWT_SECRET: Secret key for JWT authentication


    • GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET: For Google OAuth



  4. Run the application: npm run start

Usage


After setting up, users can:



  • Sign up and log in using email/password or Google OAuth

  • Upload contract documents for analysis

  • View summaries, key points, and risk analysis generated by the assistant

  • Engage in interactive Q&A with the assistant for further clarification on contract terms

Contributing


We welcome contributions! Please fork the repository and submit a pull request with your updates. For major changes, open an issue first to discuss what you would like to change.

License


This project is licensed under the MIT License. See the LICENSE file for details.

---

Made with ❤️ by the Lum Gashi