Monitoring generative model quality

By evaluating and monitoring the response quality of large language models through expert systems, the problem of difficulty in maintaining response quality in generative AI systems is solved, and model quality maintenance and performance improvement are achieved.

CN118733416APending Publication Date: 2024-10-01GOOGLE LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410922852.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-07-13
Filing Date
2024-07-10
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In generative AI systems, the quality of responses to a wide range of topics is difficult to maintain, and there are unintended consequences when general large language models are trained and fine-tuned in different fields, leading to a decline in model quality in some fields.

Method used

Use expert systems to evaluate and monitor the quality of responses generated by large language models. By using high-accuracy expert systems in specific fields, such as knowledge engines, mathematical engines, etc., evaluate the creativity and factuality of responses, identify and resolve unintended consequences, and proactively Identify model weaknesses and areas to improve model quality.

Benefits of technology

Effectively identify and resolve the unintended consequences of large language models in different fields, maintain model quality, avoid the negative impact of training and fine-tuning on the model, and improve model performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733416A_ABST
    Figure CN118733416A_ABST
Patent Text Reader

Abstract

A system for monitoring and evaluating quality in a large language model using an expert system is disclosed. The system may include a cue library that associates cues with a professional field. The system selects hints from a library and evaluates a first response generated by the large language model for a set of hints against a second response generated by a modified version of the large language model for the set of hints. The evaluation uses an expert system associated with a professional area for the set of prompts. If the system determines that the evaluation indicates that a deterioration criterion is satisfied, the system may take a remedial action. The system provides an efficient way to evaluate a modified language model that does not meet the desired criteria and to prevent the use of the modified language model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a system for using an expert system to monitor the quality of responses generated by a large language model in a generative AI system. Specifically, the present disclosure uses one, two or more expert systems to evaluate responses to queries generated by a large language model. Background Art

[0002] A large language model (LLM) is a machine learning model that is trained to generate responses (estimate the probability of word-gram sequences including words and / or emojis) in response to a prompt (input). Such large language models have a large number of parameters (e.g., billions, hundreds of billions) and are typically based on a transformer architecture. These models can generate realistic text or image responses to prompts and can generate entirely new content, called creative content. Summary of the invention

[0003] Expert system is a system (including other models) with high accuracy in a specific field. Expert systems for evaluating large language models can each represent different fields. An expert system for a first field (e.g., facts, such as a knowledge engine) can be used to evaluate the response generated for the prompts related to the first field. Another expert system for a second field (e.g., solving mathematical equations) can be used to evaluate the response generated for the prompts related to the second field. Similarly, a third expert system for a third field (e.g., translation) can be used to evaluate the response generated for the prompts related to the third field, and so on. Fields can also be referred to as vertical fields or professional fields. Implementations can include one such system, two such systems, etc. Each expert system for evaluating a model can have a set of prompts related to the professional field of the expert system. Some prompts can be evaluated by more than one expert system. Prompts and evaluations can be used in various ways.

[0004] In some implementations, the evaluations may be used for benchmarking. For example, the system may evaluate responses to a set of prompts generated by a large language model before fine-tuning / training, and evaluate responses to the same set of prompts generated by the large language model after fine-tuning / training. The system may compare these evaluations to identify any prompts where the quality of the responses has improved, remained the same, or deteriorated. If too much quality has deteriorated, the updated model may not be considered ready for production because the updates have compromised model quality. Even if the overall model quality has not deteriorated, analysis of failed prompts / responses may identify areas of the model that could benefit from further updates / training / fine-tuning.

[0005] In some implementations, the evaluation can be used for high-water marking. For example, the system may have a set of prompts for which the large language model must generate acceptable responses. In other words, some prompts may be identified as backstop prompts. The response generated by the modified (e.g., modified by training / fine-tuning) large language model for one of these prompts must be considered acceptable by the expert system. Failure to generate an acceptable response to the backstop prompt indicates that the fine-tuning / training (modification) has had a negative impact on the large language model, and the updated model may not be considered ready for production. Such a decision point can be a decision point in quality assurance testing before making the updated large language model available for production use.

[0006] In some implementations, the evaluation can be used for monitoring. For example, one or more responses generated for a prompt that has surged in popularity (a viral prompt) can be evaluated to determine whether the responses are of low quality, so that action can be taken to prevent further provision of such low-quality responses. As another example, the system can monitor model responses to determine if there is any trend of low-quality responses. Such monitoring can proactively identify areas where the model can benefit from additional training, which will improve the performance of the model.

[0007] The details of one or more implementations are set forth in the accompanying drawings and the description below. Other features will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 is a diagram illustrating an example system in which the improved techniques described herein may be implemented.

[0009] Figure 2 is a diagram illustrating an example generative AI system and an example model evaluation system in accordance with disclosed implementations.

[0010] Figure 3 is a diagram illustrating an example method for benchmarking a modified large language model using an expert system in accordance with disclosed implementations.

[0011] Figure 4 is a diagram illustrating an example method for benchmarking a modified large language model using an expert system in accordance with disclosed implementations.

[0012] Figure 5 is a diagram illustrating an example method for high-water marking a modified large language model using an expert system in accordance with disclosed implementations.

[0013] Figure 6is a diagram illustrating an example method for identifying low-quality trends produced by a large language model in accordance with disclosed implementations.

[0014] Figure 7 is a diagram illustrating an example method for identifying viral low-quality responses generated by a large language model in accordance with disclosed implementations.

[0015] Figure 8 is a diagram illustrating an example of a distributed computer device that can be used to implement the described techniques. DETAILED DESCRIPTION

[0016] The implementation relates to a system for monitoring and maintaining the quality of a generative AI system (e.g., based on a large language model) that can respond to open prompts. Such generative systems can provide responses to a wide variety of prompts. Typically, the model is expected to generate responses that include factual information, but the generative / creative nature of the large language model may lead to hallucinations in the response. In other words, one problem with the large language models used in generative AI systems is that these models are general models that cover a wide range of topics, and the expected responses are accurate (factual) and creative. But it may be difficult to achieve creative and highly accurate responses to some prompts in a wide range of topics. Typically, such large language models fully cover a wide range of topics, but there are problems with the accuracy (quality) of the response. Such models can be trained and / or fine-tuned to help reduce hallucinations (factually incorrect statements) in one field, but such training and fine-tuning often produce unexpected consequences in another field. For example, training a model to solve equations more accurately can lead to a decrease in the quality of responses including translations. Therefore, maintaining model quality in a wide range of topics is a technically difficult problem.

[0017] In order to solve the technical problem of how to monitor and maintain the quality in the generative conversation system, the implementation adopts an expert system. An expert system is any system that operates with high accuracy in a specific field. An example of an expert system is a knowledge engine. A knowledge engine is a system including a graph database of entities and an understanding engine. The graph database stores facts about entities as entity attributes and / or as relationships between entities. The understanding engine is configured to extract entities, entity attributes, and entity relationships from natural language documents (web pages, PDFs, presentations, spreadsheets, media (audio / video) files, etc.) using natural language processing technology. Typically, the extracted information is used to update the graph, so the graph contains highly accurate information about the entity, i.e., facts. Such knowledge engines have been used for many years and operate with high accuracy (e.g., identifying factual information related to an entity). This is an example of an expert system, but there are many similar systems for identifying and verifying knowledge (facts) in other fields. For example, there are existing expert systems related to medical transcription (medical document engines), translation (translation engines), solving mathematical equations (math engines), systems that analyze failures (e.g., software failures) to determine root causes (fault analysis engines), search engines (for verifying factual statements), processes that compare factual statements to structured entity repositories (such as Wikipedia), and the like. In some implementations, versions of the large language model can be used as an expert system for evaluating various aspects of a response. Such an expert system can be helpful in evaluating the creativity of a response or creative aspects of a response. For example, a version of the model can be asked to evaluate the extent to which a response generated for a particular prompt related to poetry rhymes or conforms to a particular format. As another example, a version of the model can be asked to evaluate whether a response includes a creative turn, or to evaluate the level of creativity of a response.

[0018] Implementation uses an expert system to evaluate prompts and responses (i.e., prompt-response pairs) generated by a generative conversation system for the prompts. As used herein, prompts may include prompt contexts, where appropriate. Prompt contexts may include previous prompts and generated responses (or portions of these prompts and responses), if they exist. Such contexts are generally referred to as occurring in a conversation. There is no prompt context at the beginning of a new conversation. Each prompt and response may be referred to as a turn within a conversation. Contexts enable a large language model (or expert system) to parse pronouns in prompts. For example, a user may have previously provided a prompt of "who was George Washington's wife" and received a response of "Martha Washington", and the current prompt may be "how many children did they have". The prompt contexts of the previous prompts and their responses enable a large language model and / or a knowledge engine to parse "they" in the current prompt as Martha Washington and George Washington. Prompt contexts may also be used to focus responses, for example, thereby providing material for generating responses based thereon. The prompt context may be limited to, for example, a predetermined number of characters, a predetermined number of turns in a conversation, limited to a predetermined amount of memory, etc., depending on how the generative AI system is implemented.

[0019] Prompts and responses can be translated into an input format expected by an expert system. In other words, prompts and responses can be translated into a first input format configured for processing by a first expert system, and can also be translated into a second input format configured for processing by a second expert system. This enables the expert system to operate without change. For example, a prompt can be translated into or regarded as a query for evaluation by a knowledge engine, and a response to the prompt can be translated into or regarded as a candidate document to be scored by the knowledge engine in response to the query. The response can also be regarded as a document to be indexed by the knowledge engine. The score assigned to the prompt / response can represent topicality (relevance) and / or factuality. Similarly, a prompt can be translated into an input format expected by a mathematical expert system to produce an output, which can then be compared with a response generated by a generative conversational system to determine a score representing similarity, topicality, and / or correctness.

[0020] Evaluations can be used in a variety of implementations. In one implementation, an expert system can be used for benchmarking to identify any overall degradation in model quality due to model modifications (e.g., due to training / fine-tuning). In one implementation, evaluations can be used for high watermarks to identify specific degradations in model quality due to model modifications. In one implementation, evaluations can be used to monitor model quality in a production environment. For example, in one implementation, evaluations can be used to identify viral prompt topics / patterns that are insufficient in response quality. As another example, evaluations can be used to monitor long-term trends (topics, prompt patterns, etc.), and the model can use further modifications for these long-term trends. Implementations can include systems that use evaluations in any combination of the above examples.

[0021] A technical advantage of the disclosed implementation is that unintended consequences of modifying a large language model can be identified and addressed before they are rolled to production. Another technical advantage of the disclosed implementation is that areas of model weakness can be proactively identified. Avoiding unintended consequences maintains model quality, and proactively identifying model weaknesses improves model quality.

[0022] Figure 1 An example environment 100 is depicted in which a user can interact with one or more generative AI large language models. The environment 100 includes a model evaluation system that uses an expert system to monitor and improve the model quality of the generative AI system. Figure 1 In the example of , the generative AI big language model is supported by an Internet search engine to help the model improve factuality, but the use of the search engine is optional. Implementations are not limited to big language models supported by search engines.

[0023] Continue to refer Figure 1, the example environment 100 includes a generative AI system 130, a model evaluation system 140, one or more expert systems 150, a search system 120, a network 102, and a user device 106. Some implementations may also include a search system 120 that indexes website resources 105. The network 102 may be a local area network (LAN or Wi-Fi network), a wide area network (WAN), the Internet, or a combination thereof. The network 102 connects the website 104, the user device 106, the generative AI system 130, the expert system 150, and the search system 120. In some examples, the network 102 may be accessed via a wired and / or wireless communication link. For example, a mobile computing device such as a smartphone may access the network using a cellular network. The environment 100 may include millions of websites 104 and user devices 106. In some implementations, the generative AI system 130 may be co-located with the search system 120. In other words, in some implementations, generative AI system 130 and search system 120 may operate at the same server, which may be a distributed server. In some implementations, one or more of expert systems 150 may be co-located with search system 120. In some implementations, one or more of expert systems 150 may be co-located with generative AI system 130. In some implementations, model evaluation system 140 may be co-located with generative AI system 130. In some implementations, model evaluation system 140 may be co-located with search system 120. In other words, any combination of generative AI system 130, model evaluation system 140, expert system 150, and search system 120 may be co-located (operated by the same server (including a distributed server environment)). Generative AI system 130, model evaluation system 140, expert system 150, and / or search system 120 may be communicatively coupled. In other words, whether co-located or not, generative AI system 130, model evaluation system 140, expert system 150, search system 120 (if included) may be configured to communicate with each other via one or more application programming interfaces.

[0024] Model evaluation system 140 is a system configured to use one or more expert systems 150 to evaluate the response generated by generative AI system 130 (including modified generative AI system 130'). Expert system 150 may include any number (one, two, three...n) of expert systems. One or more of expert systems 150 (e.g., expert system 150a, expert system 150b, and / or expert system 150n) may be any existing system configured to identify and / or evaluate information for a specific professional field (i.e., a vertical field) with high accuracy. It is easier to obtain high accuracy in a specific professional field. A knowledge engine is an example of an expert system. A mathematical engine is another example of an expert system. A mathematical engine can be configured to solve a given mathematical or scientific problem, thereby displaying step-by-step reasoning. A translation engine is another example of an expert system. A translation engine is configured to translate text from one language to another. These expert systems are configured to perform well in their specific professional fields and may have uses other than those used by model evaluation system 140. For example, knowledge engines are often used by search systems such as search system 120 to identify entities and entity facts in resources 105, identify differences between facts extracted from resources 105 and entity repositories (e.g., graph databases), and / or to evaluate the relevance and / or topicality of resources 105 to a query. As another example, translation engines are often used (e.g., independently of search system 120 and / or generative AI system 130) in translation applications.

[0025] In some implementations, the model evaluation system 140 may be configured to evaluate a modified large language model, such as a model used in a modified generative AI system 130'. In order to evaluate the modified model, the model evaluation system 140 may use a prompt set, or in other words, a prompt library. The prompt set may represent a variety of prompts for evaluation. The prompt set may associate each prompt with one or more professional fields. In other words, each prompt in the prompt set may be associated with at least one expert system. For example, some prompts may represent translation queries, some prompts may represent factual queries, some prompts may represent mathematical or scientific problems, and the like. Some prompt libraries may include historical scoring data for some or all of the prompts, as discussed herein.

[0026] The modified generative AI system 130' may represent a system that uses an updated version of the model used by the generative AI system 130. The generative AI system 130 may be a model that runs in inference mode, such as a model that is executed in a production environment. Thus, the large language model of the generative AI system 130 may be used to respond to prompts from the user device 106. To improve the model of the generative AI system 130, further training and / or fine-tuning may be used. Such additional training may be performed in a development environment, such as as part of the modified generative AI system 130'. In a development environment, training may occur "offline" (i.e., not in a production environment). Thus, the modified generative AI system 130' does not typically respond to queries from a user, but may be accessed by the user device 106 or process (e.g., as part of the model evaluation system 140) for training and evaluation purposes. Once training and / or fine-tuning of the modified model is complete, the modified model of generative AI system 130 ′ may be moved (rolled out) to a production environment, for example at generative AI system 130 .

[0027] In some implementations, the model evaluation system 140 may be configured to monitor a large language model used in a production environment (e.g., in a generative AI system 130). In order to monitor model quality, the model evaluation system 140 may be configured to access a repository of prompt-response pairs. The repository of prompt-response pairs may be a collection of responses generated by a large language model (e.g., of a generative AI system 130 or a modified generative AI system 130') in response to a prompt, each response being paired with a prompt for which the response was generated. The prompts of the prompt-response pairs may include a prompt context. The repository of prompt-response pairs may also be referred to as a model log. Such a model log may be generated by a generative AI system 130 and / or a modified generative AI system 130'.

[0028] Generative AI system 130 and modified generative AI system 130' may be any system that supports a large language model. The large language model may be configured for conversation, ie, may be a model configured to interact with a user on a variety of topics. Figure 2 An example generative AI system and an example model evaluation system 140 are described in more detail in .

[0029] In some implementations, the generative AI system 130 may be configured to utilize the search system 120 to improve the factuality of the generated responses. In such implementations, the generative AI system 130 may be configured to send a query to the search system 120. The search system 120 provides a search service. In some examples, to facilitate searching for resources 105, the search system 120 identifies the resources 105 by crawling and indexing the resources 105 provided on the website 104. Data about the resources 105 may be indexed. An indexed and (optionally) cached copy of the resource 105 is stored in the search index 122, for example as an indexed resource 126.

[0030] In some implementations, the search system 120 may include and / or may be configured to communicate with one or more expert systems 150 and use the one or more expert systems as part of indexing or responding to queries. For example, the search system 120 may include or may be configured to use a knowledge engine (e.g., expert system 150a). The knowledge engine may identify entities in the resources 105 at index time and score the resources 105 for the identified entities. For example, the knowledge engine may give a topicality score to the resource for the entity, which indicates the degree of relevance (topicality) of the resource for the entity. In some implementations, the knowledge engine may determine whether the facts (entity attributes or entity relationships) in the document are different from the facts represented in the database of the entity. In some implementations, the search system 120 may associate entities with resources based on topicality scores. In response to a query, the search system 120 may use a knowledge engine to determine the degree of timeliness of the document for the fact query. A fact query is a query that requests one or more facts about an entity. In some implementations, the search system 120 may include or may be configured to utilize other expert systems 150 (eg, expert system 150a, expert system 150b, expert system 150n) for indexing documents and / or responding to queries.

[0031] In an implementation where generative AI system 130 uses search system 120 to improve the accuracy of responses that include facts, generative AI system 130 may communicate using an application program interface (API) of the search engine of search system 120. The search engine API may return search results in a manner that is not formatted for display, but rather enables generative AI system 130 to read, analyze, and further process information in the search results (e.g., resource addresses, relevant text extracted from content, titles, etc.). In addition, the search engine API may enable generative AI system 130 to request properties of the search results returned for a query, such as a specific number of search results, a specific minimum relevance of the search results, etc.

[0032] Environment 100 may also include user devices 106. In some examples, user devices 106 are electronic devices that are controlled by a user and are capable of requesting and receiving resources 105 through network 102. Example user devices 106 include personal computers, mobile computing devices, such as smartphones, wearable computing devices, and / or tablet computing devices that can send and receive data through network 102. The term mobile computing device ("mobile device") used throughout this article refers to a user device that is configured to communicate through a mobile communication network. Smartphones (e.g., phones that can communicate through the Internet) are examples of mobile devices, and wearable devices and other smart devices such as smart TVs and smart speakers are also examples of mobile devices. User devices 106 typically include user applications (e.g., web browsers) to facilitate sending and receiving data through network 102.

[0033] The user device 106 may include a network interface, one or more processing units, a memory, and a display interface, etc. The network interface may include, for example, an Ethernet adapter, a token ring adapter, etc., for converting electronic and / or optical signals received from the network into electronic form for use by the user device 106. The processing unit set includes one or more processing chips and / or assemblies. The memory includes both volatile memory (e.g., RAM) and non-volatile memory (such as one or more ROMs, disk drives, solid-state drives, etc.). The processing unit set and the memory together form a control circuit that is configured and arranged to perform the various methods and functions described herein. The display interface is configured to provide data to the display device to present and display to the user.

[0034] The user device 106 may submit a search query to the search system 120 and / or a prompt to the generative AI system 130. In some examples, the user device 106 may include one or more input devices. Example input devices may include a keyboard, a touch screen, a mouse, a stylus, a camera, and / or a microphone. For example, a user may type a search query using a keyboard and / or a touch screen. As another example, a user may speak a search query, and the user's voice may be captured by a microphone and processed by speech recognition to provide a search query. As another example, a user may use a camera to capture an image, which is sent to the search system 120 as a query and / or is sent to the generative AI system 130 as part of a prompt.

[0035] In response to receiving a search query, the search system 120 processes the query and accesses the search index 122 to identify resources 105 that are relevant to the search query (e.g., have at least a minimum specified relevance score for the search query). The search system 120 identifies the resources 105 and generates a search results page. The search system 120 returns the search results page to the query requester. For a query submitted by a user device 106, the search results page is returned to the user device 106 for display on the user device 106, such as within a browser.

[0036] In response to receiving the prompt, generative AI system 130 processes the prompt (including any prompt context) and generates a response to the prompt using the large language model. The prompt is provided (e.g., displayed, played, or otherwise output) to the user by user device 106. The user may provide another prompt to generative AI system 130, for example, in another turn of the communication session. Generative AI system 130 generates a response to this prompt and provides the response to user device 106, and so on.

[0037] Figure 2 2 is a diagram illustrating an example generative AI system 200 in accordance with the disclosed implementations. Generative AI system 200 may be an example of generative AI system 130 or a modified generative AI system 130'. Generative AI system 200 is configured to generate a response to a prompt. The prompt may be any input received from a user of user device 106, for example, via user interface 210. One or more of the components of generative AI system 200 may be or may include a processor (e.g., processing unit 205) configured to process instructions stored in a memory. Figure 2 Examples of such instructions depicted in include user interface 210 , conversation encoder 220 , and large language model 230 .

[0038] The user interface 210 is configured to receive a prompt from the user device 106. In some implementations, the user interface 210 receives the prompt through a network interface (i.e., through a network such as the network 102). The user interface 210 can be configured to display a prompt input area. The prompt input area can take text as input. The prompt input area can take an image as input. The prompt input area can take a media (audio / video) file as input. The user interface 210 can also be configured to display a response 255 to the prompt. In some implementations, the user interface 210 can be part of (included in) another user interface. For example, the user interface 210 can be part of a search engine user interface, a browser tool or extension, a document extension or plug-in, a user interface for the model evaluation system 140, and the like. The user interface 210 can be part of a web page, such as such that the user interface 210 is configured to provide a response 255 as part of a browser interface on the user device 106.

[0039] The user interface 210 may be configured to display a conversation or a portion of a conversation. A conversation includes prompts and responses (prompt rounds) associated with a conversation. A conversation may be defined by a user, by a predetermined number of prompt rounds (a round is a prompt and its corresponding response), by criteria (e.g., a predetermined topic / prompt may cause the generative AI system 200 to initiate a new conversation), etc. A conversation may be part of a prompt context 215. The prompt context 215 may therefore include the current prompt and the previous prompt round. If there is no previous prompt round, the prompt context may include the current prompt. In some implementations, the prompt context 215 may include metadata. The metadata may include several previous prompt rounds. With user permission, the metadata may include information about content displayed on a display of the user device 106. The metadata may include topics and / or entities determined based on the content displayed on the display. The metadata may include any information about the user device 106 and / or (with user permission) user preferences related to the prompt.

[0040] The generative AI system 200 may include a dialogue encoder 220. The dialogue encoder 220 is configured to generate an encoded dialogue 225. The dialogue encoder 220 may denormalize the current prompt of the prompt context 215 when generating the encoded dialogue 225. Denormalizing the current prompt replaces references to entities outside the prompt with entities. The reference may be an entity mentioned in a previous prompt or a previous response (e.g., a prompt or response from a previous round) of the prompt context 215. The reference may be an entity in metadata. For example, a previous prompt may be "Show me restaurants in Portland", and the current prompt may be "No, I mean Maine". The dialogue encoder 220 may be configured to change the current prompt to "show me restaurants in Portland Maine". Likewise, if the current prompt is “show me restaurants in Portland,” the conversation encoder 220 may be configured to disambiguate Portland based on metadata in the prompt context 215 (e.g., approximate location, topic in metadata, identification of entities in metadata (e.g., Acadia National Park, Maine, or Mt. Hood, Oregon), etc.). The conversation encoder 220 may also use previous prompt turns to disambiguate. For example, “show me restaurants in Portland” may be disambiguated based on previous responses that mentioned the Columbia River (e.g., Oregon) or Boothbay Harbor (e.g., Maine). In some implementations, the conversation encoder 220 may also vectorize the denormalized prompt context, i.e., convert the denormalized prompt context into a vector of real numbers (feature vector). Thus, the encoded conversation 225 may be represented as a feature vector used as input to the large language model 230. In some implementations, the large language model 230 can vectorize the encoded dialogue 225 (the denormalized prompt context).

[0041] The large language model 230 is an example of a large language model. The large language model 230 is trained to generate conversational responses (e.g., responses 255) to prompts, which have a certain level of creativity. In some implementations, the response may include an image. The image may be related to an entity in the prompt and / or the response. The image may be an image generated by the large language model 230. When the response is not copied from one source and is conversational in nature, the response has a certain level of creativity. This makes the response 255 different from the search results obtained in response to the search query. The search results include relevant text (fragments) taken directly from the source. Some search result pages include short answers. The short answers are usually taken from the search results or from the API of the service (e.g., weather data such as from weather.com). Some search result pages include knowledge panels, in which the information is taken from an entity repository, such as a knowledge graph. In each of these cases, the information is traceable to a resource and will not be changed or only slightly changed. In contrast, the response 255 is not directly attributed to any source (reference) because the response is synthesized by the large language model 230. The large language model 230 can provide responses to open-ended prompts, such as “write a poem about x” or “do you have an opinion on ice cream?” Such prompts require a high level of creativity. The large language model 230 can also generate responses to complex questions (e.g., “what causes poverty?”), opinion questions (“is baseball better than cricket?”), and so on. These responses can have a high level of creativity while including statements that can be verified (i.e., factual statements). Because large language models (such as the large language model 230) generate responses with a certain level of creativity, these responses may include incorrect factual information. Such incorrect factual information is called hallucinations. The large language model 230 can be configured (trained / fine-tuned) to minimize hallucinations in one domain (e.g., by a modified generative AI system 130'), but doing so may degrade model quality in another domain. Implementations help identify problematic training to prevent degradation in production models (e.g., models used in generative AI system 130).

[0042] In some implementations, the generative AI system 200 is configured to gather additional data to help the large language model 230 generate fewer hallucinations. For example, the large language model 230 can use a query generator 240 that generates one or more queries 235 based on the prompt context 215. The query 235 is sent to the search system 120 to obtain resources that can be used as additional context 237 for the response generator 250. In implementations using the query generator 240, the query generator 240 can be configured to generate a query 235 for each encoded conversation 225 or only for certain prompt contexts (e.g., prompts requesting factual information). In some implementations, the query generator 240 can generate more than one query for the encoded conversation 225.

[0043] Search system 120 provides search results for query 235. In the context of generative AI system 200, the search results may be used as additional context 237. Generative AI system 200 may be configured to transform or modify the search results returned by search system 120 using known or later developed techniques to make the information suitable as input to response generator 250.

[0044] The response generator 250 can have an architecture similar to other conversational large language models (e.g., GLaM, LaMDA, PaLM, GPT-3, ChatGPT, etc.). The response generator 250 is capable of generating responses with higher creativity, for example, in response to open-ended prompts (e.g., "give me five first date ideas") and prompts that lack any factual context (e.g., "how are you?"). In some implementations, the response generator 250 generates responses to factual questions that are informed by the additional context 237, by "remembered" facts learned from training data, and by potential hallucinations that may be related to the conversational context or the stochasticity of the generation process. The response generator 250 can also generate responses with one or more factual statements. The additional context 237, if used, is an additional input to the response generator 250 and can represent relevant text from supporting resources determined to be relevant to the query 235 to reduce hallucinations in any factual statements in the response 255. In other words, in some implementations, the response generator 250 may take as input the encoded dialogue 225 and the additional context 237. The additional context 237 may represent relevant text from resources determined to be relevant to the query 235. In some implementations, the response generator 250 may be trained (refined or fine-tuned) to learn when and how to use the additional context 237 when generating the response 255 to the prompt context 215. Further training may be evaluated using the model evaluation system 140 and the expert system 150 as described herein.

[0045] In some implementations, generative AI system 130 may include annotator 280. Annotator 280 may be configured to add information to the response that enables a user to check / validate response 255 generated by response generator 250 using known or later developed techniques.

[0046] In some implementations, the generative AI system 130 may generate a model log 270. The model log 270 may include a record capturing a turn in a conversation. The record in the model log 270 may include at least a prompt (e.g., a prompt context 215) and a response 255 generated for the prompt. The prompt and the response generated for the prompt are referred to as a prompt-response pair. Therefore, the model log 270 may also be referred to as a prompt-response repository. Certain data from the prompt-response pair may be processed in one or more ways before it is stored in the model log 270 so that personally identifiable information is removed. The model log 270 may be used by the model evaluation system 140 to identify areas where the large language model 230 needs intervention (including additional training or avoiding inappropriate responses). For example, the model log 270 may be used by the model evaluation system 140 to identify viral prompts that result in responses that include inappropriate hallucinations. Virality is manifested as an unexpected surge in specific prompts received within a short time window. This short time window may be measured in minutes, hours, or days. In some implementations, generative AI system 200 may identify viral prompts, and model evaluation system 140 may evaluate responses generated for the prompts. In response to determining that the responses to the viral prompts are undesirable (e.g., include hallucinations or are otherwise of poor quality, as determined by expert system 150), model evaluation system 140 may initiate remedial actions. Remedial actions may include actions such as preventing large language model 230 from responding to such prompts, identifying the prompts as areas for further refinement of large language model 230, sending a notification to an operator of generative AI system 200, adding the prompts to a prompt set (such as prompt set 252), etc.

[0047] The model evaluation system 140 may be configured to use the model log 270 to identify trends. Trends represent topics or domains for which the large language model 230 fails to provide adequate responses. The adequacy of the response for any particular topic or domain is determined by the expert system 150. For example, the model evaluation system 140 may evaluate prompt-response pairs from the model log 270. The selection of prompt-response pairs from the model log 270 may be random. The selection may be made from prompt-response pairs received within a recent time window. The time window may represent hours, days, weeks, etc. In other words, for trend detection, the time window may be longer than the time window used to identify viral prompts. In some implementations, the generative AI system 200 may select every nth prompt-response pair for evaluation by the model evaluation system 140. The model evaluation system 140 may use the expert system 150 to determine whether any of the prompt-response pairs in the prompt-response pair includes a low-quality response. A low-quality response is a response whose score fails to meet a quality threshold. The score is a score determined using one or more of the expert systems 150 , as disclosed herein.

[0048] If any of the prompt-response pairs does have a low-quality response, the model evaluation system 140 can add the response to the model quality watch list 254. The model quality watch list 254 is a data repository of prompt-response pairs that the model evaluation system 140 can analyze to determine trends. The model quality watch list 254 represents prompts for which responses generated for prompts have been evaluated using an expert system and identified as having insufficient quality. In some implementations, the model quality watch list 254 can also represent prompts and responses that a user has identified as poor quality.

[0049] When determining trends, the model evaluation system 140 may cluster the prompts, for example, by topic, by prompt format, and the like. This may generate topic clusters or format clusters, etc., each with a certain number of members (or in other words, each cluster may have a certain number of members). The model evaluation system 140 may cluster prompts for analysis in a variety of different ways. If there are a sufficient number (a predetermined number) of prompts in any cluster, the model evaluation system 140 may determine that the cluster indicates a trend that the response has low quality. The model evaluation system 140 may take remedial actions for the identification of trends. For example, a remedial action may be reporting the trend to an operator of the generative AI system 200, indicating that the large language model 230 may benefit from further training / fine-tuning in the trending area. In some implementations, the remedial action may be adding the prompt to a prompt set, such as prompt set 252. In some implementations, the model quality observation list 254 may include time decay. In other words, prompt-response pairs that are too old may not be included in the analysis, or may be given a lower weight in the analysis. This can occur because such pairs are removed from the model quality watch list 254, or because older pairs are weighted by age, e.g., pairs older than x days count as half, pairs older than y days count as one-third, pairs older than z days count as one-tenth, etc.

[0050] The model evaluation system 140 can be used to monitor the modifications made to the large language model 230 through further training / fine-tuning to ensure that these modifications do not degrade the quality of the modified model. Model quality is measured by scores derived from applying one or more of the expert systems 150 to responses generated for prompts. The scores can reflect authenticity (factuality), topicality, relevance, similarity to responses generated by expert systems, etc. In order to evaluate the modifications made to the large language model 230, the model evaluation system 140 may include a prompt set 252. The prompt set 252 may also be referred to as a prompt library. The prompt set 252 may assign prompts to professional fields. Each professional field corresponds to one of the expert systems 150. A prompt may be associated with more than one professional field. In some implementations, the large language model 230 may be used to generate prompts for the prompt set 252. For example, if a particular topic is identified as requiring additional training, the large language model (e.g., query generator 240) may be used to generate prompts related to the topic before performing the additional training. This enables the system to have a large number of cues to benchmark additional training.

[0051] In some implementations, the prompt set 252 may also associate a scoring history with the prompt. The prompt set 252 may associate prompts and specialized fields with a scoring history, for example, so that each specialized field associated with a prompt may also have a scoring history. The scoring history represents at least one score obtained for a response to a previous version of the prompt from the large language model 230. This previous version may be a version of the model currently running in a production environment. The model evaluation system 140 may use the score from the scoring history in comparison with the score of the response to the prompt generated by the modified large language model 230. In some implementations, the model evaluation system 140 may obtain a response from the large language model 230 running in a production environment and score the response, thereby obtaining a "previous" score from an unmodified version of the model at monitoring time, rather than storing a scoring history. The difference between the previous score (e.g., the production score or the unmodified model score) and the current score (e.g., the score of the response of the unmodified model generated for the prompt) can be used for benchmark testing and / or high-water mark testing. In some implementations, prompt set 252 may include more than one previous score for a prompt. In such implementations, each previous score may represent a different time period. Thus, for example, when prompts are used in an assessment, prompt set 252 may record how scores for responses change over time.

[0052] In benchmarking, the model evaluation system 140 may select a set of prompts from the prompt set 252, obtain responses for the prompts in the set, score the responses using the expert system 150 (e.g., obtain a current score for the responses), compare the current score to a previous score, and analyze the differences. In benchmarking, the analysis may be a comparison of a group, i.e., a comparison of prompts in a set of prompts. Thus, in benchmarking, the scores are considered as a whole, which allows the conclusion that the model quality has not degraded even when the score of the first prompt decreases and the score of the second prompt increases. In other words, in benchmarking, the model evaluation system 140 may apply a degradation criterion (or multiple degradation criteria) to the aggregated scores of the individual prompts. If the benchmark indicates that the modified model does not pass the benchmark (e.g., meets the degradation criterion), the modified model may be prevented from being put into production because the modification indicates model degradation.

[0053] In the high water mark test, the model evaluation system 140 may evaluate prompts identified as quality assurance prompts in the prompt set 252. Quality assurance prompts are prompts for which the large language model 230 must generate acceptable responses. In other words, if the modified model does not generate a response with acceptable quality (as determined by using a score calculated using at least one of the expert systems 150), the high water mark test fails. Such prompts may include prompts that are curated by an operator of the generative AI system 200. Such prompts may represent prompts in sensitive or important areas. Such prompts may also represent prompts that have demonstrated historical stability. For example, the model evaluation system 140 may use the prompt set 252 to identify prompts with a scoring history in a professional field, where the model has historically (e.g., within the past six months, within the past year) generated responses of sufficient quality. In other words, the expert system continues to show that the response generated for the prompt has a previous score that meets the quality threshold. After a long enough period of time (e.g., several months, a year, etc.), the prompt can be considered a quality assurance prompt. In some implementations, quality assurance prompts may be identified in 252 by markings. In some implementations, the model evaluation system 140 may analyze the scoring history of the prompts in the prompt set 252 to identify prompts that qualify as quality assurance prompts based on historical stability. In some implementations, the model evaluation system 140 may use a combination of marking and analysis to identify quality assurance prompts. In some implementations, once a quality assurance prompt has been identified, the quality assurance prompt may be used to seed similar prompts, which may also be considered quality assurance prompts. For example, a large language model may be asked to generate prompts that are similar to the quality assurance prompts. These similar prompts may be used to ensure consistent responses from the updated model.

[0054] The model evaluation system 140 may use a set of quality assurance prompts (some or all of the quality assurance prompts) in the high water mark test. For such prompts, the model evaluation system 140 may score the responses generated by the modified large language model 230 for the prompts using one or more of the expert systems 150. In such cases, the model degradation criterion is that the score fails to meet the quality threshold. In other words, if any score fails to meet the quality threshold, the modified model is considered to be of low quality, and the model evaluation system 140 may initiate remedial actions. Such remedial actions may include preventing the model from being put into production. This prevents the quality of the model from degrading due to unexpected consequences of training in production. The remedial action may also include reporting to the operator of the generative AI system 200 the prompts that failed to reach the quality threshold. The operator can then determine whether further training of the large language model 230 is required, or how to change the training to avoid the identified degradation, etc. Any quality assurance prompt that does not meet the degradation criterion may be included in such a report.

[0055] In addition to the above description, controls may be provided to the user that allow the user to make choices about whether and when the systems, programs, or features described herein may enable the collection of user information (e.g., information about conversations with a generative AI system, information about user preferences, or the user's current location) and whether to send content or communications from a server to the user. In addition, certain data may be processed in one or more ways before it is stored or used (e.g., in a model log) to remove personally identifiable information. For example, the user's identity may be processed so that the user's personally identifiable information cannot be determined, or the user's geographic location may be generalized (such as to a city, zip code, or state level) when location information is obtained so that the user's specific location cannot be determined. Thus, the user can control what information is collected about the user, how the information is used, and what information is provided to the user.

[0056] Figure 3 is a diagram illustrating an example method 300 for benchmarking a modified large language model using an expert system according to the disclosed implementation. The method 300 may be used in a system such as Figure 1The method 300 enables evaluation of a modified model against a previous version of the model (e.g., a version running in a production environment, a version that passed a previous benchmark but has not yet been put into production, etc.). The previous version of the model is considered to be the current version or the first version or the unmodified version. The modified version of the model can represent additional training / fine-tuning performed on the model. In some implementations, the method steps can be performed by a system such as the model evaluation system 140. In some implementations, the method steps can be performed by a system including the model evaluation system 140 and one or more expert systems 150. In some implementations, the method steps can be performed by a system including the model evaluation system 140 and one or more expert systems 150. Figure 1 In some implementations, the method steps may be performed by a system including a model evaluation system 140, one or more expert systems 150, and a generative AI system 130'. Figure 1 The system executes the model evaluation system 140, one or more expert systems 150, generative AI system 130 and / or generative AI system 130'.

[0057] At step 302, the system obtains a set of prompts from a prompt set. The prompt set is a data structure stored in a memory. The prompt set associates prompts with one or more professional fields. Each professional field corresponds to an expert system. At step 304, the system evaluates a first response generated by a large language model for a prompt in a set of prompts. In other words, the first response is a response generated by a previous version of the model for a prompt in a set of prompts. In some implementations, these first responses may be generated in response to benchmarking, or in other words, as part of a current benchmark. In some implementations, these first responses may have been pre-generated and evaluated. For example, the evaluation may have occurred as part of a previous benchmark and as a result of a previous benchmark. In such an implementation, the prompt set data structure may also include a scoring history. The results of a previous evaluation (i.e., a score for a response generated by an unmodified large language model) may be stored in a scoring history for the prompt. Therefore, the evaluation of the first response may include using a scoring history for a prompt in a set of prompts. The system also evaluates a second response generated by a modified version of the large language model for a prompt in a set of prompts. About Figure 4 The evaluation of the first response compared to the second response is discussed in more detail.

[0058] At step 306, the system determines whether the evaluation of the first response compared to the second response indicates that a degradation criterion is met. In some implementations, the degradation criterion can be an indication that the total score of the second response represents a predetermined quality drop relative to the total score of the first response. The predetermined quality drop can be any quality drop. The predetermined quality drop can be a percentage of the total score of the first response. In some implementations, the degradation criterion can be an unacceptable ratio. The unacceptable ratio can represent the number of prompts with second responses that fail to meet the quality threshold compared to the number of prompts in the group. The unacceptable ratio can represent the number of prompts assigned to the first professional field with second responses that fail to meet the quality threshold compared to the number of prompts from a group of prompts assigned to the first professional field. Step 306 can include whether one of two or more degradation criteria is met.

[0059] At step 308, in response to the system determining that the evaluation indicates that the degradation criteria are met, the system may take remedial action. The remedial action may include preventing the modified version of the large language model from being put into production. The remedial action may include undoing (rolling back) the modification, for example, restoring the model to a previous version that passed the benchmark test. The remedial action may include an analysis of the prompts with a second response indicating a decrease in quality. For example, the system may cluster the prompts to determine whether there are topics or prompt formats that are disproportionately affected by the degradation. Such analysis may provide information for the retraining of the model. The remedial action may also include a thought chain / thought tree method, in which the same question is asked to the model in different ways, and an expert system may be used to provide information for the thought tree method. The remedial action may include keeping a version of the previous model running, identifying prompts similar to the degradation prompts, and sending these prompts to the previous model. In other words, the remedial action does not prevent the rollout of the modified model, but may allow the rollout of the model, but transfers prompts similar to the degradation prompts to an older version of the model until some future time (e.g., until additional training produces a model that does meet the degradation model). Such remedial actions can help meet a major release date that cannot be changed, or in other words, help meet a release that cannot be postponed but maintain model quality by running a smaller number of hints to older versions.

[0060] At step 310, in response to the system determining that the evaluation indication does not meet the degradation criteria, the system may provide an indication of a successful benchmark. A successful benchmark may allow the quality of some prompt responses to be reduced, while compensating with the quality of other prompt responses to be improved. In some implementations, the indication of a successful evaluation may include submitting changes to a modified version of the model. This may include assigning a version number to the modified version of the model. In some implementations, several versions may be submitted before the model is put into production. In some implementations, at step 310, when the benchmark test is successful, the system may store the results of the evaluation of the second response. The results of the evaluation may be stored in the prompt set as an additional scoring history. Therefore, after a successful benchmark test, in some implementations, the modified model becomes the current model, which may be further modified with additional tests. Method 300 provides an objective way to determine whether modifications to the model affect model quality, which is a previously unavailable data point.

[0061] Figure 4 4 is a diagram illustrating an example method 400 for benchmarking a modified large language model using an expert system according to the disclosed implementation. The method 400 may be as follows: Figure 3 An example of evaluating a first response against a second response as described in step 304 of . At step 402, the system may determine an area of ​​expertise for each prompt in a set of prompts. In some implementations, prompts may be associated with areas of expertise in a prompt library (a set of prompts). In some implementations, the system may include a model that assigns areas of expertise to prompts, such as a classifier that determines which areas of expertise are assigned to prompts. A prompt may be assigned to more than one area of ​​expertise. Each area of ​​expertise is associated with an expert system. At step 404, for each area of ​​expertise represented in a set of prompts, the system identifies an expert system corresponding to the profession, and uses the expert system to evaluate a second response (e.g., a response generated by a modified version of the model) against a first response. Thus, step 404 is repeated for each unique area of ​​expertise represented in a set of prompts.

[0062] At step 406, the system evaluates the prompt responses to identify a marked prompt. A marked prompt is a prompt in which a second response generated for the prompt represents a predetermined quality reduction compared to the first prompt. To determine whether the prompt is a marked prompt, at step 408, the system obtains a first score of the responses generated for the prompt in the first response. The first response is a response to the prompt generated by the large language model before modification. In some implementations, the system may obtain the first score from the score history of the prompt. In some implementations, the system may obtain the first score by causing the large language model (a version before modification) to generate the first response to the prompt and then using an expert system to generate the first score. In some implementations, if there is no scoring history for the prompt, the system may obtain the first score by obtaining a response generated by the large language model and then using an expert system to calculate the first score.

[0063] The first score may represent a truth score. A truth score may be provided for a response that includes a statement of fact. The truth score is an indication of whether the response includes an illusion. An expert system such as a knowledge engine is configured to calculate a truth score. For example, a knowledge engine is typically configured to be used as part of an indexing process for a search engine. In this way, the knowledge engine may identify facts in a crawled document and compare these facts with facts in an entity database. The system may provide the first response to the knowledge engine as a document to be indexed, so that the knowledge engine scores the response as if it were a crawled document. This may be done without changing the knowledge engine, i.e., using an existing process of the knowledge engine. The score may be a topicality score. The topicality score indicates the relevance of a document (e.g., a response) to a query (e.g., a prompt). The knowledge engine typically also includes a process for scoring documents in response to fact queries. A fact query is a query that includes an entity and requests information about the entity. The system may use this existing process of the knowledge engine to obtain a score by providing the first response as a document and providing the prompt as a query. Therefore, as with the truth score, the existing knowledge engine process may be used to parse the prompt and response into a query and candidate response documents. In some implementations, the first score may represent multiple scores, for example, both an authenticity score and a topicality score. Although described above using a knowledge engine, some implementations may obtain an authenticity score by determining an authenticity score using a search engine or by reference to a structured entity page (such as Wikipedia). In some implementations, the authenticity score may be obtained from both a knowledge engine and a search engine (or a reference to a structured entity page), which may be used to obtain two authenticity scores. The two scores may be summed together or may be used separately to determine whether there is a quality drop.

[0064] As another example, the score can be a similarity score. The similarity score is a measure of the similarity between the response generated by the large language model for the prompt and the response generated by the expert system for the prompt. For example, the translation engine can be an expert system for scoring prompts related to the translation request. The translation engine is configured to provide high-quality translation between two specific languages. Although the translation engine can use a large language model, the large language model of the translation engine is a specialist model that is trained to have high quality in a very narrow professional field, which is much easier than having high quality in a wide range of fields. Another example of an expert system that can be used to obtain a similarity score is a mathematical engine. The mathematical engine is configured to provide high-quality solutions to mathematical and scientific problems. Any expert system with a professional model can be used as an expert system, and the system can calculate the similarity score of the first response based on the expert system. In order to obtain a similarity score, the system can provide a prompt to the expert system and obtain a response to the prompt. The system can compare the response from the expert system with the first response (the response generated by the large language model). The system can compare the response from the expert system with a portion of the first response. For example, if a prompt is assigned to two areas of expertise, a first response generated for the prompt may include a first portion related to the first area of ​​expertise and a second portion related to the second area of ​​expertise. Implementations may be able to parse the response to determine the portions.

[0065] As another example, the score can be a generated score obtained from a version of the large language model itself. For example, an old version of the model (including a previous version) or a smaller or larger version of the model can be asked to score some aspect of the response. For example, the model can be asked to give a score between one and ten (or between zero and one, or any other range) indicating the level of creativity in the first response, indicating whether the first response rhymes (e.g., if the prompt is related to poetry generation), indicating the degree to which the first response includes a creative turn, etc. In other words, one of the expert systems within the expert system can be the model itself, and the model can be asked to score the first response.

[0066] At step 410, the system obtains a second score for the prompt. The second score is the score of the response generated for the prompt from among the second responses. In other words, the second score is for the response generated for the prompt by the modified version of the large language model. The second score is obtained using the same expert system (or systems) used to generate the first score for the prompt, except this time the response is a response generated by the modified model. Thus, the first score and the second score for the prompt are directly comparable.

[0067] At step 412, the system compares the second score with the first score to determine whether the second score represents a quality degradation relative to the first score. In some implementations, the quality degradation is absolute. In other words, if the second score is at least not as good as the first score, the system determines that there is a quality degradation. In some implementations, the quality degradation can be relative. For example, the system can determine that if the second score is within a predetermined distance of the first score, there is no quality degradation. The predetermined distance can be absolute, such as within x of the first score. For example, if the first score is 0.85 and the second score is 0.7, x can be a number such as 0.05, 0.1, 0.15, 0.2, etc. In this example, the quality degradation can be defined as the second score is less than the first score minus the predetermined distance x. The predetermined distance can be proportional, such as within y% of the first score. For example, if the first score is 90, the quality degradation can be defined as the second score is less than the first score multiplied by 0.9. These examples are provided for ease of explanation, and implementations include other similar ways of defining quality degradation. In some implementations, the quality degradation depends on the type of score. For example, the system may use an absolute score drop for the topicality score and a predetermined distance for the similarity score. If the second score does indicate a drop in quality, then at step 416, the system may identify the prompt as a marked prompt. In the case where the first score (and the second score) represent multiple scores (e.g., authenticity and topicality scores), each score may be tested for a drop in quality independently. In some implementations, if any score indicates a drop in quality, the system may identify the prompt as a marked prompt. In some implementations, the scores may be combined, and the combined score may be used to determine whether there is a drop in quality. Therefore, in some implementations, the test for a drop in quality is flexible and depends on the area of ​​expertise, the type of score, the number of different scores, etc. Repeat step 406 for each prompt associated with a particular area of ​​expertise.

[0068] In some implementations, at step 414, the system may compare the second score to a quality threshold. The quality threshold is independent of the first score. Such a comparison can help the system identify prompts for which both the first score and the second score are below the quality threshold. Although these prompts may not represent a decrease in quality (e.g., the second score is not a decrease in quality relative to the first score), these prompts can be identified (at step 416) as marked prompts, although the prompts can be identified as different marking values, so that the system can distinguish marked prompts that represent a decrease in quality relative to the first score (step 412, yes) from marked prompts with low quality responses (e.g., the score is below the quality threshold, step 414, yes).

[0069] At step 418, the system may perform an analysis (evaluation) using the marked prompts. From the perspective of the professional field, the analysis may determine the overall or aggregate score of the model (i.e., the first score of the original unmodified model and the second score of the modified model). Because the benchmark may allow a certain degree of degradation, the aggregate score may tolerate a certain amount of decline. For example, the system may determine the ratio of the number of marked prompts to the number of prompts for the professional field. This ratio may be compared to a predetermined ratio representing an unacceptable ratio. If the ratio is less than the unacceptable ratio (e.g., there are fewer marked prompts), the evaluation may be considered successful. In other words, the degradation criterion may be whether the ratio is less than the unacceptable ratio. If the ratio is greater than the unacceptable ratio, the system may determine that the evaluation satisfies the degradation criterion.

[0070] In some implementations, step 418 may include additional analysis. The additional analysis may provide guidance on which types of prompts represent low-quality prompts that have not improved (e.g., the second score is below a quality threshold). In some implementations, the analysis of step 418 may be performed on all prompts for the professional field in a set of prompts. This may provide insight into which types of prompts have maintained quality or improved quality. The analysis may include techniques for identifying shared characteristics of tagged prompts. For example, clustering techniques may be used to identify shared characteristics of tagged prompts. Clustering techniques may also be used to identify shared characteristics of prompts that have not improved responses (e.g., tagged in response to step 414). Shared characteristics may be topics shared by prompts. Shared characteristics may be query types shared by prompts. Query types may represent professional fields. In some implementations, the results of the analysis may be presented in a dashboard as part of step 418 or step 420. The dashboard may provide an overview of the analysis. The dashboard may provide various data items generated for the analysis, e.g., the number of tagged prompts, shared characteristics of prompts, ratios, details of tagged prompts, etc. In some implementations, the dashboard may include an optional control that enables a user to identify the results of an evaluation. For example, an optional control may enable a user to identify an evaluation as not meeting a degradation criterion (e.g., unsuccessful) or as meeting a degradation criterion (i.e., identifying as successful). In some implementations, this control may override the results of an evaluation determined programmatically. Thus, for example, an operator may override a determination made by the system that an evaluation was successful.

[0071] After all areas of expertise have been evaluated, at step 420, the system may perform analysis in all expert systems. In this analysis, the system may determine whether the analysis of any area of ​​expertise is unsuccessful (indicating that the degradation criteria are met), and if so, determine that the overall benchmark is unsuccessful. In addition, in some implementations, the system may perform analysis in all marked prompts, which may enable the system to identify additional shared characteristics that were not previously identified. In some implementations, the shared characteristics analysis is performed only at step 420. In some implementations, the shared characteristics analysis is performed only at step 418. As indicated above, step 420 may include the display of a dashboard as discussed above. Method 400 ends with a determination of whether the evaluation of the response generated by the modified language model meets the degradation criteria. As indicated above, this determination may be implemented programmatically without operator intervention, may be implemented using operator input, or may be provided by an operator (e.g., to override any programmatic conclusions).

[0072] Figure 5 is a diagram illustrating an example method 500 for high watermarking a modified large language model using an expert system according to the disclosed implementation. The method 500 may be used in a system such as Figure 1 The method 500 enables evaluation of a modified model against a previous version of the model (e.g., a version running in a production environment, a version that passed a previous benchmark but has not yet been put into production, etc.). The previous version of the model is considered to be the current version or the original version or the unmodified version. The modified version of the model can represent additional training / fine-tuning performed on the previous model. In some implementations, the method steps can be performed by a system such as the model evaluation system 140. In some implementations, the method steps can be performed by a system including the model evaluation system 140 and one or more expert systems 150. In some implementations, the method steps can be performed by a system including the model evaluation system 140 and one or more expert systems 150. Figure 1 In some implementations, the method steps may be performed by a system including a model evaluation system 140, one or more expert systems 150, and a generative AI system 130'. Figure 1 The method 500 provides another objective way to determine whether a modification to a model affects the model quality.

[0073] At step 502, the system obtains a set of prompts identified as quality assurance prompts from the prompt set. The prompt set is described in more detail above. In an implementation that supports high water mark testing, the prompt set includes a set of prompts used in the high water mark test. This set of prompts can be smaller than the set of prompts used for benchmarking. Therefore, the high water mark test can be performed faster than the benchmark test. The quality assurance prompt is a prompt for which the modified large language model must generate an acceptable response (e.g., as measured by a comparison quality threshold). Like the benchmark test, the high water mark test uses an expert system to obtain a score for the response generated by the modified language model, and compares the score with an appropriate quality threshold. Such prompts can be hand-picked by the operator of the system. Such prompts can represent prompts in sensitive or important areas. Such prompts can represent prompts that have proven historical stability. For example, the response to the prompt "what is the birthplace of queen Elizabeth" can be scored above the quality threshold in history, which means that the response is stable. Since this fact does not change over time, the response should not change either, and the score of the response should remain above the quality threshold.

[0074] At step 504, the system can determine an area of ​​expertise for each prompt in a set of prompts. This determination is similar to the above description of Figure 4 The determination discussed in step 402 of . At step 506, for each area of ​​expertise represented in the set of prompts, the system identifies an expert system corresponding to the expertise and uses the expert system to evaluate the response generated by the modified version of the large language model. Thus, step 504 is repeated for each unique area of ​​expertise represented in the set of prompts.

[0075] At step 508, the system obtains and evaluates responses to the prompts to identify flagged prompts. Flagged prompts are prompts for which responses generated by the modified model for the prompt fail to meet a quality threshold. To determine whether a prompt is a flagged prompt, at step 510, the system obtains responses for the prompt from the modified model and uses the expert system to calculate a quality score for the response. The quality score may be the value described above with respect to Figure 4 One or more of the scores in question.

[0076] At step 512, the system determines whether the quality score meets a quality threshold. The quality threshold may be determined by the type of score that is compared to the quality threshold and / or based on an expert system used to generate the score. Figure 4As explained, the system can combine two or more scores, or can compare two scores generated separately for the responses. If the score fails to meet the quality threshold, then at step 514, the system can identify the prompt as a flagged prompt. In method 500, any flagged prompt represents a prompt for which the modified model did not generate a response of sufficient quality. Step 508 is repeated for each quality assurance prompt corresponding to the professional field.

[0077] In some implementations, at step 516, the system may perform an analysis (evaluation) of the tagged prompts. Similar to the analysis described in step 418, the analysis may include identifying shared characteristics of the tagged prompts. Step 516 may also include the generation and display of a dashboard. The dashboard may list the details of the tagged prompts and the responses generated for the tagged prompts. In some implementations, the dashboard may include an optional control that enables a user to override the tagged prompts.

[0078] At step 518, in response to the system determining that a flagged prompt exists, i.e., at least one prompt has a response generated by the modified model that fails to meet a quality threshold, the system can take remedial action. Remedial action can include preventing the modified version of the large language model from being put into production. Remedial action can include undoing the modification, e.g., reverting the model to a previous version. Remedial action can include, for example, changing the quality threshold if it is determined that the threshold is too sensitive. Remedial action can include further training and / or thought chaining / thought tree methods, such as with respect to Figure 3 The remedial action may include keeping a version of the previous model running, identifying prompts similar to the quality assurance prompts that failed to meet the quality threshold, and sending those prompts to the previous model. In other words, the remedial action does not prevent the rollout of the modified model, but rather may allow the rollout of the modified version of the model but transfer prompts similar to the marked prompts to the older version of the model until some future time (e.g., until additional training produces a model that generates responses that meet the quality threshold).

[0079] Figure 6 6 is a diagram illustrating an example method 600 for identifying low-quality trends generated by a large language model according to disclosed implementations. The method 600 can be performed in an environment such as the environment 100. In some implementations, one or more of the method steps can be performed by a system, which can include Figure 1The method 600 may be executed periodically (e.g., every minute, every hour, every two hours, etc.). At step 602, the system selects a prompt-response pair from a repository of prompt-response pairs. The repository of prompt-response pairs is generated by a large language model. The large language model may be run in a production environment. An example of a repository of prompt-response pairs is Figure 1 The model log 270 of method 600 may be selected randomly. The selection may be a selection from the prompt-response pairs during a time window. The time window may represent a time period since the last execution of method 600. The time period may represent a predetermined window (e.g., the last 6 hours, the last five minutes, etc.). The time period may not be related to the last execution of method 600. The selection may be based on the prompt-response pair being identified by the user as unsatisfactory. This unsatisfactory indication may be stored in a repository as an attribute of the prompt-response pair.

[0080] At step 604, the system may determine an area of ​​expertise for the prompt-response pair. In some implementations, the system may include a process for assigning an area of ​​expertise to a prompt, such as a process that uses a classifier or logic to determine to which area of ​​expertise a prompt belongs. A prompt may belong to more than one area of ​​expertise. Each area of ​​expertise is associated with an expert system. At step 606, the system evaluates the prompt-response pair using the expert system associated with the area of ​​expertise for the prompt. This evaluation is similar to the above description of Figure 5 The system is performed in a similar manner as explained in step 508. In other words, the system uses the expert system to obtain the score of the response in the prompt-response pair.

[0081] At step 608, the system determines whether the evaluation indicates that a quality threshold is met. The evaluation may include comparing the score to a quality threshold. In some implementations, if the score meets the quality threshold, the system may select and evaluate another prompt (e.g., return to step 602) until a predetermined number of prompt-response pairs have been selected and analyzed. In some implementations, if the score meets the quality threshold, the method 600 may end. If the evaluation indicates that the quality threshold is not met, at step 610, the system may add the prompt-response pair to a model quality watch list. The model quality watch list represents a data repository of prompt-response pairs that the model evaluation system 140 may analyze to identify trends in poor quality responses. Figure 2 Model quality watch list 254 is an example model quality watch list.

[0082] At step 612, the system can analyze the model quality watch list to determine if a trend exists. In one example, the system can determine that a trend exists by determining that there are a predetermined number of prompt-response pairs in the model quality watch list that share a characteristic. The characteristic can be a topic, a query format, etc. Figure 2 As discussed, older prompt-response pairs may be excluded from the evaluation. This may occur explicitly (e.g., the evaluation only considers prompt-response pairs within a certain time frame, such as one week, two weeks, etc.), due to time decay of counting older prompt-response pairs as less than complete pairs, and / or because prompt-response pairs are removed from the watch list. Step 612 may be run asynchronously with steps 602 to 610. In other words, step 612 may be run at any time after a record has been added to the model quality watch list, and need not be run in response to a prompt-response pair being added to the watch list.

[0083] If the system identifies a trend, then at step 614, the system can identify a characteristic of the trend and use the characteristic to take remedial action. The remedial action can be to notify the operator of the characteristic. This enables the operator to set up training of the large language model to address the lower quality of the characteristic. The method 600 enables the system to proactively identify areas where the large language model can benefit from additional training, which improves the overall model quality.

[0084] Figure 7 is a diagram illustrating an example method 700 for identifying viral low-quality responses generated by a large language model according to disclosed implementations. The method 700 can be performed in an environment such as the environment 100. In some implementations, one or more of the method steps can be performed by a system, which can include Figure 1 One or more of the model evaluation system 140, the generative AI system 130, and / or the expert system 150. The method 700 enables the system to proactively (e.g., automatically and without operator intervention) identify prompts that result in low-quality responses. Because these responses are of low quality, they may represent particularly problematic / undesirable responses. Such responses may lead to undesired attention to the large language model's distrust of the model response. Prompts that represent unexpected surges (e.g., many requests for the same prompt are received in a short period of time) are referred to as viral prompts and may be an indication of low-quality responses. The method 700 may be used to identify and address virality.

[0085] At step 702, the system monitors a repository of prompt-response pairs to identify prompt-response pairs that meet a virality threshold. The virality threshold may represent a predetermined number of similar prompts received in a defined time window. The virality threshold may represent an unexpected increase in the number of times a prompt is received during a time window compared to a previous time window. For example, a particular prompt that was received five times in the previous hour but 50 times in the current hour may meet the virality threshold. Monitoring may cluster similar prompts together, so prompts do not need to be exact copies of each other. This enables the system to be more accurate in the number of times prompts (similar prompts) are received during any particular time window.

[0086] If it is determined that the prompt-response pair meets the virality threshold, then at step 704, the system determines an area of ​​expertise for the prompt-response pair. At step 706, the system uses an expert system to evaluate the response to the prompt-response pair. This evaluation is similar to the evaluation discussed above, and can include generating one or more scores for the response, and (e.g., at step 708) comparing the one or more scores to a quality threshold. If the response fails to meet the quality threshold, then at step 710, the system can take remedial action. This can include reporting the prompt-response pair to an operator. This can include preventing the model from generating responses to similar prompts, i.e., maintaining model quality and trust in the model.

[0087] Figure 8 An example of a computing device 800 is shown, which may be Figure 1 The search system 120, generative AI system 130, and / or expert system 150 of the present invention can be used with the techniques described herein. The computing device 800 is intended to represent various example forms of large-scale data processing equipment, such as servers, blade servers, data centers, mainframes, and other large-scale computing devices. The computing device 800 can be a distributed system with multiple processors and can include network-attached storage nodes interconnected by one or more communication networks. The components shown here, their connections and relationships, and their functions are intended only as examples and are not intended to limit the implementation of the invention described and / or claimed in this document.

[0088] The computing device 800 may be a distributed system including any number of computing devices 880 (e.g., 880a, 880b, ... 880n). The computing device 880 may include a server or rack server, a mainframe, etc. communicating via a local area network or a wide area network, a dedicated optical link, a modem, a bridge, a router, a switch, a wired or wireless network, etc.

[0089] In some implementations, each computing device may include multiple racks. For example, computing device 880a includes multiple racks 858a-858n. Each rack may include one or more processors, such as processors 852a-852n and 862a-862n. The processors may include data processors, network attached storage devices, and other computer-controlled devices. In some implementations, one processor may operate as a master processor and control scheduling and data distribution tasks. The processors may be interconnected through one or more rack switches 862a-862n, and one or more racks may be connected through a switch 878. Switch 878 may handle communications between multiple connected computing devices 800.

[0090] Each rack may include memory (such as memory 854 and memory 864) and storage devices (such as 856 and 866). Storage devices 856 and 866 may provide mass storage and may include volatile or non-volatile storage devices such as network attached disks, floppy disks, hard disks, optical disks, tapes, flash memory or other similar solid-state memory devices, or device arrays, including devices in storage area networks or other configurations. Memory 856 or 866 may be shared between multiple processors, multiple racks, or multiple computing devices, and may include non-transitory computer-readable media that store instructions that can be executed by one or more processors. Memory 854 and 864 may include, for example, one or more volatile memory units, one or more non-volatile memory units, and / or other forms of non-transitory computer-readable media, such as magnetic or optical disks, flash memory, cache, random access memory (RAM), read-only memory (ROM), and combinations thereof. Memory such as memory 854 may also be shared between processors 852a-852n. Data structures such as indexes may be stored, for example, across storage devices 856 and memory 854. The computing device 800 may include other components not shown, such as a controller, a bus, input / output devices, a communication module, etc.

[0091] The entire system may be composed of multiple computing devices 800 that communicate with each other. For example, device 880a may communicate with devices 880b, 880c, and 880d, and these devices may be collectively referred to as generative AI system 130, expert system 150, and / or search system 120. Some of the computing devices may be located geographically close to each other, while other computing devices may be located geographically far away. The layout of computing device 800 is only an example, and the system may adopt other layouts or configurations.

[0092] Various implementations of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system that includes at least one programmable processor that can be either special-purpose or general-purpose, coupled to receive data and instructions from a storage system, at least one input device, and at least one output device, and to transmit data and instructions to the storage system, at least one input device, and at least one output device.

[0093] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for a programmable processor and may be implemented in high-level procedural and / or object-oriented programming languages ​​and / or assembly / machine languages. As used herein, the terms "machine-readable medium," "computer-readable medium," refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0094] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user, and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including sound, voice, or tactile input.

[0095] The systems and techniques described herein may be implemented in a computing system that includes a back-end component (e.g., as a data server) or includes a middleware component (e.g., an application server) or includes a front-end component (e.g., a client computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or any combination of such back-end, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), and the Internet.

[0096] A computing system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises through computer programs running on the respective computers and placing them in a client-server relationship.

[0097] A number of implementations have been described, however, it will be appreciated that various modifications may be made without departing from the spirit and scope of the specification.

[0098] It should also be understood that when an element is referred to as being on another element, connected to, electrically connected to, coupled to, or electrically coupled to another element, it can be directly on another element, directly connected to, or coupled to another element, or one or more intermediate elements may be present. In contrast, when an element is referred to as being directly on another element, directly connected to, or directly coupled to another element, there is no intermediate element. Although the term "directly on...", "directly connected to..." or "directly coupled to..." may not be used throughout the detailed description, an element that is shown as being directly on, directly connected to, or directly coupled to may be mentioned in this way. The claims of the present application may be modified to narrate the example relationships described in the specification or shown in the accompanying drawings.

[0099] Although certain features of the described implementations have been illustrated as described herein, those skilled in the art will now expect many modifications, substitutions, changes and equivalents. Therefore, it should be understood that the appended claims are intended to cover all such modifications and changes that fall within the scope of the implementations. It should be understood that they are presented only in an exemplary and non-limiting manner, and various changes in form and detail may be made. Except for mutually exclusive combinations, any part of the devices and / or methods described herein may be combined in any combination. The implementations described herein may include various combinations and / or sub-combinations of the functions, components and or features of the different implementations described.

[0100] Furthermore, the logic flows depicted in the figures do not require the particular order shown or sequential order to achieve the desired results. In addition, other steps may be provided, or steps may be deleted from the described flows, and other components may be added to or removed from the described systems. Therefore, other implementations are within the scope of the following claims.

[0101] Clause 1. A system comprising: a processor; a prompt library that associates prompts with expertise fields, each prompt being associated with at least one expertise field and being associated with a corresponding score for the at least one expertise field; and a memory that stores instructions that, when executed by the processor, cause the system to: evaluate a first response using an expert system associated with the expertise field for a set of prompts selected from the prompt library, compared to a second response, the first response being generated by a large language model for the set of prompts, the second response being generated by a modified version of the large language model for the set of prompts; determine that the evaluation indicates that a degradation criterion is satisfied; and initiate remedial action in response to determining that the evaluation indicates that the degradation criterion is satisfied.

[0102] Clause 2. A system according to clause 1, wherein evaluating the first response against the second response comprises, for each prompt in the set of prompts associated with a first field of expertise: obtaining, from an expert system corresponding to the first field of expertise, a first score of responses generated for the prompt in the first response; obtaining, from the expert system, a second score of responses generated for the prompt in the second response; and identifying the prompt as a marked prompt in response to determining that the second score represents a predetermined quality degradation relative to the first score.

[0103] Clause 3. The system of clause 2, wherein the prompt library stores the first score for the response, wherein obtaining the first score for the response comprises obtaining the first score from the prompt library.

[0104] Clause 4. The system of clause 2, wherein the memory further stores instructions that cause the system to store the second score for the prompt in the prompt library.

[0105] Clause 5. The system of clause 2, wherein evaluating the first response against the second response further comprises: analyzing the tags for shared characteristics; and providing an output of the analysis including identifying the shared characteristics.

[0106] Clause 6. The system of clause 5, wherein the shared characteristic is a topic or query type shared by the tagged prompts.

[0107] Clause 7. The system of Clause 6, wherein the degradation criterion represents an unacceptable ratio of labeled cues having the shared characteristic of the labeled cues.

[0108] Clause 8. The system of clause 5, wherein the analyzing comprises clustering the labeled cues.

[0109] Clause 9. A system according to clause 2, wherein evaluating the first response against the second response further comprises: determining a ratio of the marked prompts to prompts in the set of prompts associated with the first area of ​​expertise, wherein the degradation criterion indicates an unacceptable ratio.

[0110] Clause 10. A system according to clause 2, wherein the expert system is a first expert system, and evaluating the first response in comparison to the second response includes: for each prompt in the set of prompts associated with a second field of expertise: obtaining a third score of responses generated for the prompt in the first response from a second expert system corresponding to the second field of expertise, obtaining a fourth score of responses generated for the prompt in the second response from the second expert system, and identifying the prompt as a marked prompt in response to determining that the fourth score represents a predetermined quality degradation relative to the second score; and determining a ratio of the number of marked prompts to the number of prompts in the set of prompts associated with the first field of expertise or the second field of expertise, wherein the degradation criterion represents an unacceptable ratio.

[0111] Clause 11. A system according to clause 10, wherein determining the ratio further comprises: determining a first ratio of labeled prompts for prompts associated with the first field of expertise to prompts associated with the first field of expertise in the set of prompts; and determining a second ratio of labeled prompts for prompts associated with the second field of expertise to prompts associated with the second field of expertise in the set of prompts, wherein the degradation criterion indicates an unacceptable first ratio or an unacceptable second ratio.

[0112] Clause 12. A system according to clause 1, wherein at least some of the prompts in the prompt library are identified as quality assurance prompts, and the group of prompts includes prompts identified as quality assurance prompts, and the degradation criteria includes a score of a second response generated for the prompts identified as quality assurance prompts failing to at least meet a score of a first response generated for the prompts.

[0113] Clause 13. The system of clause 1, wherein the memory further stores instructions that cause the system to: randomly select prompt-response pairs generated by the large language model for evaluation; obtain a quality score by evaluating the prompt-response pairs using an expert system in the expert system; determine that the quality score fails to meet a quality threshold; determine that the prompt-response pairs constitute a trend; and identify the trend as an area for further training the large language model.

[0114] Clause 14. The system of clause 1, wherein the memory further stores instructions that cause the system to: identify prompt-response pairs generated by the large language model in a production environment that meet a virality threshold; use an expert system in the expert system to obtain a quality score for the prompt-response pair; and initiate remedial action for the prompt-response pair in response to determining that the quality score fails to meet the quality threshold.

[0115] Clause 15. The system of clause 14, wherein the remedial action comprises preventing the large language model from generating responses to prompts in the prompt-response pairs in the production environment.

[0116] Clause 16. The system of clause 14, wherein the remedial action comprises providing the prompt-response pair for review by an operator.

[0117] Clause 17. The system of clause 1, wherein the expert system comprises a knowledge engine, wherein the knowledge engine scores responses generated to a prompt as candidate response documents to a query represented by the prompt.

[0118] Clause 18. The system of clause 1, wherein the remedial action prevents the modified version of the large language model from being put into production.

[0119] Clause 19. A system according to clause 1, wherein the remedial action includes pushing the modified version of the large language model to a production environment, and in the production environment, transferring prompts similar to the prompts in the set of prompts that contribute to satisfying the degradation criterion to the large language model instead of the modified version of the large language model.

[0120] Clause 20. A method comprising: identifying a prompt submitted to a large language model that satisfies a virality threshold; using an expert system to obtain a quality score for a prompt-response pair representing the prompt; and in response to determining that the quality score fails to satisfy the quality threshold, initiating remedial action for the prompt.

[0121] Clause 21. The method of clause 20, wherein the remedial action comprises preventing the large language model from generating a response to the prompt in a production environment.

[0122] Clause 22. The method of clause 20, wherein identifying the prompt as satisfying the virality threshold comprises determining that the prompt is a member of a prompt cluster having at least a predetermined number of members submitted during a defined time window.

[0123] Clause 23. The method of clause 22, wherein the defined time window is a first window and the predetermined number is defined relative to a number of members of the cluster that submitted during a second time window occurring prior to the first window.

[0124] Clause 24. A method according to clause 20, wherein the prompt is a first prompt, and the method further includes: randomly selecting a second prompt and response to be submitted to the large language model for evaluation; obtaining a second quality score by evaluating the second prompt and response using the expert system; determining that the second quality score fails to meet the quality threshold; determining that the second prompt and response constitute a trend; and identifying the trend as an area for further training the large language model.

[0125] Clause 25. A method comprising: using at least a first expert system, evaluating a first response against a second response, the first response generated by a large language model in response to a prompt in a set of prompts selected from a prompt set, the second response generated by a modified version of the large language model in response to the prompt in the set of prompts, the evaluating comprising, for each prompt in the set of prompts: obtaining a first score for responses generated for the prompt in the first response, obtaining a second score for responses generated for the prompt in the second response, and in response to determining that the second score represents a predetermined quality degradation relative to the first score, identifying the prompt as a flagged prompt; determining a ratio of flagged prompts to prompts in the set of prompts; determining that the ratio represents an unacceptable ratio; and preventing the modified version of the large language model from being put into a production environment.

[0126] Clause 26. The method of Clause 25, wherein the prompt set stores the first score for the response, and obtaining the first score for the response comprises obtaining the first score from the prompt set.

[0127] Clause 27. The method of Clause 25, further comprising storing the second score for the prompt in the prompt set.

[0128] Clause 28. The method of clause 25, wherein the first expert system comprises a knowledge engine, wherein the knowledge engine scores responses generated to a prompt as candidate response documents to a query represented by the prompt.

[0129] Clause 29. The method of clause 25, wherein the first expert system comprises a mathematical engine, wherein the mathematical engine scores responses generated to prompts with respect to similarity compared to prompts generated by the mathematical engine.

[0130] Clause 30. The method of clause 25, wherein evaluating the first response against the second response further comprises: analyzing the prompt for a shared characteristic; and providing an output of the analysis comprising identifying the shared characteristic.

[0131] Clause 31. A method according to clause 30, wherein the shared characteristic is a topic or query type shared by the marked prompts, and the unacceptable ratio represents the ratio of marked prompts having the shared characteristic to prompts in the set of prompts having the shared characteristic.

[0132] Clause 32. A method comprising: selecting a set of prompts identified as quality assurance prompts from a set of prompts; using at least a first expert system to evaluate responses to prompts in the set of prompts generated by a modified version of a large language model; determining that at least one response fails to meet a quality threshold; and preventing the modified version of the large language model from being placed into a production environment.

[0133] Clause 33. The method of clause 32, wherein the prompt in the set of prompts is identified in the prompt set as a quality assurance prompt for an area of ​​expertise of the first expert system.

[0134] Clause 34. The method of clause 33, further comprising evaluating responses to prompts associated with a second domain of expertise generated by the modified version of the large language model using a second expert system, the second expert system corresponding to the second domain of expertise.

[0135] Clause 35. The method of clause 32, wherein using the first expert system to evaluate a response generated for a prompt in the set of prompts comprises using the first expert system to obtain a score for the response.

[0136] Clause 36. The method of clause 35, wherein the first expert system is a knowledge engine and the score represents at least one of a topicality score of the response or a truthfulness score of the response.

[0137] Clause 37. A method comprising: selecting a prompt-response pair from a prompt-response repository, wherein the prompt-response pairs in the prompt-response repository are generated by a large language model in a production environment; using an expert system to obtain a score for the prompt-response pair; determining that the score fails to meet a quality threshold; and in response to determining that the score fails to meet the quality threshold, storing the prompt-response pair in a quality observation list, wherein the quality observation list is used to identify trends related to model quality.

[0138] Clause 38. The method of clause 37, wherein the prompt-response pairs are randomly selected from the prompt-response repository from prompt-response pairs stored within a time window.

[0139] Clause 39. The method of clause 37, further comprising: determining a trend by analyzing the prompts in the quality watch list; and initiating remedial action in response to determining the trend.

[0140] Clause 40. A method according to clause 39, wherein determining the trend includes: clustering the prompts into topic clusters; and determining that a cluster in the topic cluster has at least a predetermined number of members, wherein initiating the remedial action includes initiating further training of the large language model based on the prompts in the cluster, or preventing the large language model from generating responses to prompts similar to the prompts in the cluster.

Claims

1. A system for monitoring the response quality of a large language model, comprising: processor; a prompt library that associates prompts with fields of expertise, each prompt being associated with at least one field of expertise and being associated with a corresponding score for the at least one field of expertise; as well as a memory storing instructions that, when executed by the processor, cause the system to: evaluating, using an expert system associated with the specialized domain for a set of prompts selected from the prompt library, a first response generated by the large language model for the set of prompts against a second response generated by a modified version of the large language model for the set of prompts, determining that the assessment indicates that a degradation criterion is satisfied, and Remedial action is initiated in response to determining that the assessment indicates that a degradation criterion is satisfied.

2. The system of claim 1 , wherein evaluating the first response against the second response comprises, for each prompt in the set of prompts associated with the first area of ​​expertise: obtaining, from an expert system corresponding to the first professional field, a first score of responses generated for the prompt in the first responses; obtaining from the expert system a second score of responses generated for the prompt in the second responses; as well as The cue is identified as a flagged cue in response to determining that the second score represents a predetermined degradation in quality relative to the first score.

3. The system of claim 2, wherein the prompt library stores the first score for the response, wherein obtaining the first score for the response comprises obtaining the first score from the prompt library.

4. The system of claim 2, wherein the memory further stores instructions that cause the system to store the second score for the prompt in the prompt library.

5. The system of claim 2, wherein evaluating the first response against the second response further comprises: analyzing the labeled cues for shared characteristics; as well as An output of the analysis is provided, including identifying the shared characteristics.

6. The system of claim 5, wherein the shared characteristic is a topic or query type shared by the labeled prompts, and the degradation criterion represents an unacceptable ratio of labeled prompts having the shared characteristic of the labeled prompts.

7. The system of claim 2, wherein evaluating the first response in comparison to the second response further comprises: determining a ratio of tagged prompts to prompts in the set of prompts associated with the first area of ​​expertise, The degradation criterion represents an unacceptable ratio.

8. The system of claim 2, wherein the expert system is a first expert system, and evaluating the first response against the second response comprises: For each prompt in the set of prompts that is associated with the second area of ​​expertise: obtaining, from a second expert system corresponding to the second professional field, a third score of responses generated in response to the prompt in the first response, obtaining from the second expert system a fourth score for a response generated in response to the prompt in the second response, and identifying the prompt as a flagged prompt in response to determining that the fourth score represents a predetermined degradation in quality relative to the second score; as well as determining a ratio of the number of tagged prompts to the number of prompts in the set of prompts that are associated with the first area of ​​expertise or the second area of ​​expertise, The degradation criterion represents an unacceptable ratio.

9. The system of claim 8, wherein determining the ratio further comprises: determining a first ratio of tagged prompts for prompts associated with the first area of ​​expertise to prompts in the set of prompts associated with the first area of ​​expertise; as well as determining a second ratio of tagged prompts for prompts associated with the second area of ​​expertise to prompts in the set of prompts associated with the second area of ​​expertise, The degradation criterion indicates an unacceptable first ratio or an unacceptable second ratio.

10. The system of claim 1 , wherein at least some of the prompts in the prompt library are identified as quality assurance prompts, and the set of prompts includes prompts identified as quality assurance prompts, and the degradation criterion includes a score of a second response generated for the prompt identified as a quality assurance prompt failing to at least meet a score of a first response generated for the prompt.

11. The system of claim 1, wherein the expert system comprises a knowledge engine, wherein the knowledge engine scores responses generated to a prompt as candidate response documents to a query represented by the prompt.

12. The system of claim 1, wherein the remedial action prevents the modified version of the large language model from being put into a production environment.

13. The system of claim 1 , wherein the remedial action comprises pushing the modified version of the large language model to a production environment, and in the production environment, transferring prompts similar to the prompts in the set of prompts that contribute to satisfying the degradation criterion to the large language model instead of the modified version of the large language model.

14. A method for monitoring the response quality of a large language model, comprising: Using at least a first expert system, evaluating a first response generated by the large language model in response to a prompt in a set of prompts selected from a set of prompts against a second response generated by a modified version of the large language model in response to the prompt in the set of prompts, the evaluating comprising, for each prompt in the set of prompts: obtaining a first score of responses generated for the prompt among the first responses, obtaining a second score of responses generated for the prompt in the second responses, and identifying the prompt as a flagged prompt in response to determining that the second score represents a predetermined degradation in quality relative to the first score; determining a ratio of flagged cues to cues in the set of cues; determining that the ratio represents an unacceptable ratio; as well as The modified version of the large language model is prevented from being put into a production environment.

15. The method of claim 14, wherein the prompt set stores the first score for the response, and obtaining the first score for the response comprises obtaining the first score from the prompt set.

16. The method of claim 14, further comprising storing the second score for the prompt in the prompt set.

17. The method of claim 14, wherein the first expert system comprises a knowledge engine, wherein the knowledge engine scores responses generated to a prompt as candidate response documents to a query represented by the prompt.

18. The method of claim 14, wherein the first expert system comprises a math engine, wherein the math engine scores responses generated to prompts with respect to similarity compared to prompts generated by the math engine.

19. The method of claim 14, wherein evaluating the first response against the second response further comprises: analyzing the prompt for shared characteristics; as well as An output of the analysis is provided, including identifying the shared characteristics.

20. The method of claim 19, wherein the shared characteristic is a topic or query type shared by the tagged prompts, and the unacceptable ratio represents a ratio of tagged prompts having the shared characteristic to prompts in the set of prompts having the shared characteristic.

21. A method for monitoring the response quality of a large language model, comprising: selecting a set of prompts identified as quality assurance prompts from the prompt collection; evaluating responses to prompts in the set of prompts generated by the modified version of the large language model using at least a first expert system; determining that at least one response fails to meet a quality threshold; as well as The modified version of the large language model is prevented from being put into a production environment.

22. The method of claim 21, wherein the prompts in the set of prompts are identified in the prompt collection as quality assurance prompts for an area of ​​expertise of the first expert system.

23. The method of claim 22, further comprising evaluating responses to prompts associated with a second domain of expertise generated by the modified version of the large language model using a second expert system, the second expert system corresponding to the second domain of expertise.

24. The method of claim 21, wherein using the first expert system to evaluate responses generated to prompts in the set of prompts comprises using the first expert system to obtain scores for the responses.

25. The method of claim 24, wherein the first expert system is a knowledge engine and the score represents at least one of a topicality score of the response or a truthfulness score of the response.