US 12,216,713 B1
Accessing data from a database
Barry Shapira, San Francisco, CA (US)
Assigned to Humane, Inc., San Francisco, CA (US)
Filed by Humane, Inc., San Francisco, CA (US)
Filed on Aug. 1, 2023, as Appl. No. 18/363,688.
Claims priority of provisional application 63/394,592, filed on Aug. 2, 2022.
Int. Cl. G06F 16/00 (2019.01); G06F 16/9032 (2019.01); G06N 20/00 (2019.01)
CPC G06F 16/90332 (2019.01) [G06F 16/90324 (2019.01); G06N 20/00 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A method for using a machine learning model to provide data corresponding to a user query, the method comprising:
receiving a user query for data stored in one or more databases, wherein the user query is represented in a first natural language;
determining a prompt file for the user query, wherein the prompt file comprises one or more pairs of example queries, wherein an example query pair comprises a first query represented in the first natural language, and a respective second query represented in a database language;
providing the prompt file and the user query as input for a machine learning model, wherein the machine learning model is configured to generate a prediction for the prompt file and the user query;
receiving the prediction generated for the prompt file and the user query, wherein the prediction comprises a predicted database query represented in the database language corresponding to the user query;
determining whether the predicted database query, based on a ground-truth database query for the user query, satisfies a level of accuracy; and
providing, using (i) the machine learning model and (ii) a virtual interface corresponding to a wearable multimedia device, data corresponding to one or more user queries.