clause-extraction-app-demo Svelte Themes

Clause Extraction App Demo

An example app to extract legal clause from pdf docs

Clause Extraction Web-app using Gemini API

https://github.com/user-attachments/assets/c918a763-9ffd-48a2-8f77-0860f9fa8f94

dev

  1. Generate a new Gemini API key from aistudio@google
  2. Clone the repo and set the API key in the .env file
pnpm i
mv .env.example .env
vim .env # edit the .env file
pnpm run dev
  1. Open the browser and navigate to http://localhost:5173

prod build

  1. Generate a new Gemini API key from aistudio@google
  2. Clone the repo and set the API key in the .env file
pnpm i
mv .env.example .env
vim .env # edit the .env file
pnpm run build
pnpm preview

Limitations

  • This app stores pdf files in a local directory. If I have time, I'd like to make it store in db or cloud storage
  • The app is not optimized for mobile devices
  • I use Gemini as a AI model because it's free to use, enable to deal with pdf files. I think claude models are better for this task.
  • I need to use JSON mode to extract information.
  • I need to optimise the prompt for better results.

Top categories

Loading Svelte Themes