Rewriting text with GPT
Re-writing text with OpenAI GPT [+Drafting Option Only]
OpenAI GPT does a great job rewriting and correcting English text, so ClaimMaster's patent drafting tools let you store and invoke helpful OpenAI GPT prompts for rewriting existing text generated by ClaimMaster other patent drafting tools or any other text in the document.
For rewriting, ClaimMaster passes the text to either OpenAI's or Microsoft Azure OpenAI's GPT services via Enterprise-level API. According to OpenAI API policies and/or Azure OpenAI API policies, the use of API ensures that your prompts (inputs), completions (outputs), and any other transmitted data will not be available to other customers and will not be used to improve GPT models. To further enhance your data privacy and use specific GPT models, you can also configure ClaimMaster to use your own API key and endpoint (Azure) to connect to your your private models set up in OpenAI or Azure OpenAI services. If ClaimMaster is configured to access private GPT models using your own API keys, those keys will always be stored in encrypted format on the machine where ClaimMaster is installed.
However, you are responsible for determining whether OpenAI API policies and/or Azure OpenAI API policies suit your needs, satisfy your organization's security requirements, and assume all risk for using GPT services with your confidential data. All GPT features in ClaimMaster will only transmit data to GPT after your explicit command. You control exactly what data is being sent to GPT. It's also a good practice to always review GPT responses for factual correctness, especially if you are using GPT prompts with settings for higher response randomness/creativity.
To access GPT rewriting tool in ClaimMaster, follow these steps:
Getting Started
- Option 1 - from any patent drafting tools menu (e.g., generating Abstract, Summary, flowchart descriptions, claim cloning, etc.), click on the Re-write text with GPT button or right-click on the preview text window and select Re-write selected text with GPT menu option. If any text is selected in the window, only that text will be rewritten. Otherwise, the entire contents of the preview window will be passed to the GPT prompt for re-writing.
- Option 2 - alternatively, select any text region in your open Word document, right click with a mouse and select Rewrite selection with GPT/LLM option from the drop-down menu:
Invoking either of these options will open the GPT text rewriting window.
Rewriting text with GPT/LLM window
Once you select the feature from the menu above, the GPT text rewriting window will come up. The following operations are available for this feature:
- Use this drop-down menu to select the specific GPT rewriting/post-processing prompt template. For the GPT prompt template to appear in this list, it must be selected as "post-processing template" in the prompt settings:
- Use the filter field to limit the list shown in the template menu to only those templates that at least partially match the filter. To remove the filter, click on the "Clear" button.
- Shows the preview of the final GPT prompt with the input data inserted. This will be the prompt that will be sent to GPT. You can make edits/adjustments to this prompt directly in the window. The beginning of the prompt are the instructions, separated via "###" from the actual text to be rewritten. For best results, try to be as precise and detailed in your instructions to GPT as possible.
- Use this slider to make GPT responses more or less random/deterministic. Corresponds to the temperature setting for the GPT. Higher values will make GPT output more random/creative, while lower values like 0 will make it more focused and deterministic. We recommend setting this field close to 0 for rewriting operations. It's a good practice to always review GPT responses for factual correctness, especially if you are using GPT prompts with settings for higher response randomness/creativity.
- Press this button to send the prompt from the preview window (item 3) to GPT. As mentioned above, ClaimMaster does not automatically access OpenAI's or Azure OpenAI GPT services using API. You will only send a prompt to GPT when you press this button.
- Press this button to open OpenAI's GPT API settings window.
Providing additional examples/context to GTP for rewriting
To possibly improve the quality of GPT output you can also pass example output or additional context as part of GPT prompts. Note - you need to edit the contents of this window before sending text prompts to GPT. This additional example/context text would be configured as part of the GPT template - to add example/context, switch to the "Example/Context" tab when editing a GPT prompt:
The following options are available from the Example/Context window used for specifying additional context and examples for GPT templates:
- This window specifies the text of the example or additional context for the GPT prompt template.
- Click this button to load the text into the example window (item 6) from the selection in the open Word document.
- Click this button to load the text into the example window (item 6) from another Word document.
- Click this button to load the text into the example window (item 6) using the text for the specified patent number or a publication number.
- Click this button to clear the example/context window.
Reviewing/editing GPT output
This tab shows the results returned by GPT service based on the provided prompt or any returned error messages, if any. You can make further text modifications to the results directly in this window.
The following options are available from the GPT Output window
- This text field shows the results returned by GPT service based on the provided prompt or any returned error messages. You can make further text modifications to the results directly in this window
- Click this button to see the differences between the text passed to GPT and the rewritten text by GPT. This is a very helpful feature to pick up on any subtle differences between GPT input and the produced output.
- Press this button if you like the results produced by the specific GPT prompt. It will allow you to turn this prompt and associated instructions/example into a template prompt within ClaimMaster.
- Press this button to use the output of GPT rewrite as input for another GPT rewrite, possibly with a different prompt template or settings.
- Press this button to insert the contents of the preview window (item 11) into the open Word document at the location of the cursor in the document.
- If this checkbox is selected, when text is inserted back into the open Word document, it will be inserted with Track Changes.
- Press this button to accept the rewriting edits made by GPT. If the GPT rewrite feature was invoked from a patent drafting tool (Option 1), then the rewritten text will be placed back into the preview window of that tool. If the GPT rewrite feature was invoked directly for the selected text in the open Word document (Option 2), then the rewritten text will replace the selected text in the open document (with Track changes enabled by default - see option 16).
- Press this button to cancel the rewriting operation. The edits made by GPT will be ignored.