# US 12,762,166 B2 · Systems and methods for large language model-based characterization and detection of matches/mismatches in configuration files of connected devices

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

- Number: US 12,762,166 B2
- Document ID: US12762166B2
- Status: Granted
- Kind: B2
- Application number: 18/964,130
- Filed: 2024-11-29
- Published: 2026-06-04
- Granted: 2026-10-13
- Earliest claimed: 2024-11-29
- Assignees: JPMorgan Chase Bank, N.A.
- Applicants: Jpmorgan Chase Bank, N.A.
- Inventors: Najah Ghalyan; Gaston Liberman; William Joel Guest; Sean Moran
- Web page: https://patentgrep.com/patent/US12762166B2

## CPC

- G06F 16/3344: {using natural language analysis}
- G06F 16/322: {Trees}
- G06F 16/383: using metadata automatically derived from the content
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for LLM-based characterization and detection of matches/mismatches in configuration files are disclosed. A method may include: retrieving a plurality of configuration files, each configuration file associated with a connected electronic device; parsing each of the plurality of configuration files into a plurality of sections and subsections; storing the parsed configuration files to a database; receiving, from a user interface for the computer program, a configuration-related query; extracting metadata and keywords from the configuration-related query; identifying one of the stored parsed configuration files using the metadata; retrieving the identified stored parsed configuration file; identifying relevant branches in the retrieved configuration file that include the keywords; generating a prompt for a large language model including the configuration-related query and the identified branches as context for the configuration-related query; receiving a response to the prompt from the large language model; and returning the response to the user interface.

## Claims

### Claim 1

A method, comprising:
retrieving, by a computer program executed by an electronic device, a plurality of configuration files, each configuration file associated with a connected electronic device in a computer network comprising a plurality of connected electronic devices;
parsing, by the computer program, each of the plurality of configuration files into a plurality of sections and subsections;
storing, by the computer program, the parsed plurality of configuration files to a database;
receiving, from a user interface for the computer program, a configuration-related query;
extracting, by the computer program, metadata and keywords from the configuration-related query;
identifying, by the computer program, one of the stored parsed configuration files using the metadata;
retrieving, by the computer program, the identified one of the stored parsed configuration files;
identifying, by the computer program, relevant branches in the retrieved configuration file that include the keywords;
generating, by the computer program, a prompt for a large language model including the configuration-related query and the identified relevant branches as context for the configuration-related query;
receiving, by the computer program, a response to the prompt from the large language model; and
returning, by the computer program, the response to the user interface.

### Claim 2 (depends on 1)

The method of claim 1, wherein the plurality of configuration files are parsed into tree-like structures.

### Claim 3 (depends on 1)

The method of claim 1, wherein each section and subsection comprises a line number of the configuration file, an identification of one or more parent sections and/or subsections, and an identification of one or more child subsections.

### Claim 4 (depends on 1)

The method of claim 1, wherein the keywords comprise device metadata keywords, platform metadata keywords, configuration metadata keywords, and configuration file section keywords.

### Claim 5 (depends on 1)

The method of claim 1, wherein identified relevant sections and subsections of retrieved configuration file comprise all of the extracted keywords.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
removing, by the computer program, duplicate branches.

### Claim 7

A method, comprising:
retrieving, by a computer program executed by an electronic device, a plurality of configuration files, each configuration file associated with a connected electronic device in a computer network comprising a plurality of connected electronic devices;
parsing, by the computer program, each of the plurality of configuration files into a plurality of sections and subsections;
storing, by the computer program, the parsed plurality of configuration files to a database;
retrieving, by the computer program, a plurality of the stored parsed plurality of configuration file from the database;
generating, by the computer program, embeddings for the plurality of sections and subsections of the retrieved stored parsed configuration files;
comparing, by the computer program, the embeddings of the plurality of sections and subsections of the stored parsed plurality of configuration files; and
grouping, by the computer program, the plurality of connected electronic devices based on a similarity of the embeddings of their sections and subsections.

### Claim 8 (depends on 7)

The method of claim 7, wherein the plurality of configuration files are parsed into tree-like structures.

### Claim 9 (depends on 7)

The method of claim 7, wherein the embeddings of the sections and subsections of the stored parsed plurality of configuration files are compared using cosine similarity values for the embeddings of the sections and subsections of the stored parsed plurality of configuration files.

### Claim 10 (depends on 9)

The method of claim 9, wherein the plurality of connected electronic devices are grouped according to one or more similarity thresholds.

### Claim 11 (depends on 7)

The method of claim 7, further comprising:
generating, by the computer program, a report comprising a visual representation of the plurality of configuration files for the plurality of connected electronic devices.

### Claim 12 (depends on 11)

The method of claim 11, wherein the report further comprises hyperlinks to the plurality of configuration files for the plurality of connected electronic devices.

### Claim 13

A method, comprising:
retrieving, by a computer program executed by an electronic device, a plurality of configuration files, each configuration file associated with a connected electronic device in a computer network comprising a plurality of connected electronic devices;
parsing, by the computer program, each of the plurality of configuration files into a plurality of sections and subsections;
storing, by the computer program, the parsed plurality of configuration files to a database;
retrieving, by the computer program, a first stored parsed configuration file for a first configuration file and a second stored parsed configuration file for a second configuration file from the database;
generating, by the computer program, embeddings for the plurality of sections and subsections of the first stored parsed configuration file and the second stored parsed configuration file;
matching, by the computer program, embeddings for the plurality of sections and subsections of the first stored parsed configuration file to the embeddings for the sections and subsections of the second stored parsed configuration file; and
rebuilding, by the computer program, one of the plurality of sections or subsections of the first stored parsed configuration file or the second stored parsed configuration file in response to the section or subsection not matching.

### Claim 14 (depends on 13)

The method of claim 13, wherein the plurality of configuration files are parsed into tree-like structures.

### Claim 15 (depends on 14)

The method of claim 14, wherein the plurality of sections and subsections are organized based on a depth for each section and subsection in a hierarchy of each of the plurality of configuration files.

### Claim 16 (depends on 13)

The method of claim 13, wherein the computer program matches the embeddings of the plurality of sections and subsections of the first stored parsed configuration file to the embeddings for the plurality of sections and subsections of the second stored parsed configuration file by matching lines in the first stored parsed configuration file to lines in the second stored parsed configuration file.

### Claim 17 (depends on 16)

The method of claim 16, wherein the computer program uses a line parameter to set a window for searching the second stored parsed configuration file for a configuration line in the first stored parsed configuration file.

### Claim 18 (depends on 17)

The method of claim 17, wherein the searching is performed in a first direction, and then in a second direction.

### Claim 19 (depends on 13)

The method of claim 13, further comprising:
generating, by the computer program, an audit report comprising a visual representation of the first stored parsed configuration file and the second stored parsed configuration file, and similarity scores for configuration lines in the first stored parsed configuration file and the second stored parsed configuration file.

### Claim 20 (depends on 19)

The method of claim 19, wherein the audit report comprises hyperlinks to the first stored parsed configuration file and the second stored parsed configuration file.
