Method for generating user specific interfaces using Generative UI
In a method of generating a user interface, a user query is submitted to an encoder LLM which provides variable elements used to infer novel variable elements using a factor graph document database, which are in turn passed to a decoder LLM to generate user interface elements.
1 . A method of generating a user interface in response to a user query, comprising,
creating or accessing a predefined list of generic user interface elements in Java Script Object Notation (JSON) format,
creating or accessing a predefined list of one or more encoder prompts that can be passed to a computer system capable of comparing data strings representing natural language, wherein the language of the encoder prompts determines the content of relevance in a user query,
receiving a user query,
decomposing the user query into component variables,
generating source nodes and destination nodes for a factor graph document database out of the component variables, or indexing source nodes or destination nodes matching the component variables if the factor graph document database already contains source nodes and destination nodes that match the component variables,
using the factor graph document database to infer new query component variables that relate to the user query variables according to rules of probability,
creating or accessing a predefined list of one or more decoder prompts,
composing a user interface by combining the decoder prompts, the generic list of user interface elements, the user query variables, and the inferred query component variables.
2 . A method of claim 1 , wherein the user query is a natural language query presented to a Large Language Model (LLM), which decomposes the user query into component variables in natural language.
3 . The method of claim 1 , wherein the factor graph document database is structured using a modelling language that enables computation over the stored entities.
4 . The method of claim 3 , wherein the modeling language defines a Unique IDentifier (UID) tag field for each entity.
5 . The method of claim 4 , wherein the entities include source entities and destination entities stored as source nodes and destination nodes in the factor graph document database, a schema, normal links that relate at least some of the source entities with at least some of the destination entities according to their causal or parent-children relationships, and data links capable of computation over source and destination entities.
6 . The method of claim 4 , wherein the data links relate at least some source entities with at least some destination entities according to their causal or parent-children relationships and perform computations over the related entities.
7 . The method of claim 1 , wherein the predefined list of decoder prompts is passed to a large language model (LLM).
8 . The method of claim 7 , wherein the language of the decoder prompt asks the computer system to compose a user interface out of the generic list of user interface elements.