<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[LMAO Learning Group - Medium]]></title>
        <description><![CDATA[LMAO is an online publishing group dedicated to exploring the latest developments in language models and their application in various fields. Whether new to this field or an experienced practitioner, this is the perfect place to explore and learn NLP. - Medium]]></description>
        <link>https://medium.com/lmao-learning-group?source=rss----9cc96588f657---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>LMAO Learning Group - Medium</title>
            <link>https://medium.com/lmao-learning-group?source=rss----9cc96588f657---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:30:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/lmao-learning-group" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introducing LMAO: Language Modeling Advancements Online Learning Group]]></title>
            <link>https://medium.com/lmao-learning-group/introducing-lmao-language-modeling-advancements-online-learning-group-f0a5add8a556?source=rss----9cc96588f657---4</link>
            <guid isPermaLink="false">https://medium.com/p/f0a5add8a556</guid>
            <category><![CDATA[text]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[discord]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Kaushik Shakkari]]></dc:creator>
            <pubDate>Sun, 12 Feb 2023 18:09:55 GMT</pubDate>
            <atom:updated>2023-02-12T18:05:55.658Z</atom:updated>
            <content:encoded><![CDATA[<h4>Publication and Learning Group Introduction</h4><h4>What is this learning group about?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dZ1RyRibGJ2aXm2OZdbzMA.jpeg" /><figcaption>Logo from the author</figcaption></figure><p>As humans, we rely heavily on language to communicate with each other, but language can be complex to understand and difficult to master. Machines are no exception. Hence, the idea of language modeling came into existence and helped machines better process and understand the nuances of language. It also leads to multiple text domains like Natural Language Processing (NLP), Natural Language Understanding (NLU), and Natural Language Generation (NLG).</p><p>Language modeling is a branch of the combined study of linguistics and artificial intelligence that studies the rules and patterns of how a language is used and how it can be applied to everyday life. An everyday application that uses a language model is a classic mobile text keyboard that predicts the next word based on previous words. It does it by assigning probabilities to sentences. For example, the “<em>Robert Downey Jr. played Tony</em>” sentence is more likely than “<em>Robert Downey Jr. played Soccer</em>.” (A good language model most likely predicts Tony as the next word for the previous words <em>Robert</em>, <em>Downey Jr.</em>, and <em>played</em>.)</p><blockquote>Any model which assigns a probability for a sequence of words can be called a language model.</blockquote><h3>Who introduced the idea of language models?</h3><p>In 1948, the renowned American mathematician and cryptographer Claude Shannon introduced the concept of language models in his influential paper “A Mathematical Theory of Communication.” In his paper, Shannon proposed that language models could represent the probability of different word sequences. This allowed the analysis of communication systems to determine the most efficient ways of encoding and transmitting data.</p><p>Shannon’s work focused primarily on the idea of using probability to represent the structure of language. He argued that language could be represented in terms of probabilities so that the more likely a particular word or phrase is to appear in a sentence, the higher its probability of being used. These probabilities were then used to generate sentences that were more likely to be grammatically correct and more likely to sound natural.</p><p>Shannon also introduced the concept of the Shannon game, a game-theoretic approach to language modeling. The game involves two players, each trying to guess the other player’s language — the more accurate the guesses, the higher the score. The game is still used in language modeling research today.</p><p>Shannon’s introduction of language modeling has given a kickstart for the field of linguistics and computer science. His work enabled the development of natural language processing techniques such as machine translation, automatic summarization, and text classification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FG0lhjU0B2WBeNsBF3bRcg.jpeg" /><figcaption>Picture from author: A beautiful sunset view of the Cascade Mountains from my uncle&#39;s house in Bothell, WA</figcaption></figure><blockquote>Language actors take the stage with LMAO (Language Modeling Advancements) in NLP!</blockquote><p>However, language modeling is rapidly advancing, and staying on top of the latest developments can be challenging. This is where a learning group can be beneficial. A language modeling learning group provides a platform for members to discuss, share, and learn from each other’s experiences.</p><p>Members can learn the latest language modeling tools, techniques, and resources by joining a learning group. This ensures they are up-to-date with the most recent advancements in the field. They can also discuss any issues they have with the language models they are using and share advice and tips with each other. This collaborative learning environment allows members to develop their skills and knowledge more quickly than if they were working alone.</p><p>In addition to gaining access to the latest resources and tools, a learning group also provides a great networking opportunity. Members can connect with other professionals in the field, which can be invaluable for career advancement. They can also share ideas and collaborate on projects, leading to new and innovative language models.</p><p>Finally, language modeling learning groups can be a great way to stay motivated. Members can stay focused on their language modeling goals by participating in regular meetings and discussions and keeping track of their progress.</p><p>Are you interested in learning more about Language Modeling?</p><p>Join us at discord: <a href="https://discord.gg/nvFvAGhc">https://discord.gg/nvFvAGhc</a></p><p>Medium Publication: <a href="https://medium.com/lmao-learning-group">https://medium.com/lmao-learning-group</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0a5add8a556" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lmao-learning-group/introducing-lmao-language-modeling-advancements-online-learning-group-f0a5add8a556">Introducing LMAO: Language Modeling Advancements Online Learning Group</a> was originally published in <a href="https://medium.com/lmao-learning-group">LMAO Learning Group</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are Large Language Models (LLMs) Thinking Machines? — Post chatGPT buzz!]]></title>
            <link>https://medium.com/lmao-learning-group/are-large-language-models-llms-thinking-machines-post-chatgpt-buzz-b0909a8e677a?source=rss----9cc96588f657---4</link>
            <guid isPermaLink="false">https://medium.com/p/b0909a8e677a</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[search]]></category>
            <dc:creator><![CDATA[Kaushik Shakkari]]></dc:creator>
            <pubDate>Fri, 10 Feb 2023 22:19:09 GMT</pubDate>
            <atom:updated>2023-02-10T22:28:33.354Z</atom:updated>
            <content:encoded><![CDATA[<h4>PHILOSOPHICAL YET TECHNICAL READ</h4><h3>Are Large Language Models (LLMs) Thinking Machines? — Post chatGPT buzz!</h3><h4>Summarizing my thoughts after working on LLMs for a while and reading <a href="https://arxiv.org/pdf/2301.06627.pdf"><em>DISSOCIATING LANGUAGE AND THOUGHT IN<br>LARGE LANGUAGE MODELS: A COGNITIVE PERSPECTIVE</em></a><em> paper</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OlUeEFrFJE_GcJdFLZIPsQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@neonbrand?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Kenny Eliason</a> on <a href="https://unsplash.com/photos/2RRq1BHPq4E?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><ol><li><a href="#beab">Introduction</a></li><li><a href="#31cc">Formal vs. Functional Linguistic Competence</a></li><li><a href="#25cb">How do today&#39;s LLMs perform on Formal Linguistic Competence?</a></li><li><a href="#8dc9">How do today&#39;s LLMs perform on Functional Linguistic Competence?</a></li><li><a href="#f142">Conclusion</a></li></ol><h4><strong>Introduction:</strong></h4><p>Large Language Models (LLMs) have become powerful. Multiple applications are built on these models across different domains. For example, <a href="https://www.askviable.com/">Viable</a> utilizes GPT-3 LLM to analyze customer feedback and generate meaningful summaries that give companies a better understanding of the needs and preferences of their customers. Moreover, there has been a lot of buzz about these language models post chatGPT. However, can we consider LLMs <em>&quot;thinking machines&quot;</em>? — Are they powerful enough to think like humans and capable of giving reasoning?</p><p><strong>A common misconception</strong></p><blockquote><strong>[Good at Language -&gt; Good at Thinking]</strong>?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oRiOrW1gAYHwUb8eCuOcRQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@cdd20?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">愚木混株 cdd20</a> on <a href="https://unsplash.com/photos/MYwtNqVjC7o?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>We, humans, often draw on our own experiences when making assumptions. Our tendency to draw conclusions based on past experiences is the reason behind the false belief that someone good at language must also be good at thinking. Similarly, it&#39;s wrong to assume people who are bad at language must be bad at thoughts. For example, people who suffer from global aphasia (people who can&#39;t speak, understand speech, read, or write — the loss of almost all language abilities) are good at nonlinguistic cognitive skills like solving math problems or puzzles and playing poker or chess, etc. Similarly, it is not true that &quot;LLMs which are bad at a language must be bad at thinking.&quot;</p><blockquote>It is important to remember that language and thought are separate and that a large language model can be successful without necessarily being successful in the other.</blockquote><p>In this article, I will revise the <a href="https://arxiv.org/pdf/2301.06627.pdf">paper</a> published in Jan 2021, where the authors introduced the concepts of Formal Language Competence and Functional Language Competence. The distinction between formal and functional linguistics is necessary to comprehend if LLMs became or will soon become “<em>thinking machines.”</em></p><h4>Formal vs. Functional Linguistic Competence</h4><p>Linguistic competence involves having a thorough understanding of the rules and regulations of a language, as well as the ability to use and apply them in conversational contexts. It requires both a theoretical knowledge of linguistics and the ability to apply that knowledge to produce spoken and written language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yR_N8OSQFL8c6rbCO-6tkw.png" /><figcaption>Source: Screenshot from the <a href="https://arxiv.org/pdf/2301.06627.pdf">paper</a></figcaption></figure><p>Formal linguistic competence includes knowledge of the rules and patterns of a provided language with its respective dialect. It can tell which utterances are acceptable or unacceptable based on correct grammar, syntax, coherence, spelling, etc. For example, models with good formal linguistic competence can generate a properly structured sentence using correct tenses and correct plurals of nouns.</p><p>On the other hand, functional competence is the ability to successfully use language to convey ideas, solve problems and interact in reality. This may include formal reasoning, world knowledge, situation modeling, and social skills. Some examples include using language to make a persuasive argument, explaining or understanding irony or sarcasm, engaging in social discourse, automatically generating figures to convey an idea, etc.</p><h4>How do today&#39;s LLMs perform on Formal Linguistic Competence?</h4><p>Today’s LLMs typically perform very well on formal linguistic competence tests. For example, Open AI’s GPT-3, which was trained on 45 terabytes of text, or about 500 billion words, has been shown to have human-level performance on formal linguistic competence tests like <a href="https://arxiv.org/abs/1912.00582v">BLiMP</a> and <a href="https://aclanthology.org/2020.acl-demos.10.pdf">SyntaxGym</a>. They are designed to be highly accurate in recognizing and understanding the syntax and structure of language, as well as being able to interpret and identify the meaning of words and phrases.</p><p>LLMs learn abstractions which are generalized linguistic representations such as part-of-speech categories or grammatical roles. For example, a model might learn the agreement rule that the collocation of “dogs” and “bark” is more common than “dogs” and “barks” (example sentence usage: The dogs bark when they see strangers). To test a model’s knowledge of abstract rules, researchers use semantically nonsensical sentences, like “The colorless green ideas I ate with the chair. . . (<strong>sleep</strong>/sleeps)”. Hence as it even predicts correctly (sleep) got for nonsensical sentences, it is not memorizing the relationships but actually learning those through trained data.</p><p>Despite evidence indicating that LLMs can learn hierarchical structure, abstraction, and other features of human language, they do not display all human-like behavior. Human brain cognitive structure is much more complex than LLMs architecture. For example, BabyBERTa, a model trained on 5 million words of child-directed speech, is trained on a more realistic amount of data than today’s state-of-the-art LLMs. Despite being trained on a much smaller data set, BabyBERTa still achieved some syntactic generalizations comparable to RoBERTa, a high-performing model which was trained on 30 billion words. However, BabyBERTa could not represent some aspects of grammar that human children find intuitive, suggesting that more cognitively-inspired architectures and more realistic learning scenarios are necessary to improve performance on language tasks further.</p><h4>How do today’s LLMs perform on Functional Linguistic Competence?</h4><p>Large language models (LLMs) have a wide range of capabilities, from capturing mathematical and scientific facts to reproducing stereotypes and social biases. LLMs acquire this knowledge from the text corpora they are trained on, and as models become larger, their abilities to learn increasingly fine-grained patterns become more prominent. However, when it comes to non-language-specific abilities, LLMs struggle with generalized reasoning. Although they can succeed on tests common enough, studies that test their reasoning abilities, highlight major limitations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7oxg-D9S_AO0yVzF4WKrAA.png" /><figcaption>A limitation of the GPT-3 Language Model from the <a href="https://arxiv.org/pdf/2301.06627.pdf">paper</a> (a bad response is generated when the user prompt has many constraints)</figcaption></figure><p>We should care whether LLMs can think because language use is impossible without non-linguistic cognitive skills. These skills, such as formal reasoning, world knowledge, situation modeling, and social reasoning, are necessary for real-life conversations and require non-language-specific processing mechanisms. Any deficits in these areas revealed when studying LLMs can provide insight into how these mechanisms work and what skills are necessary for successful language use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mD0FhBtMVIILV_eB88Ntgw.png" /><figcaption>chatGPT failed to confidently substantiate it’s answer with reasoning for a simple math question</figcaption></figure><p><strong>Formal Reasoning:</strong> Language is a cornerstone of complex reasoning and has enabled us to discuss abstract ideas, develop logical syllogisms, and engage in formal debates. Neuroscience and studies of language models have shown that language and formal reasoning are distinct cognitive processes that rely on separate systems in the brain. The multiple-demand network is the brain region associated with logical inference, mathematical reasoning, physical reasoning, and computer code comprehension. Evidence from language models has shown that they cannot effectively engage in tasks that require formal reasoning, such as math problems expressed in words, as they rely on heuristics and fail on more complicated problems. This is consistent with neuroscience’s evidence that language and formal reasoning are distinct cognitive capacities.</p><p><strong>World Knowledge and Commonsense Reasoning:</strong> While language models have acquired a wealth of world knowledge in word co-occurrence patterns, they still suffer from two major shortcomings: brittle and biased. These shortcomings become particularly prominent when it comes to commonsense reasoning tasks, which often require using information that is not explicitly stated in the training data. Despite being able to access some information, LLMs still lag behind human performance in many areas, highlighting the distinction between language and world knowledge.</p><p><strong>Situation Modeling: </strong>Humans can understand language and create a mental model of their environment known as a situation model. This situation model allows us to remember long contexts and integrate linguistic and non-linguistic information. Despite the importance of situation modeling for language use, current language models cannot accurately build situation models or use language in a physical environment the same way humans do. Therefore, for LLMs to accurately represent language, they must be able to track information over long contexts and create situation models.</p><p><strong>Social Reasoning:</strong> Pragmatics is the process of inferring intended meaning beyond the literal content, which is likely powered by social reasoning and the theory of mind network in the human brain. Recent versions of OpenAI’s GPT-3 models show improved performance on some pragmatic tasks but still struggle with sarcasm and theory of mind tasks. LLMs lack communicative intent and are easily distracted, meaning their outputs can be meaningless and misspecified despite high linguistic structure.</p><p>While these models are quite good at certain tasks, such as general pattern completion, style transfer, and memory, they still need to gain the functional language competence of humans. This raises the question of whether a single system and objective function can be used to model the diverse capabilities necessary for understanding language. Modularity allows the models to mirror the functional organization of the human brain, while curated data and a variety of objective functions enable the models to develop functional linguistic competence. Separate benchmarks are needed to evaluate both formal and functional linguistic competence and to ensure that the models are not using flawed heuristics to achieve their results. The field can develop models that excel at formal and functional linguistic competence by utilizing these ingredients.</p><h4><strong>Conclusion:</strong></h4><p>LLMs have been criticized for needing more certain world knowledge, reasoning abilities, and understanding of what an utterance truly means. However, this should not be taken to suggest that they are poor language models. The model that excels at real-life language use would need to be Artificial General Intelligence (AGI). Future advances in AGI will depend on three elements that can help build models that talk and think like humans: modularity, curated data combined with diverse objective functions, and separate benchmarks for formal and functional competence. Modularity can be implemented either by building it into the model architecture (Architectural Modularity) or by allowing it to develop naturally through the training process (Emergent Modularity). Curated data and diverse objective functions are needed for the models to learn to interpret and use language in a way that is similar to humans. Lastly, separate benchmarks for formal and functional competence can be used to accurately measure progress in the field and help identify areas of improvement.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0909a8e677a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lmao-learning-group/are-large-language-models-llms-thinking-machines-post-chatgpt-buzz-b0909a8e677a">Are Large Language Models (LLMs) Thinking Machines? — Post chatGPT buzz!</a> was originally published in <a href="https://medium.com/lmao-learning-group">LMAO Learning Group</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implicit vs Explicit Knowledge models]]></title>
            <link>https://medium.com/lmao-learning-group/implicit-vs-explicit-knowledge-models-8c4ebec2d751?source=rss----9cc96588f657---4</link>
            <guid isPermaLink="false">https://medium.com/p/8c4ebec2d751</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[question-answering]]></category>
            <dc:creator><![CDATA[Sangeetha Venkatesan]]></dc:creator>
            <pubDate>Wed, 25 Jan 2023 05:42:16 GMT</pubDate>
            <atom:updated>2023-01-26T01:35:17.893Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Moving to the scope of Knowledge augmentation from data augmentation methods</blockquote><p>The technical term for this: <strong>Retrieval Augmented Language Models</strong></p><p>Apart from the problem of fitting a model with the data, there is a problem with fitting the model with the <strong>use case</strong>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4fS6nWbztoaPgNr8" /><figcaption>Photo by <a href="https://unsplash.com/ko/@maxvdo?utm_source=medium&amp;utm_medium=referral">Max van den Oetelaar</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There is an area of Question Answering problem called “<strong><em>Long form question answering</em></strong>” that involves retrieval as well as generation. Though there might be some adversaries on the knowledge condensed on the text generation part, there is a bit of hesitance in productionalizing these models without having a proof of concept of controlled monitoring and evaluation. Even though there are paradigms of “instruct and command models” coming up, “<strong>dialogue-interaction</strong>” is the heart of NLP, having a companion of interaction within the client persona.</p><p>There is always a business aspect that needs to be thought of far from the <strong><em>one-yard line</em></strong> and be comfortable with resurfacing the whole pipeline as and when needed and proving that our answers to certain questions might be wrong!</p><p>In one of the podcasts, Noam Shazeer — founder of character.ai mentioned the flexibility with startups to “<strong>Get something out there, let people use it however they want</strong>”, there is always a character of interaction and feedback that people are expecting with NLU.</p><p>The expertise of domain knowledge is getting dense in each sector and companies want the model to be as close to the domain knowledge in particular to the client database knowledge as possible.</p><p>Consider the utterance “Wire transfer with our organization is easy and the fastest way” generated by a text generation model fine-tuned on a client’s FAQ, there is a <em>ground truth confidence</em> that needs to be established, as the “<strong>implicit knowledge</strong>” is wire transfer being expensive and cumbersome.</p><p>The ground truth of text generation is different with respect to different clients and their emotional quotient to content writing. There are different metrics to evaluate both the retrieval( Precision and Recall) and generation quality(<em>ROUGE </em>score — which is the recall variant of the <em>BLEU</em> score(Bilingual Evaluation Understanding). There is always a better human reference text needed to evaluate the models from time to time. These metrics also could not be a perfect fit to compare the model-generated answers with human-reference answers.</p><p>There is always a variance of “<strong>ambiguity in acceptability</strong>” even within the organization or with the stakeholders. There is always a penalty (because of random n-gram overlap) that comes along with it.</p><p>Let&#39;s look at some of the <strong>external knowledge composability</strong> with Large language models: Two of the most important components in conversational AI are <em>handling conversation sessions (long context memory) </em>and history coupled with sourcing <em>external knowledge(data store) </em>without having it be learned as implicit knowledge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4QvicCzjFIskG9cptpzwsw.png" /><figcaption>Chain of conversation thoughts</figcaption></figure><p>I really like the idea of coming up with a <strong>reasoning chain</strong> as a good logging system for NLP applications in addition to software engineering loggers.</p><p>This also has a scope of maintaining a single conversational AI engine able to serve multiple clients&#39; data (without cross-pollination) that plugs in action from different tools depending on the context of the customer. Though this “<strong><em>unified conversational AI</em></strong>” approach takes a long way because we are striking a balance between generalization vs specialization for a client.</p><p>Very nice way of plug and action in the analogy of brain and models — In the scope of <strong><em>conversational AI</em></strong>, it will be reasoning, reading and comprehension, Understanding, language, memory, and learning! (keeping it to text data for now)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5gLrMs5G2hjTyk-X0IaqrA.png" /><figcaption>Source: LifeArchitect.ai/brain</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pYibJ-YeAlOTKYX-qIbGOA.png" /><figcaption>chain of conversation thoughts that needs external data store knowledge</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePv15gZ_QAuLMXVMykPdwQ.png" /><figcaption>Preserving the context of the topic of the previous question — Source: <a href="https://huggingface.co/spaces/JavaFXpert/Chat-GPT-LangChain">https://huggingface.co/spaces/JavaFXpert/Chat-GPT-LangChain</a></figcaption></figure><p>Exploration of different <strong>conversational</strong> <strong>dialogue</strong> models:</p><p>An added component to make the interaction less biased is to have RLHF(Reinforcement learning with Human Feedback), with good-quality hate speech detection! Another important aspect is “<strong><em>Keeping the conversation thread</em></strong>” in memory and to also overcome the limitation of prompts and context limited in tokens to process the entire array of conversations through LLM.</p><ol><li>Cohere (Command Models, generate models)</li><li>DeepMind (Sparrow, chinchilla)</li><li>Google (LaMDA)</li><li>Meta (BlenderBot 3)</li><li>OpenAI (InstructGPT, GPT-3, chatGPT)</li></ol><p>Some of them at different levels are augmented with Instruction fine-tuning Safety enforcement and supervised fine-tuning.</p><p><strong>Chain of thought prompting</strong>: It&#39;s the annotation on how <em>reasoning</em> is cascaded by humans modeled via a chain of thought prompting. It&#39;s a good choice to make the conversation with little extra <em>acknowledgment and consideration </em>from the bots when the customer panics with “my credit card is lost” than a plain FAQ response!</p><p>Right now, the source of <strong><em>computational knowledge</em></strong> of LLM that’s prevalent is mostly around fine-tuning the models with domain knowledge datasets. This is almost on <strong>client-specific conversational-AI service providing</strong> works pretty well since the extra knowledge we have augmented with is the one we are conditioning the text generation on!</p><p>There is a trade-off between doing the natural language search (embeddings search) with LLM (fine-tuned) and generating the answer conditioned on the retrieved contexts vs translating the query to be conducive to the third-party knowledge tool like WolframAlpha and getting the response back and using Text generation to make it more conversational. It totally depends on the use case. Consider a use case where we want the model to give a factual answer on what SSN is + generates answers on card queries based on the fine-tuned LLM. Toggle between LLM and Factual on certain conditions in conversational AI business is worth researching!</p><p>There is also a paradigm called <strong>meta-learning</strong> (0, 1, or few shot) — that revolves around performing zero-shot learning (instruction + input) to generate the answer for the particular task we would like the model to perform! Scaling to be restrictive and fenced in the business domain is tedious.</p><p>Abstraction is a much-needed component when working with LLM which drills down to composability in applications. Two new abstractions I got introduced to this week are <a href="https://github.com/hwchase17/langchain"><strong>Langchain</strong></a> and <strong>co.chat</strong> from <a href="https://cohere.ai/">Cohere</a>. We are talking about three aspects here, <strong><em>implicit knowledge</em></strong><em> or memory</em>, <em>explicit</em> or <strong><em>factual knowledge</em></strong> of the current world, and <strong><em>contextual memory</em></strong> which is the powerhouse of the entire conversation within a session!</p><ol><li><strong><em>Langchain</em></strong></li><li><strong><em>co.chat</em></strong></li><li><strong><em>Long context memory</em></strong></li></ol><p><strong><em>A quick recap on dialogue systems</em></strong>: Most applications of chatbots drills down to data-driven open-domain question answering. Usually, there is a categorization of chatbots into <strong>task-oriented</strong> and <strong>non-task-oriented</strong> use cases. But with the introduction of a third-party engine + NLU engine, categorization will be more towards which needs a context switch and which doesn’t need. Systems were mostly built on a scalable backbone of <strong>intent detection and slot filling</strong> as models were expected to perform better with more data (might not be true*). It suffers from a major loophole of <strong>credit assignment problem</strong> where each of the user feedback is hard to be propagated to the fine-tuned model. There is a global optimization needed for connecting the changed components.</p><p>In terms of response generation, <strong>perplexity</strong> is an important factor to consider to have humans understand it in a simplified way! There is also a possibility that the incoming customer conversations don’t share distributions of what training data or chatbot is trained to support. Having endpoints to capture these distributions in conversational AI is very important, otherwise, business needs and the product strategy stay apart without realizing it!</p><blockquote>User query —&gt; NLU → Maintain the context state in memory → Surface actions prompting the needed knowledge ( implicit or explicit) based on the additional meta data inferred -&gt; Generation -&gt; User query with collected feedback -&gt; cycle continues.</blockquote><p>There are <strong>generative-based dialogue methods</strong> and also very neat aspects towards <strong>retrieval augmented methods</strong>. Hybrid methods are more important in the business aspect of conversational AI since both <strong>precision</strong> and <strong>discourse</strong> is effective for the customers.</p><p>🚀 <strong>co.chat</strong>: An <strong>experimental release</strong> by Cohere to the discord community. The main focus is on making the calls <strong>stateful</strong> so the conversation context goes coherent with generation. Apart from thinking about the knowledge of chatbot, the stateful and continuity are important factors. It’s a kind of neural generative model approach conditioning the response on stateful conversations.</p><p><strong>Dialog management</strong> is a crucial aspect, with LLM’s keeping it contextual is added key idea for better and relevant text generation. We should also experiment with the usability of <strong>chat logs</strong> and having it influence much might also lead to random generation. It provides the ability to keep conversations active and engaging. In the question answering task, it is kind of tracking the context-key relevance pair.</p><p>The current endpoint is set to the baseline generative model, so the test is mostly on how it handles <strong>conversation continuity</strong> and not the generations.</p><p>The initial project of cohere was around <a href="https://www.youtube.com/watch?v=2mP1EOsLls8&amp;ab_channel=MadsJenkins"><strong>conversant-lib</strong></a> that creates personas with prompt engineering with cohere generation models maintaining the sessions and contexts of the questions. It&#39;s fed with a round of conversations to create the persona of the chatbot. I am more interested in <strong>contextualizing</strong> the question and having a long-term memory of sessions and conversations. It&#39;s also worth experimenting with how much chat history(how many conversation rounds) is needed to serve customers efficiently. It&#39;s an <strong><em>open-ended</em></strong> conversant library that needs some fine-tuning with prompts to restrict to certain specific use cases.</p><p>The advantage of having a stateful conversation is to break the response selection only based on the single turn in the conversation. In the preliminary release, it supports multi-turn response matching combining the previous utterances and current utterances as input in order to ensure <strong>conversation consistency</strong>.</p><p>First, look! 🚀</p><ol><li>I liked the fact that a big chunk of the dialog track, the history of each user&#39;s conversations is associated with some kind of store that’s abstracted. But I do love to see how context is encoded and maintained in order to plugin and remove not relevant utterances in the context.</li><li>This would also refrain from worrying about maintaining the entire dialogue in some prompt in order to condition the next action.</li><li>Collating all conversations under a session ID and inferring the continuity of responses is easy to analyze for getting an easy picture of conversation per user with the bot.</li><li>Keeping it simple is key!</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v14JOZIlydyBUi5K88xw3A.png" /><figcaption>Response from co.chat</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*N1Q49CXP5l3aHiEIkPI9FQ.png" /><figcaption>co.chat in streamlit</figcaption></figure><p><strong>Scope</strong>: ✍🏻</p><ol><li><strong>Persona</strong>: I really like the way there is a scope of starter conversation ID that might set the ground for the conversations based on the user profile. This is highly valuable in business settings where the bot can chat about business credit cards and customer credit cards based on a different persona.</li><li>Signal to <strong>context switch</strong> to external vs internal knowledge. This is very helpful for some good answers that the model could grab based on the level of explanation the user needs.</li><li>Prompting and generating in the domain by plugging in the context memory with domain knowledge data.</li></ol><p>I am looking forward to exploring and combining the above different aspects of conversational AI to experiment as <strong>singular</strong> components.</p><p>Until then,</p><p>Keep learning — Sangeetha Venkatesan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c4ebec2d751" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lmao-learning-group/implicit-vs-explicit-knowledge-models-8c4ebec2d751">Implicit vs Explicit Knowledge models</a> was originally published in <a href="https://medium.com/lmao-learning-group">LMAO Learning Group</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Question Answering — is it different in conversations?]]></title>
            <link>https://medium.com/lmao-learning-group/question-answering-is-it-different-in-conversations-80f76715c01?source=rss----9cc96588f657---4</link>
            <guid isPermaLink="false">https://medium.com/p/80f76715c01</guid>
            <category><![CDATA[nlu]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[question-answering]]></category>
            <dc:creator><![CDATA[Sangeetha Venkatesan]]></dc:creator>
            <pubDate>Tue, 10 Jan 2023 02:48:15 GMT</pubDate>
            <atom:updated>2023-01-10T02:48:15.799Z</atom:updated>
            <content:encoded><![CDATA[<h3>Question Answering — is it different in conversations?</h3><blockquote><em>There is more to consider apart from the question asked — intelligence is to perform those possibilities in finite space and finite time.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*QeDNaVEIDol9OIxfSpgasw.png" /><figcaption>Source: Internet</figcaption></figure><p>We are in the phase of conversational AI, where we augment the training phrases using Large Language models, and we finetune the synthetic samples using generative or classification models.</p><p>There is also a case of remodeling the problem by fitting it into the existing set of a framework of tasks in NLP. Most closely, would be text classification, question answering, and intent detection.</p><p><strong>Alignment</strong> — Right now we perform question-question alignment, there could be a case of question-to-action alignment that could pave the way to adding more information in the common-knowledge repository to resolve some cases of missing text phenomenon — I have no evidence of it, but I could think of it as probably a good scope.</p><p>Hence in Conversational AI, questions to the FAQ chatbot are different from handling questions in context. We don&#39;t want to treat each utterance as a separate trigger for FAQ every time. Consider the below dialog</p><pre>User: I would like to apply for a loan?<br>Bot: Sure, here is the answer for an FAQ that&#39;s triggered (LoanApplication)<br>     intent triggered.<br>User: Sounds good, How about for a car?<br>Bot: No, I can&#39;t understand it.</pre><p>Let’s explore the purpose of questions in context rewriting, the models, and the datasets around it. The generation models would be of great use to consider the context into account since the prompting style is more on preserving the hierarchy of events.</p><p>Questions could be asked in single, multi-hop, or multi-turn, or they could involve complex reasoning combining compositional semantics.</p><p>I came across a representation called a <strong>logical form of a sentence</strong> — an intermediate representation between the surface form of a sentence and the intended meaning of a sentence.</p><p>Some of the <em>generic approaches</em> that are <em>well known</em> in the landscape of conversational AI in the manipulation of the questions asked to the bot. The goal of uncovering the “<strong>hidden slate</strong>” information or “<strong>common knowledge</strong>” is much more than simple question reforming.</p><h4>📝 Query Rewriting repurposed from a recommendation or semantic search:</h4><p>Rewrites query by searching through a database of query logs to find semantically similar queries as recommendations of making users choose within the boundary of similar semantic scope. The query-Question page is ranked based on the click rate of customers determining the confidence.</p><p>The gap in good quality data criteria could always have a space for reinforcement learning with human feedback.</p><h4>📝 Paraphrase Generation:</h4><p>Either fine-tuned models based on the domain-specific paraphrase question pairs or models like T5 are used. Very prevalent data augmentation technique used for NLU.</p><h4>📝 Text normalization:</h4><p>This is used for converting non-canonical representation to standard writing which is sometimes reframed as a text simplification process. I am thinking if I can capture helpfulness, clarity, and utility for conversational AI response.</p><h4>📝 Back Translation:</h4><p>There are a few rounds of back translation that might change the verbatim of the sentence and we are training the model with utterances that might not be asked by US-based customers at all. I have seen good performances on Russian, German, and French round-trip translations.</p><p>Let’s not forget the dude which models have to understand — <strong>Adversarial examples</strong>. This is heavily needed for the reliability of the product and the model&#39;s robustness.</p><h4>📝 Repurposing the existing customer conversations as training data:</h4><p>There are also cases where we repurpose the chat conversations that go into the unrecognized or fallback bucket which can be recycled via semantic closeness techniques to add training data to the model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cuxrIQdwD1X9fGhX" /><figcaption>Photo by <a href="https://unsplash.com/@sebbill?utm_source=medium&amp;utm_medium=referral">Sebastian Bill</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong><em>🦹‍♂️ Linguistic Phenomenon tied around it</em></strong>:</p><p><strong>Prof Dr. Walid Saba</strong> mentions — The objective of understanding we are looking for is not in the data. People are not explicit in their statements or uttering to a chatbot. The human-Human conversation revolves around the common ground agreement that we have in order to continue the conversation. We do question rewriting in our mind in some way to remind the other user to come into the space of agreement.</p><ol><li><strong>Coreference</strong>: This is the phenomenon where we have to identify and link all the mentions of a particular entity in the context.</li></ol><blockquote>The balance of my savings account is 300 dollars and my checking account is 100 dollars, could you help transfer from the former? Here the former refers to a savings account.</blockquote><p>2. <strong>Ellipsis resolution: </strong>The customer tends to keep the chat and conversation simple. Consider a case, If a debit card is lost, I don&#39;t want to explicitly give all the information at a stretch. Ellipsis is to decipher those missing words or phrases.</p><p>Consider an example of ellipsis resolution in the context of a banking domain conversational AI:</p><blockquote>I’d would like to check my balance….what’s my account balance?</blockquote><p><strong>Expected ellipsis resolution to happen is</strong> — Which account would you like to check the balance for? We have several accounts linked to your name, including a checking account and a savings account.</p><p>🪄 Its a prompt for asking the clarification of resolving to right intended meaning.</p><p>3. <strong>Nominal compounds</strong>: The phenomenon where an entity can be addressed by more than one noun. It comprises two or more nouns that function as a single unit.</p><blockquote>I’d like to open a new checking account</blockquote><p>Expected resolution: Certainly, we offer a range of checking account options for our customers. Would you like to open a standard checking account, a high-yield checking account, or a student checking account?</p><p>There could be several nominal compounds in the banking domain relating to accounts, loans, financial products, and services.</p><p>Both these kinds revolve around reading comprehension, where in order to resolve the questions asked, we need to find the appropriate text span in the previous discourse. The above two problems are generally modeled as a question-answering task.</p><p>It comes down the lane to differentiating language that’s actually learned vs learning the language from data.</p><p>There are some interpretations of representing knowledge base in knowledge graphs for one hop or few hops of questions that could be retrieved by passing the path of Knowledge graphs.</p><p><strong>Recent papers on this ordered from latest</strong>:</p><ol><li><em>Improving Complex knowledge Base Question Answering via Question-to-Action and Question-to-Question alignment.</em></li></ol><p>The alignment that’s discussed above in discourse may not be quite obvious to perform question answering directly comparing the semantic similarity with the knowledge base. There might need extra reasoning to answer some complex questions. The framework the authors developed came up with the three-step procedure of question rewriting, question-to-action, and question-question alignment. Most explicit implementations I have seen revolves around question-question alignment with large language models using embeddings.</p><p>Rather than using the similar questions in our curated dataset as similarity context, they used a <strong>reward function</strong> to select the correct action sequence.</p><p>2. <em>Asking better questions — A large-scale multi-domain dataset for rewriting ill-formed questions or contextless vague questions which in isolation leads to a fallback</em>.</p><p>How can we say a question is well-formed and sufficient to understand the intent of the customer? Apart from generally known practices of augmenting the question as a synthetic dataset or paraphrasing, rewriting the question is new for me. Sometimes we ought to get “word salad” from the list of conversations the customer has with the bot. <strong>Crucial step</strong>: rewriting without changing the semantics.</p><p>This is more of an issue in speech recognition engines that needs a transcription service and then move to the text understanding model. We are having a supervised well formed dataset to be able to generalize on not-so-structured questions.</p><p><strong>🔖 Datasets</strong>:</p><ol><li><strong>CANARD</strong> — A dataset for question-in-context rewriting. That couples dialog context together with a context-independent rewriting of the question. A dataset to evaluate question rewriting models.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuLACHDi7nl8JLyLYYvvaA.png" /><figcaption>Dataset image</figcaption></figure><p>2. <strong>QuAC</strong> — A conversational reading comprehension dataset where the answers are selected span from a given section of a passage. If the question could not be answered from the passage, the answer expected is “Can’t answer based on the knowledge base”</p><p>3. <strong>MQR</strong> (Multi-domain Question rewriting dataset)</p><p>This is based on human-contributed stack exchange question edit histories that have columns of ill-formed questions to well-formed questions. This would help to train question rewriting models with better semantic preservation.</p><p>Well-formedness could come at the cost of semantic drift, where only based on semantic similarity we can’t determine the coherence of intent or question vs question-rewritten. Generic approaches for these include paraphrasing, Grammatical error correction, back translation etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*5-NZVeKQsPhACJjFVTkJ2g.png" /><figcaption>Examples from the MQR Dataset</figcaption></figure><p>Some <strong><em>generic constraints </em></strong>on question-rewriting don&#39;t solve NLU but might help in improving text classification.</p><ol><li>The questions should be grammatically correct without semantic drift.</li><li>The questions should not contain spelling errors or any kind of random words in out-of-domain</li><li>The questions should be <strong>explicit</strong>. Which is reforming a search query or a command or an instruction to a question. (Questions that start with “how”, “why”, “when”, ”what”, “which”, “who”, “whose”, “do”, “where”, “does”, “is”, “are”, “must”, “may”, “need”, “did”, “was”, “were”, “can”, “has”, “have”.</li></ol><p><strong>🚀 My perspective on understanding the Natural Language Framework</strong>:</p><p>Conversational AI is not to be satisfied as a stand-alone task, there are multiple pipelines to be taken into consideration with less latency. Different steps of context-sensitive and context-insensitive pipelines can be combined.</p><p>There are different ways to put this learning framework, one in the form of Knowledge learning and the other in the form of knowledge acquisition. The latter part instills the subconscious mind to respond to questions or actions. The former part is still in incremental possession of mapping the questions to responses or actions.</p><p>Could there be a framework where the learnability of chatbots is generalized and just fine-tuned</p><p><strong>Learning in conversational AI</strong>:</p><ol><li>I can learn from <strong>curated datasets</strong> of the knowledge base of the chatbot, which in this case ground truth might be wrong. I can put a training phrase in either of the buckets of classes I think that another person thinks may fall in another class.</li><li>Mapping the existing <strong>collected conversations</strong> to new conversations coming in the chatbot.</li><li>Learning from its own <strong>context of the history of messages</strong> to take action on subsequent messages.</li><li>Learning from <strong>human feedback</strong>, where the feedback from humans changes the learnability or dataset of the model.</li><li>Learning from <strong>deduction</strong>, deducing them using proven techniques and also manipulated by existing instructions.</li><li>Learning from a<strong> manual of factual knowledge base</strong> that’s factually on mutual agreement with different ethics and principles.</li></ol><p>Is there a learning framework that satisfies all these different perspectives? How can a margin of error be approximated for all these methods? Not every knowledge is associated with confidence. We are now in a framework of understanding systems where each evaluation is predicted based on the confidence threshold.</p><p>There is a subtle AI winter in the landscape of conversational AI bundling the process of building chatbots by fitting into one specific framework of the deep learning tasks or language tasks like (classification, semantic search, etc), and building an expectation of true language understanding from the stakeholders.</p><p>I really admire the thoughts of Professor Dr.Walid Saba on companies adopting rich multidisciplinary aspects to building a conversational AI or an intelligent system. Another perspective is How simple an algorithm of K-means would help to cluster the data.</p><p>To follow, I will be going through each section further down in this task. Keep learning!</p><p><strong>🧠 Models</strong>:</p><ol><li><strong>Sequence to Sequence Models Fine-tuning</strong></li></ol><p>2. <strong>Text generation Enterprise Models: (OpenAI, Cohere)</strong></p><p><strong>📝 Benchmarks</strong></p><ol><li>BLUE scores of test data and validation data.</li></ol><p><strong>Plausible misleads on question-writing</strong>:</p><ol><li>It might introduce new information that may not be factually based on the knowledge base.</li><li>There is also an issue of “<strong>prompt injection</strong>”, where the change shouldn’t produce unexpected results or leaked information from closed-form content of the banking domain for example.</li><li>There should be a measure of Cohens-kappa that validates a ground truth of conversational AI dataset across multiple domain experts.</li></ol><p>One more part to follow on the implementation of all the above concepts using Large Language Models.</p><p>Language actors take the stage with LLM creating a pipeline for us to solve NLU tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iOqWJCi-4pALAgYO" /><figcaption>Photo by <a href="https://unsplash.com/@thetonik_co?utm_source=medium&amp;utm_medium=referral">Tonik</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80f76715c01" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lmao-learning-group/question-answering-is-it-different-in-conversations-80f76715c01">Question Answering — is it different in conversations?</a> was originally published in <a href="https://medium.com/lmao-learning-group">LMAO Learning Group</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Semantic Search — (Part 0: Introduction and types of semantic search applications)]]></title>
            <link>https://medium.com/lmao-learning-group/understanding-semantic-search-part-0-introduction-and-types-of-semantic-search-applications-6c56b70a4358?source=rss----9cc96588f657---4</link>
            <guid isPermaLink="false">https://medium.com/p/6c56b70a4358</guid>
            <category><![CDATA[search-engine-optimizati]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[question-answering]]></category>
            <category><![CDATA[search]]></category>
            <category><![CDATA[semantic-search]]></category>
            <dc:creator><![CDATA[Kaushik Shakkari]]></dc:creator>
            <pubDate>Fri, 06 Jan 2023 08:32:36 GMT</pubDate>
            <atom:updated>2023-03-16T06:07:16.007Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding Semantic Search — (Part 0: Introduction to semantic search and different types of semantic search applications)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kh85Ej-eTQxaG5MvlNcEhg.jpeg" /><figcaption>Photo by author: A beautiful sunrise 🌞 shot in Rocky Mountain National Park, Colorado (September 2021)</figcaption></figure><p>Semantic search has been increasingly popular in 2022 due to its ability to help businesses quickly and accurately find the information they need from large amounts of data. It understands the intent of a query and returns results that are most relevant to the user.</p><p>Semantic search applications come in different forms. For example,</p><ol><li>Google Search is a dynamic, extractive, and open-domain search.</li><li>ChatGPT is a dynamic, generative, and open-domain search.</li><li><a href="https://medium.com/@Legal.io/meet-lara-your-legal-assistant-a579dac68cf">Lara Bot</a> is a dynamic, extractive, and close-domain (legal) search.</li><li><a href="https://www.sae.org/onque-digital-standards">SAE’s OnQueue</a>, powered by <a href="https://www.cognistx.com/square">SQUARE</a>, is a static, extractive, and close-domain (aerospace) search.</li></ol><h4>Dynamic vs. Information Extraction (static) Question Answering:</h4><p>Dynamic search is similar to google search, where people can ask free-form natural language questions in different ways to find relevant information across documents and web pages. Dynamic search applications enable businesses to understand customer intent better and target their services. They can also help companies to better identify trends and patterns in customer behavior and use those insights to inform their decision-making. This type of search application is more intuitive and can offer a more natural user experience.</p><blockquote>Users can ask — [When is USA President traveling to Kyiv?] Or [On what date Biden is going to Ukraine’s capital] — both questions mean the same and need to predict the relevant and exact answer (date).</blockquote><p>On the other hand, Information Extraction or static search is a type of semantic search where specific information from large amounts of text is extracted. Personal information like name, age, country, email, passport number, etc., can be extracted in domains like security and compliance. Information like licensee name, licensor name, expiry date, and governing state are extracted in contracts by legal companies.</p><blockquote>Unlike Dynamic search, the entities to be extracted are pre-defined and provided earlier to static search.</blockquote><h4>Extractive vs. Generative Question Answering:</h4><p>Extractive Question Answering (EQA) is a type of QA that involves finding direct answers to questions within the text of a document or dataset. The system finds the answers by scanning through the text, identifying relevant facts, and extracting them in response to the query. In short, EQA models can highlight results in relevant documents or web pages.</p><p>Generative Question Answering (GQA) is a type of QA that generates answers to questions based on understanding the question and its knowledge from a large corpus of documents or web pages. Unlike EQA, the generative model generates new answers for the same question every time they are executed.</p><blockquote>OpenAI’s Chatgpt3 uses generative question-answering models for answering questions over the internet.</blockquote><h4>Open Domain vs. Close Domain Question Answering:</h4><p>Open Domain Question Answering is a system designed to answer a wide range of questions, regardless of the topic. It is designed to find answers from many resources such as text documents, webpages, databases, etc. It is also not limited to a particular domain or predetermined topics.</p><p>On the other hand, Close Domain Question Answering is a system designed to answer questions related to a specific domain or topic. It is designed to find answers from limited resources, such as a particular database or domain-specific documents.</p><p>Often a lot of real-world semantic applications are Close Domain Question Answering. I have written articles on semantic search applications for aerospace, legal, and compliance domains.</p><ul><li><a href="https://medium.com/cognistxs-square-dip-blog/open-domain-question-answering-series-part-7-an-intelligent-and-scalable-search-tool-for-b7017c406a6e">Open Domain Question Answering Series — (Part 7: An Intelligent and Scalable Search Tool For…</a></li><li><a href="https://medium.com/cognistxs-square-dip-blog/intelligent-search-tool-for-legal-and-compliance-industry-ediscovery-and-due-diligence-8b9e2926cd9e">Intelligent Search Tool for Legal and Compliance Industry — eDiscovery and Due Diligence</a></li></ul><p>There are pre-trained models which can be used for closed domains. However, Close Domain Question Answering often requires <a href="https://huggingface.co/docs/transformers/training">more training or fine-tuning</a> because the answers are more specific and usually related to a particular topic or field. At the same time, Open Domain Question Answering requires less training because it can use pre-trained large language models to give a more general answer to any question.</p><blockquote>The acronym <a href="https://www.abbreviations.com/serp.php?st=NFF&amp;p=99999">NFF has more than 50 meanings</a> across different domains. However, in aerospace, NFF is considered as No Fault Found.</blockquote><h4>Conclusion:</h4><p>This article introduced semantic search and how it can come in different forms. We can also use a chatbot interface further to increase user engagement for all semantic search applications. In the next series of articles, I will introduce some essential topics which can help you build semantic search applications.</p><p>Stay tuned for more articles in the Understanding Semantic Search Series! (Learn more about other articles in the series <a href="https://medium.com/@kaushikshakkari/list/9df1566193b0">here</a>)</p><p><strong>Add me on </strong><a href="https://www.linkedin.com/in/kaushik-shakkari/"><strong>LinkedIn</strong></a><strong>. Thank you!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c56b70a4358" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lmao-learning-group/understanding-semantic-search-part-0-introduction-and-types-of-semantic-search-applications-6c56b70a4358">Understanding Semantic Search — (Part 0: Introduction and types of semantic search applications)</a> was originally published in <a href="https://medium.com/lmao-learning-group">LMAO Learning Group</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>