Lawyer-GPT is an AI-powered legal assistant designed to upload legal documents and discuss them in a Q&A format based on the document content. Leveraging the capabilities of GPT-3, Lawyer-GPT aims to streamline legal processes and increase efficiency in legal practices.
- Framework: Next.js
- File Storage: Supabase
- Authentication: Supabase
- Database & Vector Database: Supabase
- Chat Model: OpenAI - GPT-3.5 Turbo
- General Text Embeddings model: Supabase/gte-small
- Styling: Tailwind CSS & shadcn/ui
- Transformers: @xenova/transformers
- Data fetching: Tanstack Query
app/
- Contains all the page and layout files. Each file corresponds to a route based on its name.components/
- Contains all project components with reusable React components.public/
- Contains static files like images, which can be accessed directly via URL.styles/
- Contains global styles. The application primarily uses Tailwind CSS for styling.lib/
- Contains utility functions, custom hooks, xenova workers, providers and libraries that are used across the project.utils/
- Contains supabase client, middleware and server createClient functions.supabase/
- The most important folder. Contains config for docker, all functions and migration, seed sql file.
https://lawyer-gpt-one.vercel.app
This application requires Node.js v16.13+.
git clone https://github.com/onurhan1337/lawyer-gpt.git
cd zen
pnpm install
pnpm run dev
Create a .env
file similar to .env.example
. You need to fill them out for the site to work.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Most of the project is inspired by the Supabase Community project in the link below.
https://github.com/supabase-community/chatgpt-your-files/