Elidable text for prompt crafting
US12271710B2 · kind B2 · utility
Assignee
Inventors
Key dates
| Filing date | May 16, 2023 |
| Grant date | Apr 8, 2025 |
| Priority date | — |
| Expiry date | Oct 12, 2043 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F8/37
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
An elidable text is constructed that prioritizes the content included in a prompt to a large language model having a fixed-size context window. The elidable text is generated from developer-generated instructions or automatically for source code within a source code editor. A source code editor may include a feature that selects certain lines of code as important or focused which are assigned a high-priority value. A changed line, a line of source code at a current cursor position, lines of source code at the beginning of a file and those that output data are considered focused lines. Non-focused lines are assigned a priority based on a distance from a focused line. The elidable text constrains the data included in a prompt to the context window size by replacing the lowest-valued lines of text and source code with a replacement string.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.