# US 2025/0147832 A1 · Language model assisted error analysis system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0147832 A1
- Document ID: US20250147832A1
- Status: Published application
- Kind: A1
- Application number: 18/735,057
- Filed: 2024-06-05
- Published: 2025-05-08
- Earliest claimed: 2023-11-06
- Assignees: Palantir Technologies Inc.
- Applicants: Palantir Technologies Inc.
- Inventors: Akshay Agrawal; Ndeye Fatou Diop; Frauke Hein; Christopher Jeganathan; Oleh Igorovych Busko; Claudia Rafaela Rogoz; Dauren Abdykaparov; Philipp Shchekin; Ryan Norris; Sudarshan Sanjay Ruikar
- Web page: https://patentgrep.com/patent/US20250147832A1

## CPC

- G06F 11/0769: {Readable error formats, e.g. cross-platform generic formats, human understandable formats}
- G06F 40/197: Version control (for software G06F8/71)
- G06F 11/0706: {the processing taking place on a specific hardware platform or in a specific software environment}
- G06F 11/0778: {Dumping, i.e. gathering error/state information after a fault for later diagnosis}
- G06F 11/0787: {Storage of error reports, e.g. persistent data storage, storage using memory protection}
- G06F 11/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 2201/835: Timestamp
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Computer-implemented systems and methods including language models for explaining and resolving code errors. A computer-implemented method may include: receiving or accessing a log comprising an error message, the error message indicating an error in code; determining the error message from the log; determining a context associated with the error; generating a prompt for a large language model (“LLM”), the prompt comprising at least: the error message, and the context associated with the error; transmitting the prompt to the LLM; and receiving an output from the LLM in response to the prompt, the output comprising at least: an explanation of the error message, and a suggested fix for the error.

## Claims

### Claim 1

A computerized method, performed by a computing system having one or more hardware computer processors and one or more non-transitory computer-readable storage devices storing software instructions executable by the computing system, the computerized method comprising:
receiving or accessing a log comprising an error message, the error message indicating an error in code;
determining the error message from the log;
determining a context associated with the error;
generating a prompt for a large language model (“LLM”), the prompt comprising at least: the error message, and the context associated with the error;
transmitting the prompt to the LLM; and
receiving an output from the LLM in response to the prompt, the output comprising at least: an explanation of the error message, and a suggested fix for the error.

### Claim 2 (depends on 1)

The computerized method of claim 1, wherein the error is at least one of: a compile time error of the code or a run time error of the code.

### Claim 3 (depends on 2)

The computerized method of claim 2, wherein determining the error message from the log comprises:
executing a semantic search or a regular expression (“regex”) search on the log to identify the error message, wherein the error message comprises one or more text strings.

### Claim 4 (depends on 3)

The computerized method of claim 3, wherein the one or more text strings comprises at least one of: a natural language word, a natural language phrase, or a natural language sentence that indicates an occurrence of the error.

### Claim 5 (depends on 4)

The computerized method of claim 4, wherein the context associated with the error comprises portions of one or more documents associated with the code.

### Claim 6 (depends on 5)

The computerized method of claim 5, wherein determining the context associated with the error comprises:
generating, based at least in part on the error message, one or more search criteria; and
executing, using at least the one or more search criteria, a similarity search in a set of documents to identify the portions of the one or more documents associated with the code.

### Claim 7 (depends on 6)

The computerized method of claim 6, wherein the similarity search comprises execution of a document search model, and wherein the computerized method further comprising:
generating the document search model, wherein generating the document search model comprises:
chunking the set of documents into a plurality of portions of the set of documents; and
vectorizing the plurality of portions of the set of documents to generate a plurality of vectors.

### Claim 8 (depends on 7)

The computerized method of claim 7, wherein executing the similarity search comprises using at least one of: a language model, an artificial intelligence (“AI”) model, a generative model, a machine learning (“ML”) model, a neural network (“NN”), or another LLM.

### Claim 9 (depends on 8)

The computerized method of claim 8, wherein the portions of the one or more documents associated with the code comprise a quantity n portions of the one or more documents most associated with the code.

### Claim 10 (depends on 9)

The computerized method of claim 9, wherein the portions of the one or more documents associated with the code comprise document portions having a threshold similarity with the error message.

### Claim 11 (depends on 10)

The computerized method of claim 10, wherein the context associated with the error comprises one or more citations to the one or more documents.

### Claim 12 (depends on 11)

The computerized method of claim 11, wherein the context associated with the error comprises extended portions of the log that are adjacent to the error message in the log.

### Claim 13 (depends on 12)

The computerized method of claim 12, wherein the context associated with the error comprises a portion of the code associated with the error.

### Claim 14 (depends on 13)

The computerized method of claim 13, wherein determining the context associated with the error comprises:
accessing the code from a repository that stores the code; and
identifying, based on the error message, the portion of the code associated with the error.

### Claim 15 (depends on 14)

The computerized method of claim 14, wherein the portion of the code associated with the error comprises a difference between multiple versions of at least a section of the code.

### Claim 16 (depends on 15)

The computerized method of claim 15, wherein the prompt further comprises at least: one or more instructions that instruct the LLM to generate the explanation of the error message and/or the suggested fix for the error based on the error message and the context associated with the error.

### Claim 17 (depends on 16)

The computerized method of claim 16 further comprising:
providing, via a user interface, the output from the LLM.

### Claim 18 (depends on 17)

The computerized method of claim 17 further comprising at least one of:
implementing the suggested fix in response to a user input accepting the suggested fix, or
automatically implementing the suggested fix.

### Claim 19 (depends on 18)

The computerized method of claim 18, wherein the suggested fix comprises a modification to at least a section of the code.

### Claim 20 (depends on 1)

A system comprising:
one or more computer-readable storage mediums having program instructions embodied therewith; and
one or more processors configured to execute the program instructions to cause the system to perform the computerized method of claim 1.

### Claim 21 (depends on 1)

A computer program product comprising one or more computer-readable storage mediums having program instructions embodied therewith, the program instructions executable by one or more processors to cause the one or more processors to perform the computerized method of claim 1.
