IP Library Granted Patent US 12,332,931
Granted Patent B2
US 12,332,931 · App. 18/426,109 · Granted Jun 17, 2025

Priming generative AI model leveraging directed acyclic graph-driven notebook environment

Inventors: Bryan Edward Bischof (Berkeley, CA); Jared Lorince (Morton Grove, IL); Caitlin Royden Colgrove (San Francisco, CA); Barry Ryan McCardel (San Francisco, CA); Glen Takahashi (San Jose, CA); Adam Joseph Storr (San Francisco, CA)
Assignee: Hex Technologies, Inc.
G06F16/3344G06F8/30G06F16/316G06F16/3329G06F40/40
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,332,931
App. No.
18/426,109
Granted
Jun 17, 2025
Kind
B2
Abstract

An application receives a natural language query from a user into a cell of a notebook environment and responsively determines a set of precedent cells and a profile of the user. The application determines a portion of the data warehouse graph that corresponds to the natural language query. The application primes the large language model with priming context that is based on the portion of the data warehouse graph that corresponds to the natural language query, the precedent cells from which the code cell depends, and the profile of the user, the priming resulting in a primed large language model. The application inputs the natural language query into the primed large language model and receives, as output from the large language model, a response to the natural language query. The application provides the response to the natural language query to the user.

Claims (55)

1. A method comprising:

receiving a natural language query from a user into a cell of a notebook environment, the natural language query performed with respect to a data warehouse, the data warehouse modeled in a data warehouse graph;

in response to receiving the natural language query:

determining, using directed edges of a notebook graph structure, a set of precedent cells from which the cell depends, the notebook graph structure being a directed acyclic graph; and

determining, using edges of a user graph structure populated based on activities of users relative to the notebook environment, a profile of the user;

determining a portion of the data warehouse graph that corresponds to the natural language query;

priming a large language model with priming context, the priming context based on the portion of the data warehouse graph that corresponds to the natural language query, the precedent cells from which the cell depends, and the profile of the user, the priming resulting in a primed large language model;

inputting the natural language query into the primed large language model;

receiving, as output from the large language model, a response to the natural language query; and

providing the response to the natural language query to the user.

2. The method of claim 1 , wherein the data warehouse is modeled by:

generating a column node for each column of each table within the data warehouse; and

generating edges between column nodes that are mutually queried.

3. The method of claim 2 , wherein column nodes are mutually queried when they are called together by a cell.

4. The method of claim 2 , wherein column nodes are mutually queried when they are together part of a join command.

5. The method of claim 2 , wherein the edges between the column nodes indicate information about how they were mutually queried.

6. The method of claim 5 , wherein the information is pointed to by one or more nodes of the user graph structure for given users that performed an act in which the column nodes were mutually queried.

7. The method of claim 1 , wherein determining the set of precedent cells from which the cell depends comprises determining values from the set of precedent cells using a sequential ordering dictated by directed edges of the notebook graph structure.

8. The method of claim 1 , wherein determining the profile of the user comprises determining historical queries in historical projects performed by the user that relate to the natural language query.

9. A non-transitory computer-readable medium comprising memory with instructions encoded thereon that, when executed, cause one or more processors to perform operations, the instructions comprising instructions to:

receive a natural language query from a user into a cell of a notebook environment, the natural language query performed with respect to a data warehouse, the data warehouse modeled in a data warehouse graph;

in response to receiving the natural language query:

determine, using directed edges of a notebook graph structure, a set of precedent cells from which the cell depends, the notebook graph structure being a directed acyclic graph; and

determine, using edges of a user graph structure populated based on activities of users relative to the notebook environment, a profile of the user;

determine a portion of the data warehouse graph that corresponds to the natural language query;

prime a large language model with priming context, the priming context based on the portion of the data warehouse graph that corresponds to the natural language query, the precedent cells from which the cell depends, and the profile of the user, the priming resulting in a primed large language model;

input the natural language query into the primed large language model;

receive, as output from the large language model, a response to the natural language query; and

provide the response to the natural language query to the user.

10. The non-transitory computer-readable medium of claim 9 , wherein the data warehouse is modeled by:

generating a column node for each column of each table within the data warehouse; and

generating edges between column nodes that are mutually queried.

11. The non-transitory computer-readable medium of claim 10 , wherein column nodes are mutually queried when they are called together by a cell.

12. The non-transitory computer-readable medium of claim 10 , wherein column nodes are mutually queried when they are together part of a join command.

13. The non-transitory computer-readable medium of claim 10 , wherein the edges between the column nodes indicate information about how they were mutually queried.

14. The non-transitory computer-readable medium of claim 13 , wherein the information is pointed to by one or more nodes of the user graph structure for given users that performed an act in which the column nodes were mutually queried.

15. The non-transitory computer-readable medium of claim 9 , wherein the instructions to determine the set of precedent cells from which the cell depends comprise instructions to determine values from the set of precedent cells using a sequential ordering dictated by directed edges of the notebook graph structure.

16. The non-transitory computer-readable medium of claim 9 , wherein the instructions to determine the profile of the user comprise instructions to determine historical queries in historical projects performed by the user that relate to the natural language query.

17. A system comprising:

memory with instructions encoded thereon; and

one or more processors that, when executing the instructions, are caused to perform operations comprising:

receiving a natural language query from a user into a cell of a notebook environment, the natural language query performed with respect to a data warehouse, the data warehouse modeled in a data warehouse graph;

in response to receiving the natural language query:

determining, using directed edges of a notebook graph structure, a set of precedent cells from which the cell depends, the notebook graph structure being a directed acyclic graph; and

determining, using edges of a user graph structure populated based on activities of users relative to the notebook environment, a profile of the user;

determining a portion of the data warehouse graph that corresponds to the natural language query;

priming a large language model with priming context, the priming context based on the portion of the data warehouse graph that corresponds to the natural language query, the precedent cells from which the cell depends, and the profile of the user, the priming resulting in a primed large language model;

inputting the natural language query into the primed large language model;

receiving, as output from the large language model, a response to the natural language query; and

providing the response to the natural language query to the user.

18. The system of claim 17 , wherein the data warehouse is modeled by:

generating a column node for each column of each table within the data warehouse; and

generating edges between column nodes that are mutually queried.

19. The system of claim 18 , wherein column nodes are mutually queried when they are called together by a cell.

20. The system of claim 18 , wherein column nodes are mutually queried when they are together part of a join command.

Assignments (2)
CORRECTIVE ASSIGNMENT TO CORRECT THE COMPANY NAME FROM HEX TECHNOLOGIES, INC. TO HEX TECHNOLOGIES INC. PREVIOUSLY RECORDED ON REEL 68920 FRAME 790. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT. Recorded Dec 29, 2025
From: BISCHOF, BRYAN EDWARD; LORINCE, JARED; COLGROVE, CAITLIN ROYDEN; MCCARDEL, BARRY RYAN; TAKAHASHI, GLEN; STORR, ADAM JOSEPH
To: HEX TECHNOLOGIES INC.
Reel/Frame 074117/0975 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 16, 2024
From: BISCHOF, BRYAN EDWARD; LORINCE, JARED; COLGROVE, CAITLIN ROYDEN; MCCARDEL, BARRY RYAN; TAKAHASHI, GLEN; STORR, ADAM JOSEPH
To: HEX TECHNOLOGIES, INC.
Reel/Frame 068920/0790 →
Continuity (3)
Provisional Application 63526419 · Jul 12, 2023
Provisional Application 63442692 · Feb 1, 2023
Related Publication 20240256588A1 · Aug 1, 2024
References Cited (10)
US 20100241644A1 · Jackson et al. · 2010 [cited by applicant]
US 20150169758A1 · Assom · 2015 [cited by examiner]
US 20160358102A1 · Bowers et al. · 2016 [cited by applicant]
US 20190213284A1 · Anand · 2019 [cited by examiner]
US 20190317961A1 · Brener et al. · 2019 [cited by applicant]
US 20210232873A1 · Kothari et al. · 2021 [cited by applicant]
US 20210326532A1 · Taylor · 2021 [cited by examiner]
US 20210357762A1 · Clement et al. · 2021 [cited by applicant]
US 20220414228A1 · Difonzo · 2022 [cited by examiner]
PCT International Search Report and Written Opinion, PCT Application No. PCT/US 24/13382, May 8, 2024, nine pages. [cited by applicant]