Added example for Legal Simplifier#141
Open
techmaharaj wants to merge 5 commits intogptscript-ai:mainfrom
Open
Added example for Legal Simplifier#141techmaharaj wants to merge 5 commits intogptscript-ai:mainfrom
techmaharaj wants to merge 5 commits intogptscript-ai:mainfrom
Conversation
cjellick
reviewed
Mar 14, 2024
Contributor
|
@g-linville is going to give this a review |
g-linville
requested changes
Mar 15, 2024
Member
g-linville
left a comment
There was a problem hiding this comment.
Thanks for this example! Just a few suggested changes.
Contributor
Author
|
I've fixed all the review comments, @cjellick @g-linville |
g-linville
reviewed
Mar 15, 2024
Member
g-linville
left a comment
There was a problem hiding this comment.
Found a couple duplicate lines in the script, but other than that LGTM
| ## Usage | ||
|
|
||
| 1. Open your web browser and navigate to `http://127.0.0.1:5000/`. | ||
| 2. Use the web interface to upload an a legal document in .pdf format. |
Member
There was a problem hiding this comment.
Suggested change
| 2. Use the web interface to upload an a legal document in .pdf format. | |
| 2. Use the web interface to upload a legal document in .pdf format. |
|
|
||
| Get the part of legal document at index $index. | ||
| Do not leave out any important points. Focus on key points, implications, and any notable clauses or provisions. | ||
| Do not leave out any important points focusing on key points, implications, and any notable clauses or provisions. |
| Do not leave out any important points. Focus on key points, implications, and any notable clauses or provisions. | ||
| Do not leave out any important points focusing on key points, implications, and any notable clauses or provisions. | ||
| Give a list of all the terms and explain them in one line before writing the summary in the document. | ||
| Give a list of all the terms and explain them in one liner before writing the summary in the document. |
| For each summary write in smaller chunks or add bullet points if required to make it easy to understand. | ||
| Use the heading "Summary" only once in the entire document. | ||
| Explain terms in simple language and avoid legal jargon unless absolutely necessary. | ||
| Explain terms in simple language and avoid legal terminologies until unless absolutely necessary. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding example for Legal Simplifier, an app that simplifies legal documents. For larger documents, this has the ability to slipt them into chunks to fit within the token limit.
This PR also contains the
legal.pdffile and the generatedsummary.mdfile.