646e62 / case-brief

Generates a FIRAC-style case brief from a reported decision
GNU General Public License v3.0
2 stars 0 forks source link

Redesign GPT-2 token limits, prompts #49

Open 646e62 opened 1 year ago

646e62 commented 1 year ago

The program currently limits GPT-2 tokens to 2800 per call. Higher values tended to exceed the max length of 4096 when dealing with longer files. Smaller files, however, had no difficulty with the default values.

Several OpenAI calls combine results from previous prompts with data from new prompts. These results can vary in length, and the maximum token length in the summarization functions should automatically adjust to account for this.