MULTI-LLM PROMPT CLASSIFIER
A method may include receiving an input to be provided to a machine learning model (MLM). The method may include determining one or more characteristics of the input to be provided to the MLM. The method may include accessing a database may include a list of one or more MLMs and respective attributes of each of the MLMs. The method may include predicting, by an artificial intelligence model implemented on the computing system, expected values for each of the respective attributes of the MLMs, the expected values based on the respective attributes of the MLMs of the one or more characteristics of the input. The method may include generating a recommendation list including at least one of the MLMs, or the expected values of each of the MLMs of the recommendation list. The method may include providing the input to a selected MLM of the recommendation list.
Latest Oracle Patents:
- NETWORK-BOUND DATA SECURITY TECHNIQUES ACROSS REGIONS AND CLOUD SERVICE PROVIDERS
- METHOD AND SYSTEM FOR CONTROLLING SERVICE PROVIDER AGENT ACCESS WITH ACCESS DELEGATION SYSTEM
- Converting Data From An Optimized Format To A Target Format
- ONLINE VERIFICATION OF LOGICAL CONSISTENCY OF SPACE MANAGEMENT METADATA FOR DATABASE DATA
- AUDITED CONTENT SECURITY POLICY
There are several different types of artificial intelligence models. One type are large language models (LLMs). However, not all LLMs perform identically, each LLM having different characteristics. These different performance characteristics may cause a particular LLM to be more preferred than another LLM for certain use cases. Experimenting, benchmarking, and choosing a particular LLM may be costly, both in computational resources and financially.
BRIEF SUMMARYA method may include receiving, by a computing system, an input to be provided to a machine learning model (MLM). The method may include determining, by the computing system, one or more characteristics of the input to be provided to the MLM. The method may include accessing, by the computing system, a database may include a list of one or more MLMs and respective attributes of each of the one or more MLMs. The method may include predicting, by an artificial intelligence model implemented on the computing system, expected values for each of the respective attributes of the one or more MLMs, the expected values based at least in part on the respective attributes of the MLMs of the one or more characteristics of the input. The method may include generating, by the computing system, a recommendation list including at least one of the one or more MLMs, the expected values of each of the one or more MLMs of the recommendation list. The method may include providing, by the computing system, the input to a selected MLM of the recommendation list.
In some embodiments, the method may include accessing, by the computing system, a dataset may include a plurality of inputs, where each of the inputs is annotated with a respective input type such that the artificial intelligence model identifies the input type. The method may include training, by the computing system, the artificial intelligence model using the dataset, such that the artificial intelligence model correlates the one or more characteristics of each of the one or more inputs of the dataset with the respective attributes of the one or more MLMs. The method may include providing, by the computing system, the dataset to a synthesizer module configured to modify the dataset to generate an analogous dataset. The method may include training, by the computing system, the artificial intelligence model using the analogous dataset, such that the artificial intelligence model correlates the one or more characteristics of each of the one or more inputs of the analogous dataset with the respective attributes of the one or more MLMs. The method may include receiving, by the computing system, a user input indicating desired weights of corresponding to the attributes of the one or more MLMs. The method may include modifying, by the computing system, the artificial intelligence model using the desired weights indicated in the user input, such that the artificial intelligence model generates the expected values based at least in part on the desired weights. The MLMs may include large language models. The artificial intelligence model may include at least one of a convolutional neural network, recurrent neural network, or a large language model. The attributes may include at least one of an accuracy rating, a latency rating, and a computational cost rating. The artificial intelligence model may be associated with a single tenant of a cloud-services provider. The one or more characteristics may include at least one of a prompt type, a length, or a language.
A may include one or more processors and a computer-readable medium including instructions that, when executed by the one or more processors, cause the system to perform operations. According to the operations, the system may receive, by a computing system, an input to be provided to an machine learning model (MLM). The system may determine, by the computing system, one or more characteristics of the input to be provided to the MLM. The system may access, by the computing system, a database including a list of one or more MLMs and respective attributes of each of the one or more MLMs. The system may predict, by an artificial intelligence model implemented on the computing system, expected values for each of the respective attributes of the one or more MLMs, the expected values based at least in part on the respective attributes of the MLMs of the one or more characteristics of the input. The system may generate, by the computing system, a recommendation list may include at least one of the one or more MLMs, the respective expected values of each of the one or more MLMs of the recommendation list. The system may provide, by the computing system, the input to a selected MLM of the recommendation list.
In some embodiments, the MLMs may include large language models. The artificial intelligence model may include at least one of a convolutional neural network, recurrent neural network, or a large language model. The attributes may include at least one of an accuracy rating, a latency rating, and a computational cost rating. The artificial intelligence model may be associated with a single tenant of a cloud-services provider. The one or more characteristics may include at least one of a prompt type, a length, or a language.
A non-transitory computer-readable medium may include instructions that, when executed by one or more processors, cause the one or more processors to perform operations. The operations may include receiving, by a computing system, an input to be provided to a machine learning model (MLM). The operations may include determining, by the computing system, one or more characteristics of the input to be provided to the MLM. The operations may include accessing, by the computing system, a database may include a list of one or more MLMs and respective attributes of each of the one or more MLMs. The operations may include predicting, by an artificial intelligence model implemented on the computing system, expected values for each of the respective attributes of the one or more MLMs, the expected values based at least in part on the respective attributes of the MLMs of the one or more characteristics of the input. The operations may include generating, by the computing system, a recommendation list including at least one of the one or more MLMs, the expected values of each of the one or more MLMs of the recommendation list. The operations may include providing, by the computing system, the input to a selected MLM of the recommendation list.
Large language models (LLMs) have become more and more prevalent in many areas of society in recent years. The ability of LLMs to analyze and extract information from various sources, generate text, answer questions, etc. has proved to be a valuable tool to many users. However, not all LLMs perform exactly the same. Each different LLM may have strengths and weaknesses that make that LLM well suited for some applications and poorly suited for other applications. For example, a popular LLM, ChatGPT, may be accurate and precise but computationally expensive. ChatGPT may also be sensitive to the quality of input—unexpected or poorly constructed inputs may lead to poor results. LLaMA, another LLM, may be more easily customized than ChatGPT and less computationally expensive to operate, but may be less accurate and precise. Other models may be better suited to accurate document summarization versus text generation, have higher or lower latency, and/or have other differences. Therefore, particular tasks may be better performed by one LLM over another.
As varied as the number of LLMs may be, the variety of users and their reasons for using an LLM is even more so. Individual users may make a relatively small number of requests to LLMs, so the variety of their requests may not be enough to create an appreciable difference between the variety of LLMs available. Enterprise users, however, may have a wide variety of requests (sometimes, “prompts”) and/or a high volume of requests. Choosing an incorrect LLM for a particular prompt may have wide-ranging negative impacts, from inaccuracy leading to loss of revenue, litigation, etc. to exorbitant costs (computationally or otherwise). For example, the user may have a large volume of contracts to be summarized—a task well suited to an LLM. While it may be computationally expensive to process the volume of contracts, the cost of inaccuracy may outweigh the cost of an expensive LLM. By contrast, the same user may have a large volume of sales documents to sort, where accuracy may be important but because the data is simpler (e.g., pre-formatted etc.), a less expensive LLM may be sufficient. The same user may also require a generative AI model to assist as a chat bot, where natural language usage and low latency are paramount. One can easily imagine other use cases as well
The user may choose a particular LLM of the available LLMs to perform all necessary tasks, but there may be trade offs by choosing the particular LLM. Instead, the user may create and/or train their own LLM to perform the tasks. While the proprietary LLM may be tuned to perform tasks for the user, likely the proprietary LLM would still have tradeoffs or downsides when performing certain tasks. Additionally the time and expense to develop a proprietary LLM may be prohibitive. The user may therefore choose to evaluate the available LLMs on their own. However, the testing and benchmarking of each of the LLMs may take significant time and resources, and require specialized knowledge in order to select an appropriate LLM. Thus, an efficient technique for choosing an LLM for a user is needed.
One solution may be to implement an LLM selector service tuned to a user. The user may provide an input to a computing system (e.g., uploaded, typed etc.). The computing system may then parse the input (or prompt) to determine various features of the input. Then, based on the various features, the LLM selector service may access a list of available LLMs. The list of available LLMs may include all LLMs that are publicly available, or just those the user has access to (e.g., with a premium membership), etc.
The LLM selector service may then parse the input in order to determine the characteristics of the input and generate a recommendation list of LLMs. Each LLM included on the recommendation list may have a respective probability score indicating a likelihood of a successful response from the LLM according to user specifications. The LLM selector service may then provide the input to the LLM with the highest probability score and receive an output.
In order to generate probability scores, the LLM selector service may include a machine learning model (MLM) that has been trained on prompts similar to the input. Furthermore, the user may configure the LLM selector service to weight certain characteristics of the various LLMs more or less heavily for a particular input type. The user may also configure different weights for different input types. Therefore, the user may quickly and efficiently select an LLM for various uses, saving computational resources, time, and money.
The input parser 104 may be a service implemented by the computing system 102 and include dedicated hardware and/or software components. The input parser 104 may include one or more MLMs and/or artificial intelligence (AI) engines configured to perform feature extraction, text recognition, context analysis, sentiment analysis, etc. on prompts provided to the input parser 104. To perform these processes, the input parser 104 may include a convolutional neural network (CNN) model, a recurrent neural network (RNN) model, natural language processing (NLP) model, an LLM, and/or any other suitable machine learning model. Using the input parser 104, the computing system 102 may perform feature extraction and processing of large volumes of data at rates beyond the capability of any human. Furthermore, the input parser 104 (and/or the MLM/AI therein) may be trained using multiple data types. For example, the input parser 104 may be trained to analyze contracts, financial reports, computer code, written statements, news articles, intelligence reports, and/or any other type of data. In other words, the input parser 104 may be able to efficiently analyze large volumes (e.g., TBs of data) across many different types and formats.
The input parser 104 may be configured to determine one or more characteristics of inputs (e.g., using feature extraction). The one or more characteristics may be provided in an initial configuration. For example, the user may train the input parser 104 to identify a subset of key words, characters, formatting, etc. to associate an input with a prompt type. For a contract, the input parser 104 may identify features (or characteristics) such as a title, section headings (e.g., terms, signatures, etc.) that may indicate that the prompt is a contract to be analyzed. Additionally or alternatively, the input parser 104 may be trained that a prompt of less than predetermined threshold (e.g., 300 characters) is likely a request for a generative output (e.g., using a generative AI model). If some number of detected features all correspond to a particular prompt type, the input parser 104 may then determine that prompt is of the particular prompt type.
Upon determining the prompt type, the input parser 104 may identify additional characteristics of the prompt, according to some predetermined settings. For example, the predetermined settings may indicate that for computer code, comments are to be summarized for executable lines of code. Upon determining that a prompt includes computer code, the input parser 104 may extract some or all of the comments included in the computer code, flagging the comments for later processing.
In some embodiments, the input parser 104 may identify particular characteristics of a prompt without being configured to identify the particular characteristics. For example, the input parser 104 may be configured to identify sales projections. After an initial configuration/training based on provided datasets (e.g., annotated datasets), the input parser 104 may then determine that sales projections prompts include other characteristics/features common to sales projections not included in the initial configuration. The examples described above (e.g., contracts, sales projections, etc.) are not limiting; one of ordinary skill in the art would recognize many different prompt types, characteristics, etc.
The service 106 may be a service implemented by the computing system 102 and include dedicated hardware and/or software components. The service 106 may include one or more MLMs and/or artificial intelligence (AI) engines configured to analyze various attributes of the available LLMs to the characteristics of the prompt identified by the input parser 104. The various attributes of the available LLMs may include a computational cost, a latency, an accuracy metric, a precision metric, and other such attributes. The attributes of a particular LLM of the available LLMs may be dependent (at least in part) on the characteristics of the prompt. For example, the particular LLM may process a computer code-based prompt quickly (i.e., low latency) while the same LLM may process a complex legal document slowly. In other words, the attributes of each LLM may change based on the prompt. Thus, by comparing the attributes of the prompt to the characteristics of the prompt identified by the input parser 104, the service 106 may more accurately predict an LLM’s performance with a given prompt than just using generic metrics.
The service 106 may include an LLM, a matrix factorization model, CNN, RNN, autoencoder, and/or any other suitable machine learning model. The models used by the service 106 may include one or more nodes, layers, etc. representing the attributes of the LLM tuned by user parameters. For example, a first user (with a first prompt type) may value accuracy over latency—ensuring a more correct result over a fast result. The same user may with a second prompt type may value lower computational cost over any other attribute. The service 106 may therefore adjust the weights assigned to the nodes, layers, etc. according to the user parameters. The service 106 may be provided the user parameters as part of an initial configuration process. For example, training data may be provided to the service 106 that includes annotations (e.g., indicating characteristics, a prompt type, etc.) and weights assigned to that prompt type and/or characteristics. In another example, the service 106 may be reconfigured by the user at any time (e.g., via an API, user interface, etc.). Before supplying the service 106 with a prompt, the user may customize the weights to be used for that particular prompt. In yet another example, the service 106 may adjust the weights for future prompts after being retrained on annotated results. One or ordinary skill in the art would recognize many different possibilities.
The model list 108 may be included in the computing system 102 or may be a remote database or list of LLMs available to the user via the service 106. The model list 108 may indicate the various attributes of each LLM, account information for the LLM and the user (e.g., user credentials for an LLM service), and/or other such data. The model list 108 may also provide links, addresses, etc. for each LLM, whether the LLMs are executed on the computing system 102 (or in a different tenancy of the cloud services provider) or externally on a remote computing system.
At 103, the computing system 102 may receive an input 110. The input 110 may be received directly from a user (e.g., typed into a UI, uploaded as an image, etc.), transmitted via an API, or any other suitable method. The input 110 may include data such as text, images, video, computer code, etc. In some embodiments, the input 110 may also indicate weights to be used by the service 106. For example, the user may provide a research question as the input 110. The user may also indicate (in the input 110) weights such as cost=.7, accuracy=.9, latency =.4, meaning that cost is more important than latency, but not more important than accuracy. The computing system 102 may then reconfigure the service 106 according to the indicated weights.
At 105, the input parser 104 may parse the input 110 and extract one or more features (or characteristics) from the input 110. For example, the input parser 104 may determine a prompt type, prompt length, language, key words/phrases, etc. The input parser 104 may then generate a service input including some or all of the features. The service input may be formatted in such a way that the service 106 can ingest and utilize the features to recommend an LLM from the model list 108. In some embodiments, the input parser 104 may be included in the service, using the same ML/AI model(s). Then, a first layer(s) of the ML/AI models may be considered the input parser 104, and the extracted features may be passed through the AI models to subsequent layers.
At 107, the service 106 may access the available LLMs and the data indicating the attributes of each from the model list 110. The service 106 may then receive the input 110 and/or the service input. The service 106 may then compare the characteristics of the service input to with the various attributes of each of the LLMs in the model list. The service 106 may also utilize the user parameters (i.e., the weights) to compare the characteristics and the attributes. Based at least in part on the comparison, the service 106 may determine probability scores for a subset of the available LLMs. The probability scores may indicate a likelihood that each LLM of the subset LLM would provide a best-fit response for the user. The service 106 may then generate the recommendation list 112 to include the subset of LLMs and the respective probability scores.
The computing system 102 may then compare some or all of the probability scores to a threshold. If the highest probability score is above the certain threshold, at 109 the select the LLM with the highest probability score (a selected model 114). If the highest probability score is below a certain threshold, the computing system 102 may output the recommendation list 112 to the user for further input. For example, the probability scores may be expressed as a percentage and the threshold may be set to 75%. In the example above, the service 106 may determine that the LLM with the highest likelihood of generating a satisfactory response to the input 110 (a research question in this example), the computing system 102 may output the recommendation list to the user so the user may select an LLM from the list. In some embodiments, the threshold may be set during an initial configuration. Additionally or alternatively, the threshold may be set by a user parameter (e.g., provided in the input 110). In another embodiment, the computing system 102 may not compare the probability scores to a threshold, and simply output the recommendation list 112 to the user. In yet another embodiment, the computing system 102 may choose the selected model 114 the LLM without comparing the scores to a threshold.
At 111, the computing system 102 may provide the input 110 to the selected model 114. The selected model 114 may be implemented on the computing system 102 or may be implemented on a remote computing system. The input 110 may then be provided to the selected model 114 via an API, portal, or other such connection.
At 113, the computing system 102 may provide an output 116 to the user. The output 116 may be received by the computing system 102 from the selected model 114.
The rules based filter 204 may be configured to determine certain characteristics of an input 205. These certain characteristics may be used by the input analysis layer 206 to process the input 205. For example, the input 114 may include a title, data, user annotations, user parameters, and/or other such data. The rules based filter may determine that the input 205 is an executable computer code. The input analysis layer 206 may then be configured to extract features/characteristics such as comments, commands, libraries, etc. from the input 205. If, by contrast, the input 205 is a contract, the input analysis layer 206 may be configured to identify language, importance, etc.
The input 205 may then be provided to the input analysis layer 206. The input analysis layer 206 may perform more detailed feature extraction on the input 205 to generate a service input 208. The input analysis layer 206 may include one or more ML/AI models such as an LLM, an RNN, a CNN, etc. configured to identify characteristics of the input 205. The input analysis layer 206 may determine a prompt type of the input 205 (e.g., computer code, contract, chat request, research question, etc.), a prompt length (e.g., number of characters, words, etc.), a language, an importance, etc. The input analysis layer 206 may determine the one or more characteristics from the data in the prompt alone (e.g., by analyzing the data in the input) and/or from the annotations/user parameters of the input 205 (e.g., the importance). The input parser 202 may generate a service input 208 to include at least some of the characteristics of the input 205 and/or the input 205 itself.
The service 220 may receive the service input 208 from the input parser 202. The service 220 may also access user parameters 212. The user parameters 212 may be included in the service input, may be provided during an initial configuration, and/or may be provided via an input (e.g., via a UI). The user parameters 212 may include weights of various attributes of the LLM and indicate an importance to the user of the various parameters. As seen in
After receiving the service input 208 and the user parameters 212, the service 220 may access the model list 223 (similar to the model list 110 in
The service 220 may provide the service input 208, the user parameters 212, and/or the model list 223 to the AI model 222. The AI model 222 may include an LLM, a CNN, an RNN, and/or any other type of model suitable to recommend a model. The AI model 222 may generate a recommendation list 224 to include one or more of the models from the model list 223. The recommendation list 224 may include data indicating how the respective models are expected to perform according to the user parameters 212, and/or include an overall probability score of the respective model providing a successful response. As seen in
By contrast, the recommendation list 224 may indicate that the MLM-A (6, 3, 1) in expected performance per the input 205, the service input 208, and/or the user parameters 212. The recommendation list 224 therefore indicates that the MLM-A is expected to match the user parameters 212 somewhat well for latency (6/10), and poorly for accuracy (3/10) and computational cost (1/10). The overall probability score may therefore be a 3, indicating that the MLM-A is not likely a good fit for the user based on the user parameters 212 and the input 205.
In some embodiments, the system 200 may output the recommendation list 224 to the user for further input. For example, the recommendation list 224 may be displayed on a UI that provides a link for the user to choose a model from the recommendation list 224. Upon receiving a user input, the system 200 may designate one of the models as a selected model 226 (e.g., the MLM-A). In other embodiments, the user parameters 212 may include a threshold. The threshold may indicate a probability score above which the system 200 is to automatically provide the input to the selected LLM 226. For example, of the threshold is set at 8/10, the service 220 (and/or the system 200) may provide the input 205 to the selected model 226 (e.g., via an API or other suitable means). The output 216 from the selected model 226 may then be provided to the user. In some embodiments, the output 216 may be utilized to retrain the input parser 202 and/or the service 220 to improve the accuracy of the probability scores, feature extraction, and other operations performed by the components of the system 200.
The dataset 304 may include data of varying prompt types. The data may include documents, videos, questions, queries, images, computer code, or any other such data. The data may be annotated to indicate characteristics such as prompt type, language, importance, etc. The annotations may allow the AI model 302 to determine characteristics common to respective prompt types. Some or all of these characteristics may be annotated in the dataset 304, and/or the AI model 302 may infer some or all of the characteristics during the training phase.
Annotated inputs 308 may be provided to the data synthesizer 306. The data synthesizer 306 may be configured to modify the annotated inputs (i.e., the dataset 304) to generate synthesized data 310. The data synthesizer 306 may include various conversion techniques to generate the synthesized data 310. For example, some of the annotated inputs 308 may be written in a first language (e.g., English). The data synthesizer 306 may generate versions in any number of languages. Additionally or alternatively, the data synthesizer 306 may replace words or characters in the data with synonyms, etc. Thus the synthesized data 310 may be 4 to five times larger than the annotated inputs, allowing the AI model to be trained on a much larger dataset.
During the training phase, the AI model 302 may be provided with the annotated inputs 308 and/or the synthesized data 310. The annotated inputs 308 and synthesized data 310 may be used to train the AI model 302 by tuning variables within the AI model 302 such as batch size, epochs, learning rates, prompt types, etc. Preliminary results generated by the AI model 302 (i.e., model recommendations) may then be validated either in a supervised or unsupervised training schema. Once the AI model 302 generates satisfactory results, the AI model 302 may be deployed by the cloud services provider.
At step 402, the method 400 may include receiving, by a computing system, an input to be provided to a machine learning model (MLM). The computing system may be similar to the computing system 102 in
At step 404, the method 400 may include determining, by the computing system, one or more characteristics of the input to be provided to the MLM. The one or more characteristics may be determined by an AI model (e.g., the input parser 202). The one or more characteristics may include a prompt type, a length, or a language. The one or more characteristics may be determined via features extraction performed by an LLM, CNN, RNN, or any other suitable model.
At step 406, the method 400 may include accessing, by the computing system, a database (e.g., the master list 223) including a list of one or more MLMs and respective attributes of each of the one or more MLMs. The attributes for each of the one or more MLMs may be determined by the computing system during a training phase, and/or may be determined by accessing external data associated with the MLMs.
At step 408, the method 400 may include predicting, by an artificial intelligence model implemented on the computing system, expected values for each of the respective attributes of the one or more MLMs, the expected values based at least in part on the respective attributes of the MLMs of the one or more characteristics of the input. The AI model may include an LLM, RNN, CNN, or any other suitable model. The AI model may compare the one or more characteristics of the input with the attributes of each of the one or more LLMs, along with the user parameters (e.g., weights). Thus, the AI model may determine an LLM of the one or more LLMs that is likely to provide a suitable result base on the characteristics of the input and the user parameters. The AI model may generate a probability score for each LLM, representing the likelihood of successful response given the prompt.
At step 410, the method 400 may include generating, by the computing system, a recommendation list including at least one of the one or more MLMs, the respective expected values of each of the one or more MLMs of the recommendation list. In some embodiments, the recommendation list may include the probability scores of each of the MLMs. In some embodiments, the recommendation list may be output to a user such that the user may select an MLM. In other embodiments, the computing system may select the MLM with the highest probability score from the recommendation list.
At step 412, the method 400 may include providing, by the computing system, the input to a selected MLM of the recommendation list. The computing system may provide the input to the selected MLM via an API, portal, or other suitable means.
In some embodiments, the method may include accessing, by the computing system, a dataset comprising a plurality of inputs (as described in
As noted above, infrastructure as a service (IaaS) is one particular type of cloud computing. IaaS can be configured to provide virtualized computing resources over a public network (e.g., the Internet). In an IaaS model, a cloud computing provider can host the infrastructure components (e.g., servers, storage devices, network nodes (e.g., hardware), deployment software, platform virtualization (e.g., a hypervisor layer), or the like). In some cases, an IaaS provider may also supply a variety of services to accompany those infrastructure components (example services include billing software, monitoring software, logging software, load balancing software, clustering software, etc.). Thus, as these services may be policy-driven, IaaS users may be able to implement policies to drive load balancing to maintain application availability and performance.
In some instances, IaaS customers may access resources and services through a wide area network (WAN), such as the Internet, and can use the cloud provider's services to install the remaining elements of an application stack. For example, the user can log in to the IaaS platform to create virtual machines (VMs), install operating systems (OSs) on each VM, deploy middleware such as databases, create storage buckets for workloads and backups, and even install enterprise software into that VM. Customers can then use the provider's services to perform various functions, including balancing network traffic, troubleshooting application issues, monitoring performance, managing disaster recovery, etc.
In most cases, a cloud computing model will require the participation of a cloud provider. The cloud provider may, but need not be, a third-party service that specializes in providing (e.g., offering, renting, selling) IaaS. An entity might also opt to deploy a private cloud, becoming its own provider of infrastructure services.
In some examples, IaaS deployment is the process of putting a new application, or a new version of an application, onto a prepared application server or the like. It may also include the process of preparing the server (e.g., installing libraries, daemons, etc.). This is often managed by the cloud provider, below the hypervisor layer (e.g., the servers, storage, network hardware, and virtualization). Thus, the customer may be responsible for handling (OS), middleware, and/or application deployment (e.g., on self-service virtual machines (e.g., that can be spun up on demand)) or the like.
In some examples, IaaS provisioning may refer to acquiring computers or virtual hosts for use, and even installing needed libraries or services on them. In most cases, deployment does not include provisioning, and the provisioning may need to be performed first.
In some cases, there are two different challenges for IaaS provisioning. First, there is the initial challenge of provisioning the initial set of infrastructure before anything is running. Second, there is the challenge of evolving the existing infrastructure (e.g., adding new services, changing services, removing services, etc.) once everything has been provisioned. In some cases, these two challenges may be addressed by enabling the configuration of the infrastructure to be defined declaratively. In other words, the infrastructure (e.g., what components are needed and how they interact) can be defined by one or more configuration files. Thus, the overall topology of the infrastructure (e.g., what resources depend on which, and how they each work together) can be described declaratively. In some instances, once the topology is defined, a workflow can be generated that creates and/or manages the different components described in the configuration files.
In some examples, an infrastructure may have many interconnected elements. For example, there may be one or more virtual private clouds (VPCs) (e.g., a potentially on-demand pool of configurable and/or shared computing resources), also known as a core network. In some examples, there may also be one or more inbound/outbound traffic group rules provisioned to define how the inbound and/or outbound traffic of the network will be set up and one or more virtual machines (VMs). Other infrastructure elements may also be provisioned, such as a load balancer, a database, or the like. As more and more infrastructure elements are desired and/or added, the infrastructure may incrementally evolve.
In some instances, continuous deployment techniques may be employed to enable deployment of infrastructure code across various virtual computing environments. Additionally, the described techniques can enable infrastructure management within these environments. In some examples, service teams can write code that is desired to be deployed to one or more, but often many, different production environments (e.g., across various different geographic locations, sometimes spanning the entire world). However, in some examples, the infrastructure on which the code will be deployed must first be set up. In some instances, the provisioning can be done manually, a provisioning tool may be utilized to provision the resources, and/or deployment tools may be utilized to deploy the code once the infrastructure is provisioned.
The VCN 506 can include a local peering gateway (LPG) 510 that can be communicatively coupled to a secure shell (SSH) VCN 512 via an LPG 510 contained in the SSH VCN 512. The SSH VCN 512 can include an SSH subnet 514, and the SSH VCN 512 can be communicatively coupled to a control plane VCN 516 via the LPG 510 contained in the control plane VCN 516. Also, the SSH VCN 512 can be communicatively coupled to a data plane VCN 518 via an LPG 510. The control plane VCN 516 and the data plane VCN 518 can be contained in a service tenancy 519 that can be owned and/or operated by the IaaS provider.
The control plane VCN 516 can include a control plane demilitarized zone (DMZ) tier 520 that acts as a perimeter network (e.g., portions of a corporate network between the corporate intranet and external networks). The DMZ-based servers may have restricted responsibilities and help keep breaches contained. Additionally, the DMZ tier 520 can include one or more load balancer (LB) subnet(s) 522, a control plane app tier 524 that can include app subnet(s) 526, a control plane data tier 528 that can include database (DB) subnet(s) 530 (e.g., frontend DB subnet(s) and/or backend DB subnet(s)). The LB subnet(s) 522 contained in the control plane DMZ tier 520 can be communicatively coupled to the app subnet(s) 526 contained in the control plane app tier 524 and an Internet gateway 534 that can be contained in the control plane VCN 516, and the app subnet(s) 526 can be communicatively coupled to the DB subnet(s) 530 contained in the control plane data tier 528 and a service gateway 536 and a network address translation (NAT) gateway 538. The control plane VCN 516 can include the service gateway 536 and the NAT gateway 538.
The control plane VCN 516 can include a data plane mirror app tier 540 that can include app subnet(s) 526. The app subnet(s) 526 contained in the data plane mirror app tier 540 can include a virtual network interface controller (VNIC) 542 that can execute a compute instance 544. The compute instance 544 can communicatively couple the app subnet(s) 526 of the data plane mirror app tier 540 to app subnet(s) 526 that can be contained in a data plane app tier 546.
The data plane VCN 518 can include the data plane app tier 546, a data plane DMZ tier 548, and a data plane data tier 550. The data plane DMZ tier 548 can include LB subnet(s) 522 that can be communicatively coupled to the app subnet(s) 526 of the data plane app tier 546 and the Internet gateway 534 of the data plane VCN 518. The app subnet(s) 526 can be communicatively coupled to the service gateway 536 of the data plane VCN 518 and the NAT gateway 538 of the data plane VCN 518. The data plane data tier 550 can also include the DB subnet(s) 530 that can be communicatively coupled to the app subnet(s) 526 of the data plane app tier 546.
The Internet gateway 534 of the control plane VCN 516 and of the data plane VCN 518 can be communicatively coupled to a metadata management service 552 that can be communicatively coupled to public Internet 554. Public Internet 554 can be communicatively coupled to the NAT gateway 538 of the control plane VCN 516 and of the data plane VCN 518. The service gateway 536 of the control plane VCN 516 and of the data plane VCN 518 can be communicatively coupled to cloud services 556.
In some examples, the service gateway 536 of the control plane VCN 516 or of the data plane VCN 518 can make application programming interface (API) calls to cloud services 556 without going through public Internet 554. The API calls to cloud services 556 from the service gateway 536 can be one-way: the service gateway 536 can make API calls to cloud services 556, and cloud services 556 can send requested data to the service gateway 536. But, cloud services 556 may not initiate API calls to the service gateway 536.
In some examples, the secure host tenancy 504 can be directly connected to the service tenancy 519, which may be otherwise isolated. The secure host subnet 508 can communicate with the SSH subnet 514 through an LPG 510 that may enable two-way communication over an otherwise isolated system. Connecting the secure host subnet 508 to the SSH subnet 514 may give the secure host subnet 508 access to other entities within the service tenancy 519.
The control plane VCN 516 may allow users of the service tenancy 519 to set up or otherwise provision desired resources. Desired resources provisioned in the control plane VCN 516 may be deployed or otherwise used in the data plane VCN 518. In some examples, the control plane VCN 516 can be isolated from the data plane VCN 518, and the data plane mirror app tier 540 of the control plane VCN 516 can communicate with the data plane app tier 546 of the data plane VCN 518 via VNICs 542 that can be contained in the data plane mirror app tier 540 and the data plane app tier 546.
In some examples, users of the system, or customers, can make requests, for example create, read, update, or delete (CRUD) operations, through public Internet 554 that can communicate the requests to the metadata management service 552. The metadata management service 552 can communicate the request to the control plane VCN 516 through the Internet gateway 534. The request can be received by the LB subnet(s) 522 contained in the control plane DMZ tier 520. The LB subnet(s) 522 may determine that the request is valid, and in response to this determination, the LB subnet(s) 522 can transmit the request to app subnet(s) 526 contained in the control plane app tier 524. If the request is validated and requires a call to public Internet 554, the call to public Internet 554 may be transmitted to the NAT gateway 538 that can make the call to public Internet 554. Metadata that may be desired to be stored by the request can be stored in the DB subnet(s) 530.
In some examples, the data plane mirror app tier 540 can facilitate direct communication between the control plane VCN 516 and the data plane VCN 518. For example, changes, updates, or other suitable modifications to configuration may be desired to be applied to the resources contained in the data plane VCN 518. Via a VNIC 542, the control plane VCN 516 can directly communicate with, and can thereby execute the changes, updates, or other suitable modifications to configuration to, resources contained in the data plane VCN 518.
In some embodiments, the control plane VCN 516 and the data plane VCN 518 can be contained in the service tenancy 519. In this case, the user, or the customer, of the system may not own or operate either the control plane VCN 516 or the data plane VCN 518. Instead, the IaaS provider may own or operate the control plane VCN 516 and the data plane VCN 518, both of which may be contained in the service tenancy 519. This embodiment can enable isolation of networks that may prevent users or customers from interacting with other users’, or other customers’, resources. Also, this embodiment may allow users or customers of the system to store databases privately without needing to rely on public Internet 554, which may not have a desired level of threat prevention, for storage.
In other embodiments, the LB subnet(s) 522 contained in the control plane VCN 516 can be configured to receive a signal from the service gateway 536. In this embodiment, the control plane VCN 516 and the data plane VCN 518 may be configured to be called by a customer of the IaaS provider without calling public Internet 554. Customers of the IaaS provider may desire this embodiment since database(s) that the customers use may be controlled by the IaaS provider and may be stored on the service tenancy 519, which may be isolated from public Internet 554.
The control plane VCN 616 can include a control plane DMZ tier 620 (e.g., the control plane DMZ tier 520 of
The control plane VCN 616 can include a data plane mirror app tier 640 (e.g., the data plane mirror app tier 540 of
The Internet gateway 634 contained in the control plane VCN 616 can be communicatively coupled to a metadata management service 652 (e.g., the metadata management service 552 of
In some examples, the data plane VCN 618 can be contained in the customer tenancy 621. In this case, the IaaS provider may provide the control plane VCN 616 for each customer, and the IaaS provider may, for each customer, set up a unique compute instance 644 that is contained in the service tenancy 619. Each compute instance 644 may allow communication between the control plane VCN 616, contained in the service tenancy 619, and the data plane VCN 618 that is contained in the customer tenancy 621. The compute instance 644 may allow resources, that are provisioned in the control plane VCN 616 that is contained in the service tenancy 619, to be deployed or otherwise used in the data plane VCN 618 that is contained in the customer tenancy 621.
In other examples, the customer of the IaaS provider may have databases that live in the customer tenancy 621. In this example, the control plane VCN 616 can include the data plane mirror app tier 640 that can include app subnet(s) 626. The data plane mirror app tier 640 can reside in the data plane VCN 618, but the data plane mirror app tier 640 may not live in the data plane VCN 618. That is, the data plane mirror app tier 640 may have access to the customer tenancy 621, but the data plane mirror app tier 640 may not exist in the data plane VCN 618 or be owned or operated by the customer of the IaaS provider. The data plane mirror app tier 640 may be configured to make calls to the data plane VCN 618 but may not be configured to make calls to any entity contained in the control plane VCN 616. The customer may desire to deploy or otherwise use resources in the data plane VCN 618 that are provisioned in the control plane VCN 616, and the data plane mirror app tier 640 can facilitate the desired deployment, or other usage of resources, of the customer.
In some embodiments, the customer of the IaaS provider can apply filters to the data plane VCN 618. In this embodiment, the customer can determine what the data plane VCN 618 can access, and the customer may restrict access to public Internet 654 from the data plane VCN 618. The IaaS provider may not be able to apply filters or otherwise control access of the data plane VCN 618 to any outside networks or databases. Applying filters and controls by the customer onto the data plane VCN 618, contained in the customer tenancy 621, can help isolate the data plane VCN 618 from other customers and from public Internet 654.
In some embodiments, cloud services 656 can be called by the service gateway 636 to access services that may not exist on public Internet 654, on the control plane VCN 616, or on the data plane VCN 618. The connection between cloud services 656 and the control plane VCN 616 or the data plane VCN 618 may not be live or continuous. Cloud services 656 may exist on a different network owned or operated by the IaaS provider. Cloud services 656 may be configured to receive calls from the service gateway 636 and may be configured to not receive calls from public Internet 654. Some cloud services 656 may be isolated from other cloud services 656, and the control plane VCN 616 may be isolated from cloud services 656 that may not be in the same region as the control plane VCN 616. For example, the control plane VCN 616 may be located in “Region 1,” and cloud service “Deployment 5,” may be located in Region 1 and in “Region 2.” If a call to Deployment 5 is made by the service gateway 636 contained in the control plane VCN 616 located in Region 1, the call may be transmitted to Deployment 5 in Region 1. In this example, the control plane VCN 616, or Deployment 5 in Region 1, may not be communicatively coupled to, or otherwise in communication with, Deployment 5 in Region 2.
The control plane VCN 716 can include a control plane DMZ tier 720 (e.g., the control plane DMZ tier 520 of
The data plane VCN 718 can include a data plane app tier 746 (e.g., the data plane app tier 546 of
The untrusted app subnet(s) 762 can include one or more primary VNICs 764(1)-(N) that can be communicatively coupled to tenant virtual machines (VMs) 766(1)-(N). Each tenant VM 766(1)-(N) can be communicatively coupled to a respective app subnet 767(1)-(N) that can be contained in respective container egress VCNs 768(1)-(N) that can be contained in respective customer tenancies 770(1)-(N). Respective secondary VNICs 772(1)-(N) can facilitate communication between the untrusted app subnet(s) 762 contained in the data plane VCN 718 and the app subnet contained in the container egress VCNs 768(1)-(N). Each container egress VCNs 768(1)-(N) can include a NAT gateway 738 that can be communicatively coupled to public Internet 754 (e.g., public Internet 554 of
The Internet gateway 734 contained in the control plane VCN 716 and contained in the data plane VCN 718 can be communicatively coupled to a metadata management service 752 (e.g., the metadata management system 552 of
In some embodiments, the data plane VCN 718 can be integrated with customer tenancies 770. This integration can be useful or desirable for customers of the IaaS provider in some cases such as a case that may desire support when executing code. The customer may provide code to run that may be destructive, may communicate with other customer resources, or may otherwise cause undesirable effects. In response to this, the IaaS provider may determine whether to run code given to the IaaS provider by the customer.
In some examples, the customer of the IaaS provider may grant temporary network access to the IaaS provider and request a function to be attached to the data plane app tier 746. Code to run the function may be executed in the VMs 766(1)-(N), and the code may not be configured to run anywhere else on the data plane VCN 718. Each VM 766(1)-(N) may be connected to one customer tenancy 770. Respective containers 771(1)-(N) contained in the VMs 766(1)-(N) may be configured to run the code. In this case, there can be a dual isolation (e.g., the containers 771(1)-(N) running code, where the containers 771(1)-(N) may be contained in at least the VM 766(1)-(N) that are contained in the untrusted app subnet(s) 762), which may help prevent incorrect or otherwise undesirable code from damaging the network of the IaaS provider or from damaging a network of a different customer. The containers 771(1)-(N) may be communicatively coupled to the customer tenancy 770 and may be configured to transmit or receive data from the customer tenancy 770. The containers 771(1)-(N) may not be configured to transmit or receive data from any other entity in the data plane VCN 718. Upon completion of running the code, the IaaS provider may kill or otherwise dispose of the containers 771(1)-(N).
In some embodiments, the trusted app subnet(s) 760 may run code that may be owned or operated by the IaaS provider. In this embodiment, the trusted app subnet(s) 760 may be communicatively coupled to the DB subnet(s) 730 and be configured to execute CRUD operations in the DB subnet(s) 730. The untrusted app subnet(s) 762 may be communicatively coupled to the DB subnet(s) 730, but in this embodiment, the untrusted app subnet(s) may be configured to execute read operations in the DB subnet(s) 730. The containers 771(1)-(N) that can be contained in the VM 766(1)-(N) of each customer and that may run code from the customer may not be communicatively coupled with the DB subnet(s) 730.
In other embodiments, the control plane VCN 716 and the data plane VCN 718 may not be directly communicatively coupled. In this embodiment, there may be no direct communication between the control plane VCN 716 and the data plane VCN 718. However, communication can occur indirectly through at least one method. An LPG 710 may be established by the IaaS provider that can facilitate communication between the control plane VCN 716 and the data plane VCN 718. In another example, the control plane VCN 716 or the data plane VCN 718 can make a call to cloud services 756 via the service gateway 736. For example, a call to cloud services 756 from the control plane VCN 716 can include a request for a service that can communicate with the data plane VCN 718.
The control plane VCN 816 can include a control plane DMZ tier 820 (e.g., the control plane DMZ tier 520 of
The data plane VCN 818 can include a data plane app tier 846 (e.g., the data plane app tier 546 of
The untrusted app subnet(s) 862 can include primary VNICs 864(1)-(N) that can be communicatively coupled to tenant virtual machines (VMs) 866(1)-(N) residing within the untrusted app subnet(s) 862. Each tenant VM 866(1)-(N) can run code in a respective container 867(1)-(N), and be communicatively coupled to an app subnet 826 that can be contained in a data plane app tier 846 that can be contained in a container egress VCN 868. Respective secondary VNICs 872(1)-(N) can facilitate communication between the untrusted app subnet(s) 862 contained in the data plane VCN 818 and the app subnet contained in the container egress VCN 868. The container egress VCN can include a NAT gateway 838 that can be communicatively coupled to public Internet 854 (e.g., public Internet 554 of
The Internet gateway 834 contained in the control plane VCN 816 and contained in the data plane VCN 818 can be communicatively coupled to a metadata management service 852 (e.g., the metadata management system 552 of
In some examples, the pattern illustrated by the architecture of block diagram 800 of
In other examples, the customer can use the containers 867(1)-(N) to call cloud services 856. In this example, the customer may run code in the containers 867(1)-(N) that requests a service from cloud services 856. The containers 867(1)-(N) can transmit this request to the secondary VNICs 872(1)-(N) that can transmit the request to the NAT gateway that can transmit the request to public Internet 854. Public Internet 854 can transmit the request to LB subnet(s) 822 contained in the control plane VCN 816 via the Internet gateway 834. In response to determining the request is valid, the LB subnet(s) can transmit the request to app subnet(s) 826 that can transmit the request to cloud services 856 via the service gateway 836.
It should be appreciated that IaaS architectures 500, 600, 700, 800 depicted in the figures may have other components than those depicted. Further, the embodiments shown in the figures are only some examples of a cloud infrastructure system that may incorporate an embodiment of the disclosure. In some other embodiments, the IaaS systems may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration or arrangement of components.
In certain embodiments, the IaaS systems described herein may include a suite of applications, middleware, and database service offerings that are delivered to a customer in a self-service, subscription-based, elastically scalable, reliable, highly available, and secure manner. An example of such an IaaS system is the Oracle Cloud Infrastructure (OCI) provided by the present assignee.
Bus subsystem 902 provides a mechanism for letting the various components and subsystems of computer system 900 communicate with each other as intended. Although bus subsystem 902 is shown schematically as a single bus, alternative embodiments of the bus subsystem may utilize multiple buses. Bus subsystem 902 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. For example, such architectures may include an Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, which can be implemented as a Mezzanine bus manufactured to the IEEE P1386.1 standard.
Processing unit 904, which can be implemented as one or more integrated circuits (e.g., a conventional microprocessor or microcontroller), controls the operation of computer system 900. One or more processors may be included in processing unit 904. These processors may include single core or multicore processors. In certain embodiments, processing unit 904 may be implemented as one or more independent processing units 932 and/or 934 with single or multicore processors included in each processing unit. In other embodiments, processing unit 904 may also be implemented as a quad-core processing unit formed by integrating two dual-core processors into a single chip.
In various embodiments, processing unit 904 can execute a variety of programs in response to program code and can maintain multiple concurrently executing programs or processes. At any given time, some or all of the program code to be executed can be resident in processor(s) 904 and/or in storage subsystem 918. Through suitable programming, processor(s) 904 can provide various functionalities described above. Computer system 900 may additionally include a processing acceleration unit 906, which can include a digital signal processor (DSP), a special-purpose processor, and/or the like.
I/O subsystem 908 may include user interface input devices and user interface output devices. User interface input devices may include a keyboard, pointing devices such as a mouse or trackball, a touchpad or touch screen incorporated into a display, a scroll wheel, a click wheel, a dial, a button, a switch, a keypad, audio input devices with voice command recognition systems, microphones, and other types of input devices. User interface input devices may include, for example, motion sensing and/or gesture recognition devices such as the Microsoft Kinect® motion sensor that enables users to control and interact with an input device, such as the Microsoft Xbox® 360 game controller, through a natural user interface using gestures and spoken commands. User interface input devices may also include eye gesture recognition devices such as the Google Glass® blink detector that detects eye activity (e.g., ‘blinking’ while taking pictures and/or making a menu selection) from users and transforms the eye gestures as input into an input device (e.g., Google Glass®). Additionally, user interface input devices may include voice recognition sensing devices that enable users to interact with voice recognition systems (e.g., Siri® navigator), through voice commands.
User interface input devices may also include, without limitation, three dimensional (3D) mice, joysticks or pointing sticks, gamepads and graphic tablets, and audio/visual devices such as speakers, digital cameras, digital camcorders, portable media players, webcams, image scanners, fingerprint scanners, barcode reader 3D scanners, 3D printers, laser rangefinders, and eye gaze tracking devices. Additionally, user interface input devices may include, for example, medical imaging input devices such as computed tomography, magnetic resonance imaging, position emission tomography, medical ultrasonography devices. User interface input devices may also include, for example, audio input devices such as MIDI keyboards, digital musical instruments and the like.
User interface output devices may include a display subsystem, indicator lights, or non-visual displays such as audio output devices, etc. The display subsystem may be a cathode ray tube (CRT), a flat-panel device, such as that using a liquid crystal display (LCD) or plasma display, a projection device, a touch screen, and the like. In general, use of the term "output device" is intended to include all possible types of devices and mechanisms for outputting information from computer system 900 to a user or other computer. For example, user interface output devices may include, without limitation, a variety of display devices that visually convey text, graphics and audio/video information such as monitors, printers, speakers, headphones, automotive navigation systems, plotters, voice output devices, and modems.
Computer system 900 may comprise a storage subsystem 918 that provides a tangible non-transitory computer-readable storage medium for storing software and data constructs that provide the functionality of the embodiments described in this disclosure. The software can include programs, code modules, instructions, scripts, etc., that when executed by one or more cores or processors of processing unit 904 provide the functionality described above. Storage subsystem 918 may also provide a repository for storing data used in accordance with the present disclosure.
As depicted in the example in
System memory 910 may also store an operating system 916. Examples of operating system 916 may include various versions of Microsoft Windows®, Apple Macintosh®, and/or Linux operating systems, a variety of commercially-available UNIX® or UNIX-like operating systems (including without limitation the variety of GNU/Linux operating systems, the Google Chrome® OS, and the like) and/or mobile operating systems such as iOS, Windows® Phone, Android® OS, BlackBerry® OS, and Palm® OS operating systems. In certain implementations where computer system 900 executes one or more virtual machines, the virtual machines along with their guest operating systems (GOSs) may be loaded into system memory 910 and executed by one or more processors or cores of processing unit 904.
System memory 910 can come in different configurations depending upon the type of computer system 900. For example, system memory 910 may be volatile memory (such as random access memory (RAM)) and/or non-volatile memory (such as read-only memory (ROM), flash memory, etc.) Different types of RAM configurations may be provided including a static random access memory (SRAM), a dynamic random access memory (DRAM), and others. In some implementations, system memory 910 may include a basic input/output system (BIOS) containing basic routines that help to transfer information between elements within computer system 900, such as during start-up.
Computer-readable storage media 922 may represent remote, local, fixed, and/or removable storage devices plus storage media for temporarily and/or more permanently containing, storing, computer-readable information for use by computer system 900 including instructions executable by processing unit 904 of computer system 900.
Computer-readable storage media 922 can include any appropriate media known or used in the art, including storage media and communication media, such as but not limited to, volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage and/or transmission of information. This can include tangible computer-readable storage media such as RAM, ROM, electronically erasable programmable ROM (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disk (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or other tangible computer readable media.
By way of example, computer-readable storage media 922 may include a hard disk drive that reads from or writes to non-removable, nonvolatile magnetic media, a magnetic disk drive that reads from or writes to a removable, nonvolatile magnetic disk, and an optical disk drive that reads from or writes to a removable, nonvolatile optical disk such as a CD ROM, DVD, and Blu-Ray® disk, or other optical media. Computer-readable storage media 922 may include, but is not limited to, Zip® drives, flash memory cards, universal serial bus (USB) flash drives, secure digital (SD) cards, DVD disks, digital video tape, and the like. Computer-readable storage media 922 may also include, solid-state drives (SSD) based on non-volatile memory such as flash-memory based SSDs, enterprise flash drives, solid state ROM, and the like, SSDs based on volatile memory such as solid state RAM, dynamic RAM, static RAM, DRAM-based SSDs, magnetoresistive RAM (MRAM) SSDs, and hybrid SSDs that use a combination of DRAM and flash memory based SSDs. The disk drives and their associated computer-readable media may provide non-volatile storage of computer-readable instructions, data structures, program modules, and other data for computer system 900.
Machine-readable instructions executable by one or more processors or cores of processing unit 904 may be stored on a non-transitory computer-readable storage medium. A non-transitory computer-readable storage medium can include physically tangible memory or storage devices that include volatile memory storage devices and/or non-volatile storage devices. Examples of non-transitory computer-readable storage medium include magnetic storage media (e.g., disk or tapes), optical storage media (e.g., DVDs, CDs), various types of RAM, ROM, or flash memory, hard drives, floppy drives, detachable memory drives (e.g., USB drives), or other type of storage device.
Communications subsystem 924 provides an interface to other computer systems and networks. Communications subsystem 924 serves as an interface for receiving data from and transmitting data to other systems from computer system 900. For example, communications subsystem 924 may enable computer system 900 to connect to one or more devices via the Internet. In some embodiments communications subsystem 924 can include radio frequency (RF) transceiver components for accessing wireless voice and/or data networks (e.g., using cellular telephone technology, advanced data network technology, such as 3G, 4G or EDGE (enhanced data rates for global evolution), WiFi (IEEE 802.11 family standards, or other mobile communication technologies, or any combination thereof)), global positioning system (GPS) receiver components, and/or other components. In some embodiments communications subsystem 924 can provide wired network connectivity (e.g., Ethernet) in addition to or instead of a wireless interface.
In some embodiments, communications subsystem 924 may also receive input communication in the form of structured and/or unstructured data feeds 926, event streams 928, event updates 930, and the like on behalf of one or more users who may use computer system 900.
By way of example, communications subsystem 924 may be configured to receive data feeds 926 in real-time from users of social networks and/or other communication services such as Twitter® feeds, Facebook® updates, web feeds such as Rich Site Summary (RSS) feeds, and/or real-time updates from one or more third party information sources.
Additionally, communications subsystem 924 may also be configured to receive data in the form of continuous data streams, which may include event streams 928 of real-time events and/or event updates 930, that may be continuous or unbounded in nature with no explicit end. Examples of applications that generate continuous data may include, for example, sensor data applications, financial tickers, network performance measuring tools (e.g., network monitoring and traffic management applications), clickstream analysis tools, automobile traffic monitoring, and the like.
Communications subsystem 924 may also be configured to output the structured and/or unstructured data feeds 926, event streams 928, event updates 930, and the like to one or more databases that may be in communication with one or more streaming data source computers coupled to computer system 900.
Computer system 900 can be one of various types, including a handheld portable device (e.g., an iPhone® cellular phone, an iPad® computing tablet, a PDA), a wearable device (e.g., a Google Glass® head mounted display), a PC, a workstation, a mainframe, a kiosk, a server rack, or any other data processing system.
Due to the ever-changing nature of computers and networks, the description of computer system 900 depicted in the figure is intended only as a specific example. Many other configurations having more or fewer components than the system depicted in the figure are possible. For example, customized hardware might also be used and/or particular elements might be implemented in hardware, firmware, software (including applets), or a combination. Further, connection to other computing devices, such as network input/output devices, may be employed. Based on the disclosure and teachings provided herein, a person of ordinary skill in the art will appreciate other ways and/or methods to implement the various embodiments.
Although specific embodiments have been described, various modifications, alterations, alternative constructions, and equivalents are also encompassed within the scope of the disclosure. Embodiments are not restricted to operation within certain specific data processing environments, but are free to operate within a plurality of data processing environments. Additionally, although embodiments have been described using a particular series of transactions and steps, it should be apparent to those skilled in the art that the scope of the present disclosure is not limited to the described series of transactions and steps. Various features and aspects of the above-described embodiments may be used individually or jointly.
Further, while embodiments have been described using a particular combination of hardware and software, it should be recognized that other combinations of hardware and software are also within the scope of the present disclosure. Embodiments may be implemented only in hardware, or only in software, or using combinations thereof. The various processes described herein can be implemented on the same processor or different processors in any combination. Accordingly, where components or services are described as being configured to perform certain operations, such configuration can be accomplished, e.g., by designing electronic circuits to perform the operation, by programming programmable electronic circuits (such as microprocessors) to perform the operation, or any combination thereof. Processes can communicate using a variety of techniques including but not limited to conventional techniques for inter process communication, and different pairs of processes may use different techniques, or the same pair of processes may use different techniques at different times.
The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. It will, however, be evident that additions, subtractions, deletions, and other modifications and changes may be made thereunto without departing from the broader spirit and scope as set forth in the claims. Thus, although specific disclosure embodiments have been described, these are not intended to be limiting. Various modifications and equivalents are within the scope of the following claims.
The use of the terms “a” and “an” and “the” and similar referents in the context of describing the disclosed embodiments (especially in the context of the following claims) are to be construed to cover both the singular and the plural, unless otherwise indicated herein or clearly contradicted by context. The terms “comprising,” “having,” “including,” and “containing” are to be construed as open-ended terms (i.e., meaning “including, but not limited to,”) unless otherwise noted. The term “connected” is to be construed as partly or wholly contained within, attached to, or joined together, even if there is something intervening. Recitation of ranges of values herein are merely intended to serve as a shorthand method of referring individually to each separate value falling within the range, unless otherwise indicated herein and each separate value is incorporated into the specification as if it were individually recited herein. All methods described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The use of any and all examples, or exemplary language (e.g., “such as”) provided herein, is intended merely to better illuminate embodiments and does not pose a limitation on the scope of the disclosure unless otherwise claimed. No language in the specification should be construed as indicating any non-claimed element as essential to the practice of the disclosure.
Disjunctive language such as the phrase “at least one of X, Y, or Z,” unless specifically stated otherwise, is intended to be understood within the context as used in general to present that an item, term, etc., may be either X, Y, or Z, or any combination thereof (e.g., X, Y, and/or Z). Thus, such disjunctive language is not generally intended to, and should not, imply that certain embodiments require at least one of X, at least one of Y, or at least one of Z to each be present.
Preferred embodiments of this disclosure are described herein, including the best mode known for carrying out the disclosure. Variations of those preferred embodiments may become apparent to those of ordinary skill in the art upon reading the foregoing description. Those of ordinary skill should be able to employ such variations as appropriate and the disclosure may be practiced otherwise than as specifically described herein. Accordingly, this disclosure includes all modifications and equivalents of the subject matter recited in the claims appended hereto as permitted by applicable law. Moreover, any combination of the above-described elements in all possible variations thereof is encompassed by the disclosure unless otherwise indicated herein.
All references, including publications, patent applications, and patents, cited herein are hereby incorporated by reference to the same extent as if each reference were individually and specifically indicated to be incorporated by reference and were set forth in its entirety herein.
In the foregoing specification, aspects of the disclosure are described with reference to specific embodiments thereof, but those skilled in the art will recognize that the disclosure is not limited thereto. Various features and aspects of the above-described disclosure may be used individually or jointly. Further, embodiments can be utilized in any number of environments and applications beyond those described herein without departing from the broader spirit and scope of the specification. The specification and drawings are, accordingly, to be regarded as illustrative rather than restrictive.
Claims
1. A method, comprising:
- receiving, by a computing system, an input to be provided to a machine learning model (MLM);
- determining, by the computing system, one or more characteristics of the input to be provided to the MLM;
- accessing, by the computing system, a database comprising a list of one or more MLMs and respective attributes of each of the one or more MLMs;
- predicting, by an artificial intelligence model implemented on the computing system, expected values for each of the respective attributes of the one or more MLMs, the expected values based at least in part on the respective attributes of the MLMs of the one or more characteristics of the input;
- generating, by the computing system, a recommendation list comprising at least one of the one or more MLMs, the expected values of each of the one or more MLMs of the recommendation list; and
- providing, by the computing system, the input to a selected MLM of the recommendation list.
2. The method of claim 1, further comprising:
- accessing, by the computing system, a dataset comprising a plurality of inputs, wherein each of the inputs is annotated with a respective input type such that the artificial intelligence model identifies the input type; and
- training, by the computing system, the artificial intelligence model using the dataset, such that the artificial intelligence model correlates the one or more characteristics of each of the one or more inputs of the dataset with the respective attributes of the one or more MLMs.
3. The method of claim 2, further comprising:
- providing, by the computing system, the dataset to a synthesizer module configured to modify the dataset to generate an analogous dataset; and
- training, by the computing system, the artificial intelligence model using the analogous dataset, such that the artificial intelligence model correlates the one or more characteristics of each of the one or more inputs of the analogous dataset with the respective attributes of the one or more MLMs.
4. The method of claim 1, further comprising:
- receiving, by the computing system, a user input indicating desired weights of corresponding to the attributes of the one or more MLMs; and
- modifying, by the computing system, the artificial intelligence model using the desired weights indicated in the user input, such that the artificial intelligence model generates the expected values based at least in part on the desired weights.
5. The method of claim 1, wherein the MLMs comprise large language models.
6. The method of claim 1, wherein the artificial intelligence model comprises at least one of a convolutional neural network, recurrent neural network, or a large language model.
7. The method of claim 1, wherein the attributes comprise at least one of an accuracy rating, a latency rating, and a computational cost rating.
8. The method of claim 1, wherein the artificial intelligence model is associated with a single tenant of a cloud-services provider.
9. The method of claim 1, wherein the one or more characteristics comprise at least one of a prompt type, a length, or a language.
10. A system, comprising:
- one or more processors; and
- a computer-readable medium comprising instructions that, when executed by the one or more processors, cause the system to perform operations to: receive, by a computing system, an input to be provided to a machine learning model (MLM); determine, by the computing system, one or more characteristics of the input to be provided to the MLM.; access, by the computing system, a database comprising a list of one or more MLMs and respective attributes of each of the one or more MLMs; predict, by an artificial intelligence model implemented on the computing system, expected values for each of the respective attributes of the one or more MLMs, the expected values based at least in part on the respective attributes of the MLMs of the one or more characteristics of the input; generate, by the computing system, a recommendation list comprising at least one of the one or more MLMs, the respective expected values of each of the one or more MLMs of the recommendation list; and provide, by the computing system, the input to a selected MLM of the recommendation list.
11. The system of claim 10, wherein the MLMs comprise large language models.
12. The system of claim 10, wherein the artificial intelligence model comprises as least one of a convolutional neural network, recurrent neural network, or a large language model.
13. The system of claim 10, wherein the attributes comprise at least one of an accuracy rating, a latency rating, and a computational cost rating.
14. The system of claim 10, wherein the artificial intelligence model is associated with a single tenant of a cloud-services provider.
15. The system of claim 10, wherein the one or more characteristics comprise at least one of a prompt type, a length, or a language.
16. A non-transitory computer-readable medium comprising instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
- receiving, by a computing system, an input to be provided to a machine learning model (MLM);
- determining, by the computing system, one or more characteristics of the input to be provided to the MLM.;
- accessing, by the computing system, a database comprising a list of one or more MLMs and respective attributes of each of the one or more MLMs;
- predicting, by an artificial intelligence model implemented on the computing system, expected values for each of the respective attributes of the one or more MLMs, the expected values based at least in part on the respective attributes of the MLMs of the one or more characteristics of the input;
- generating, by the computing system, a recommendation list comprising at least one of the one or more MLMs, the respective expected values of each of the one or more MLMs of the recommendation list; and
- providing, by the computing system, the input to a selected MLM of the recommendation list.
17. The non-transitory computer-readable medium of claim 16, the operations further comprising:
- accessing, by the computing system, a dataset comprising a plurality of inputs, wherein each of the inputs is annotated with a respective input type such that the artificial intelligence model identifies the input type; and
- training, by the computing system, the artificial intelligence model using the dataset, such that the artificial intelligence model correlates the one or more characteristics of each of the one or more inputs of the dataset with the respective attributes of the one or more MLMs.
18. The non-transitory computer-readable medium of claim 17, the operations further comprising:
- providing, by the computing system, the dataset to a synthesizer module configured to modify the dataset to generate an analogous dataset; and
- training, by the computing system, the artificial intelligence model using the analogous dataset, such that the artificial intelligence model correlates the one or more characteristics of each of the one or more inputs of the analogous dataset with the respective attributes of the one or more MLMs.
19. The non-transitory computer-readable medium of claim 16, the operations further comprising:
- receiving, by the computing system, a user input indicating desired weights of corresponding to the attributes of the one or more MLMs; and
- modifying, by the computing system, the artificial intelligence model using the desired weights indicated in the user input, such that the artificial intelligence model generates the expected values based at least in part on the desired weights.
20. The non-transitory computer-readable medium of claim 16, wherein the MLMs comprise large language models.
Type: Application
Filed: May 22, 2025
Publication Date: Nov 26, 2026
Applicant: Oracle International Corporation (Redwood Shores, CA)
Inventors: Prasanna Gopal Shetty (Bengaluru), Pankaj Tiwari (Bengaluru)
Application Number: 19/216,456