Project Info
This project did not submit a demo video on Devpost.
Inspiration
We all came together to solve a problem that people struggle with on a regular basis. We are we were immigrants who hail from different places in the world where English is not a prevalent language! We thought to ourselves, what is someone that is difficult and is often. detriment to various communities? We discovered that we could leverage our knowledge to help communities that either are drawn into confusion or are taken advantage of through legal documentation that is often difficult to understand, even for those who are fluent in English.
What it does
We leveraged large language models, ORC, and base 64 to scan documents, summarize them, and translate them to a person's language. We do this summarization and translation by implementing Together.ai's api and fine tuning models using our datasets.
How we built it
We built it by splitting the team into various roles - Juan: Front-end, Aleks: Front-end / Back-end, Randolf: APIs, ML/AI, and Xiang (UI/UX / Front-end). Our technology/ Design stack: Tailwind.css, Python, Javascript, Together.ai API, Google Vision API, Typescript, Javascript, Next.js, Libraries for transforming PDFs.
Challenges we ran into
We all ran into tough challenges as we struggled to connect components together which include: - Working with Pdf documents: searching for the best libraries to help convert documents to images - Connecting to google vision api after obtaining said images - Working with timeouts with displaying words using visual effects in the front-end - Loading effects, creating try-catch statements using logical processing - Designing the website using sigma to have a simple but elegant UI/UX - Congregating data to use in together.ai's LLMs (LLaMA - for summarization, llama 2 - for key points / insights) using python scripting - Working with Together.ai's prompting to ensure the best answer quality for the queries needed to operate our platforms
This is a Next.js project bootstrapped with create-next-app.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.
The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
Learn More
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!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Analysis
View
Metric
- 42
- 21
- 13
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- CSSIn code
- JavaScriptIn code
- Next.jsIn code
- PythonIn code
- ReactIn code
- Tailwind CSSIn code
- TypeScriptIn code
7 of 7 appear in the indexed code.
AI coding agents
No AI coding agent signals were found in this repository.
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
41 KB
Source files
39
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
Alex-RV/LegalLingua
50 files · 1.3 MB · @ e32bf54
Structure
Interface
10 files · 20%Screens, components and styles rendered to the user.
API & routing
2 files · 4%Request entry points: routes, handlers and controllers.
Application logic
23 files · 46%Domain rules, services and shared utilities.
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here — open the file browser to check anything the diagram implies.
Languages
- TypeScript52%
- JavaScript34%
- Python9%
- Markdown4%
- CSS2%
Share of indexed source by file size. Binary and vendored files are excluded.
Dependencies
package.json
npm · 24- @google-cloud/vision
- @nextui-org/react
- @vercel/analytics
- cn
- framer-motion
- micro
- next
- pdf-lib
- pdf-parse
- pdfjs-dist
- react
- react-dom
- react-icons
- tesseract.js
- +10 more
Declared in the repository’s manifests at the indexed commit. A declared package is not proof it is used, and runtime dependencies are listed first.
This project’s features have not been analysed yet.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.