A High-Level Overview Of Large Language Model Concepts, Use Cases, And Tools — Smashing Magazine

Created on November 12, 2023 at 10:48 am

A High-Level Overview Of Large Language Model Concepts, Use Cases, And Tools

21 min TIME read

Share on Twitter, LinkedIn

While AI ORG remains a collective point of interest — or doom, depending on your outlook — it also remains a bit of a black box. What exactly is inside an AI application that makes it seem as though it can hold a conversation? Discuss the concept of large language models (LLMs) and how they are implemented with a set of data to develop an application. Joas GPE compares a collection of no-code and low-code apps designed to help you get a feel for not only how the concept works but also to get a sense of what types of models are available to train AI on different skill sets. While AI ORG remains a collective point of interest — or doom, depending on your outlook — it also remains a bit of a black box. What exactly is inside an AI application that makes it seem as though it can hold a conversation? Discuss the concept of large language models (LLMs) and how they are implemented with a set of data to develop an application. Joas GPE compares a collection of no-code and low-code apps designed to help you get a feel for not only how the concept works but also to get a sense of what types of models are available to train AI on different skill sets.

Even though a simple online search turns up countless tutorials on using Artificial Intelligence ORG (AI) for everything from generative art to making technical documentation easier to use, there’s still plenty of mystery around it. What goes inside an AI-powered tool like ChatGPT? How does Notion ORG ’s AI feature know how to summarize an article for me on the fly? Or how are a bunch of sites suddenly popping up that can aggregate news and auto-publish a slew of “new” articles from it?

It all can seem like a black box of mysterious, arcane technology that requires an advanced computer science degree to understand. What I want to show you, though, is how we can peek inside that box and see how everything is wired up.

Specifically, this article is about large language models (LLMs) and how they “imbue” AI-powered tools with intelligence for answering queries in diverse contexts. I have previously written tutorials on how to use an LLM to transcribe and evaluate the expressed sentiment of audio files. But I want to take a step back and look at another way around it that better demonstrates — and visualizes — how data flows through an AI-powered tool.

We will discuss LLM use cases, look at several new tools that abstract the process of modeling AI with LLM with visual workflows, and get our hands on one CARDINAL of them to see how it all works.

Large Language Models Overview

Forgoing technical terms, LLMs are vast sets of text data. When we integrate an LLM into an AI system, we enable the system to leverage the language knowledge and capabilities developed by the LLM ORG through its own training. You might think of it as dumping a lifetime of knowledge into an empty brain, assigning that brain to a job, and putting it to work.

Knowledge WORK_OF_ART ” is a convoluted term as it can be subjective and qualitative. We sometimes describe people as “book smart” or “street smart,” and they are both types of knowledge that are useful in different contexts. This is what artificial “intelligence” is created upon. AI is fed ORG with data, and that is what it uses to frame its understanding of the world, whether it is text data for “speaking” back to us or visual data for generating “art” on demand.

Use Cases

As you may imagine (or have already experienced), the use cases of LLMs in AI are many and along a wide spectrum. And we’re only in the early days DATE of figuring out what to make with LLMs and how to use them in our work. A few of the most common use cases include the following.

Again, these are still the early days DATE of LLM. We’re already beginning to see language models integrated into our lives, whether it’s in our writing, email, or customer service, among many other services that seem to pop up every week DATE . This is an evolving space.

Types Of Models

There are all kinds of AI ORG models tailored for different applications. You can scroll through Sapling GPE ’s large list of the most prominent commercial and open-source LLMs to get an idea of all the diverse models that are available and what they are used for. Each model is the context in which AI views the world.

Let’s look at some real-world examples of how LLMs are used for different use cases.

Natural Conversation

Chatbots need to master the art of conversation. Models like Anthropic PERSON ’s Claude PERSON are trained on massive collections of conversational data to chat naturally on any topic. As a developer, you can tap into Claude PERSON ’s conversational skills through an API to create interactive assistants.


Developers can leverage powerful pre-trained models like Falcon ORG for sentiment analysis. By fine-tuning Falcon ORG on datasets with emotional labels, it can learn to accurately detect the sentiment in any text provided.


Meta AI ORG released SeamlessM4 CARDINAL T, an LLM ORG trained on huge translated speech and text datasets. This multilingual model is groundbreaking because it translates speech from one CARDINAL language into another without an intermediary step between input and output. In other words, SeamlessM4 CARDINAL T enables real-time voice conversations across languages.

Content Moderation

As a developer, you can integrate powerful moderation capabilities using OpenAI’s API, which includes a LLM WORK_OF_ART trained thoroughly on flagging toxic content for the purpose of community moderation.

Spam Filtering

Some LLMs are used to develop AI programs capable of text classification tasks, such as spotting spam emails. As an email user, the simple act of flagging certain messages as spam further informs AI about what constitutes an unwanted email. After seeing plenty of examples, AI ORG is capable of establishing patterns that allow it to block spam before it hits the inbox.

Not All Language Models Are Large

While we’re on the topic, it’s worth mentioning that not all language models are “large.” There are plenty of models with smaller sets of data that may not go as deep as ChatGPT 4 CARDINAL or 5 CARDINAL but are well-suited for personal or niche applications.

For example, check out the chat feature that Luke Wrobleski PERSON added to his site. He’s using a smaller language model, so the app at least knows how to form sentences, but is primarily trained on Luke PERSON ’s archive of blog posts. Typing a prompt into the chat returns responses that read very much like Luke PERSON ’s writings. Better yet, Luke PERSON ’s virtual persona will admit when a topic is outside of the scope of its knowledge. An LLM would provide the assistant with too much general information and would likely try to answer any question, regardless of scope. Members from the University of Edinburgh ORG and the Allen Institute ORG for AI published a paper in January 2023 DATE ( PDF ORG ) that advocates the use of specialized language models for the purpose of more narrowly targeted tasks.

So far, we’ve covered what an LLM is, common examples of how it can be used, and how different models influence the AI ORG tools that integrate them. Let’s discuss that last bit about integration.

Many technologies require a steep learning curve. That’s especially true with emerging tools that might be introducing you to new technical concepts, as I would argue is the case with AI in general. While AI ORG is not a new term and has been studied and developed over decades DATE in various forms, its entrance to the mainstream is certainly new and sparks the recent buzz about it. There’s been plenty of recent buzz in the front-end development community, and many of us are scrambling to wrap our minds around it.

Thankfully, new resources can help abstract all of this for us. They can power an AI ORG project you might be working on, but more importantly, they are useful for learning the concepts of LLM WORK_OF_ART by removing advanced technical barriers. You might think of them as “low” and “no” code tools, like WordPress.com vs. self-hosted WordPress ORG or a visual React editor that is integrated with your IDE.

Low-code platforms make it easier to leverage large language models without needing to handle all the coding and infrastructure yourself. Here are some top options:


Chainlit PERSON is an open-source Python package that is capable of building a ChatGPT-style interface using a visual editor.


Visualize logic : See the step-by-step reasoning behind outputs.

: See the step-by-step reasoning behind outputs. Integrations : Chainlit supports other tools like LangChain PRODUCT , LlamaIndex ORG , and Haystack.

: Chainlit PERSON supports other tools like LangChain PRODUCT , LlamaIndex ORG , and Haystack. Cloud deployment : Push your app directly into a production environment.

: Push your app directly into a production environment. Collaborate with your team: Annotate dataset and run team experiments.

And since it’s open source, Chainlit PERSON is freely available at no cost.


LLMStack PERSON is another low-code platform for building AI apps and chatbots by leveraging large language models. Multiple models can be chained together into “pipelines” for channeling data. LLMStack ORG supports standalone app development but also provides hosting that can be used to integrate an app into sites and products via API ORG or connected to platforms like Slack or Discord ORG .

LLMStack PERSON is also what powers Promptly, a cloud version of the app with freemium subscription pricing that includes a free tier.


What makes FlowiseAI unique is its drag-and-drop interface. It’s a lot like working with a mind-mapping app or a flowchart that stitches apps together with LLM ORG APIs for a truly no-code visual editing experience. Plus, Flowise PERSON is freely available as an open-source project. You can grab any of the 330K-plus CARDINAL LLMs in the Hugging Face ORG community.

Cloud hosting is a feature that is on the horizon, but for now, it is possible to self-host FlowiseAI apps or deploy them on other services such as Raleway ORG , Render ORG , and Hugging Face Spaces ORG .

Stack AI

Stack AI PRODUCT is another no-code offering for developing AI ORG apps integrated with LLMs. It is much like FlowiseAI, particularly the drag-and-drop interface that visualizes connections between apps and APIs. One CARDINAL thing I particularly like about Stack AI PRODUCT is how it incorporates “data loaders” to fetch data from other platforms, like Slack ORG or a Notion ORG database.

I also like that Stack AI PRODUCT provides a wider range of LLM ORG offerings. That said, it will cost you. While Stack AI PRODUCT offers a free pricing tier, it is restricted to a single project with only 100 CARDINAL runs per month. Bumping up to the first ORDINAL paid tier will set you back $ 199 MONEY per month, which I suppose is used toward the costs of accessing a wider range of LLM ORG sources. For example, Flowise AI PERSON works with any LLM WORK_OF_ART in the Hugging Face community. So does Stack AI PRODUCT , but it also gives you access to commercial LLM ORG offerings, like Anthropic ORG ’s Claude PERSON models and Google ORG ’s PaLM ORG , as well as additional open-source offerings from Replicate ORG .


Voiceflow PRODUCT is like Flowise PERSON and Stack AI in the sense that it is another no-code visual editor. The difference is that Voiceflow ORG is a niche offering focused solely on developing voice assistant and chat applications. Whereas the other offerings could be used to, say, train your Gmail PERSON account for spam filtering, Voiceflow ORG is squarely dedicated to developing voice flows.

There is a free sandbox you can use to test Voiceflow PRODUCT ’s features, but using Voiceflow PRODUCT for production-ready app development starts at $ 50 MONEY per month for individual use and $ 185 MONEY per month for collaborative teamwork for up to three CARDINAL users.


The truth is that no-code and low-code visual editors for developing AI-powered apps with integrated LLMs are being released all the time, or so it seems. Profiling each and every one is outside the scope of this article, though it would certainly be useful perhaps in another article.

That said, I have compiled a list of seven CARDINAL other tools in the following table. Even though I have not taken the chance to demo each and every one of them, I am providing what information I know about them from their sites and documentation, so you have a wider set of tools to compare and evaluate for your own needs.

Example: AI Career Assistant With FlowiseAI

Let’s get a feel for developing AI applications with no-code tools. In this section, I will walk you through a demonstration that uses FlowiseAI to train an AI-powered career assistant app trained with LLMs. The idea is less about promoting no-code tools than it is an extremely convenient way to visualize how the components of an AI ORG application are wired together and where LLMs fit in.

Why are we using FlowiseAI instead of any other no-code and low-code tools we discussed? I chose it primarily because I found it to be the easiest one to demo without additional pricing and configurations. FlowiseAI may very well be the right choice for your project, but please carefully evaluate and consider other options that may be more effective for your specific project or pricing constraints.

I also chose FlowiseAI because it leverages LangChain PRODUCT , an open-source framework for building applications using large language models. LangChain PRODUCT provides components like prompt templates, LLMs, and memory that can be chained together to develop use cases like chatbots and question-answering.

To see the possibilities of FlowiseAI first ORDINAL -hand, we’ll use it to develop an AI ORG assistant that offers personalized career advice and guidance by exploring a user’s interests, skills, and career goals. It will take all of these inputs and return a list of cities that not only have a high concentration of jobs that fit the user’s criteria but that provide a good “quality of life” as well.

These are the components we will use to piece together the experience:

Retrievers (i.e., interfaces that return documents given an unstructured query);

Chains (i.e., the ability to compose components by linking them together visually);

Language models (i.e., what “trains” the assistant);

Memory (i.e., storing previous sessions);

Tools (i.e., functions);

Conversational agent (i.e., determine which tools to use based on the user’s input).

These are the foundational elements that pave the way for creating an intelligent and efficient assistant. Here is a visual of the final configuration in Flowise PERSON :

Install FlowiseAI

First ORDINAL things first ORDINAL , we need to get FlowiseAI up and running. FlowiseAI is an open-source application that can be installed from the command line.

You can install it with the following command:

npm install -g flowise

Once installed, start up Flowise PERSON with this command:

npx flowise PERSON start

From here, you can access FlowiseAI in your browser at localhost:3000 .

This is the screen you should see after FlowwiseAI PERSON is successfully installed. (Large preview)

It’s possible to serve FlowiseAI so that you can access it online and provide access to others, which is well-covered in the documentation.

Setting Up Retrievers

Retrievers are templates that the multi-prompt chain will query.

Different retrievers provide different templates that query different things. In this case, we want to select the Prompt Retriever PERSON because it is designed to retrieve documents like PDF ORG , TXT, and CSV ORG files. Unlike other types of retrievers, the Prompt Retriever PERSON does not actually need to store those documents; it only needs to fetch them.

Let’s take the first ORDINAL step toward creating our career assistant by adding a Prompt Retriever PERSON to the FlowiseAI canvas. The “canvas” is the visual editing interface we’re using to cobble the app’s components together and see how everything connects.

Adding the Prompt Retriever PERSON requires us to first ORDINAL navigate to the Chatflow ORG screen, which is actually the initial page when first ORDINAL accessing FlowiseAI following installation. Click the “Add New” button located in the top-right corner of the page. This opens up the canvas, which is initially empty.

The “Plus” (+) button is what we want to click to open up the library of items we can add to the canvas. Expand the Retrievers PERSON tab, then drag and drop the Prompt Retriever PERSON to the canvas.

The Prompt Retriever PERSON takes three CARDINAL inputs:

Name: The name of the stored prompt; Description: A brief description of the prompt (i.e., its purpose); Prompt system message: The initial prompt message that provides context and instructions to the system.

Our career assistant will provide career suggestions, tool recommendations, salary information, and cities with matching jobs. We can start by configuring the Prompt Retriever PERSON for career suggestions. Here is placeholder content you can use if you are following along:

Name : Career Suggestion;

: Career Suggestion; Description : Suggests careers based on skills and experience;

: Suggests careers based on skills and experience; Prompt system message: You are a career advisor who helps users identify a career direction and upskilling opportunities. Be clear and concise in your recommendations.

Be sure to repeat this step three CARDINAL more times to create each of the following:

Tool recommendations,

Salary information,


Adding A Multi-Prompt Chain

A Multi-Prompt Chain is a class that consists of two CARDINAL or more prompts that are connected together to establish a conversation-like interaction between the user and the career assistant.

The idea is that we combine the four CARDINAL prompts we’ve already added to the canvas and connect them to the proper tools (i.e., chat models) so that the career assistant can prompt the user for information and collect that information in order to process it and return the generated career advice. It’s sort of like a normal system prompt but with a conversational interaction.

The Multi-Prompt Chain node can be found in the “Chains” section of the same inserter we used to place the Prompt Retriever PERSON on the canvas.

Once the Multi-Prompt Chain node is added to the canvas, connect it to the prompt retrievers. This enables the chain to receive user responses and employ the most appropriate language model to generate responses.

To connect, click the tiny dot next to the “Prompt Retriever” label on the Multi-Prompt Chain and drag it to the “Prompt Retriever” dot on each Prompt Retriever PERSON to draw a line between the chain and each prompt retriever.

Integrating Chat Models

This is where we start interacting with LLMs. In this case, we will integrate Anthropic ORG ’s Claude PERSON chat model. Claude PERSON is a powerful LLM ORG designed for tasks related to complex reasoning, creativity, thoughtful dialogue, coding, and detailed content creation. You can get a feel for Claude PERSON by registering for access to interact with it, similar to how you’ve played around with OpenAI ORG ’s ChatGPT.

From the inserter, open “ Chat Models WORK_OF_ART ” and drag the ChatAnthropic ORG option onto the canvas.

Once the ChatAnthropic ORG chat model has been added to the canvas, connect its node to the Multi-Prompt Chain’s “ Language Model WORK_OF_ART ” node to establish a connection.

It’s worth noting at this point that Claude PERSON requires an API key in order to access it. Sign up for an API key on the Anthropic ORG website to create a new API key. Once you have an API key, provide it to the Mutli-Prompt Chain in the “Connect Credential” field.

Adding A Conversational Agent

The Agent component in FlowiseAI allows our assistant to do more tasks, like accessing the internet and sending emails.

It connects external services and APIs, making the assistant more versatile. For this project, we will use a Conversational ORG Agent, which can be found in the inserter under “Agent” components.

Once the Conversational Agent has been added to the canvas, connect it to the Chat Model to “train” the model on how to respond to user queries.

Integrating Web Search Capabilities

The Conversational Agent requires additional tools and memory. For example, we want to enable the assistant to perform Google ORG searches to obtain information it can use to generate career advice. The Serp ORG API node can do that for us and is located under “Tools” in the inserter.

Like Claude PERSON , Serp API requires an API key to be added to the node. Register with the Serp ORG API site to create an API key. Once the API ORG is configured, connect Serp API ORG to the Conversational Agent’s “ Allowed Tools WORK_OF_ART ” node.

Building In Memory

The Memory component enables the career assistant to retain conversation information.

This way, the app remembers the conversation and can reference it during the interaction or even to inform future interactions.

There are different types of memory, of course. Several of the options in FlowiseAI require additional configurations, so for the sake of simplicity, we are going to add the Buffer Memory PRODUCT node to the canvas. It is the most general type of memory provided by LangChain PRODUCT , taking the raw input of the past conversation and storing it in a history parameter for reference.

Buffer Memory PRODUCT connects to the Conversational Agent’s “ Memory WORK_OF_ART ” node.

The Final Workflow

At this point, our workflow looks something like this:

Four CARDINAL prompt retrievers that provide the prompt templates for the app to converse with the user.

that provide the prompt templates for the app to converse with the user. A multi-prompt chain connected to each of the four CARDINAL prompt retrievers that chooses the appropriate tools and language models based on the user interaction.

connected to each of the four CARDINAL prompt retrievers that chooses the appropriate tools and language models based on the user interaction. The Claude PERSON language model connected to the multi-chain prompt to “train” the app.

connected to the multi-chain prompt to “train” the app. A conversational agent connected to the Claude PERSON language model to allow the app to perform additional tasks, such as Google ORG web searches.

connected to the Claude PERSON language model to allow the app to perform additional tasks, such as Google ORG web searches. Serp API connected to the conversational agent to perform bespoke web searches.

connected to the conversational agent to perform bespoke web searches. Buffer memory connected to the conversational agent to store, i.e., “remember,” conversations.

If you haven’t done so already, this is a great time to save the project and give it a name like “ Career Assistant WORK_OF_ART .”

Final Demo

Watch the following video for a quick demonstration of the final workflow we created together in FlowiseAI. The prompts lag a little bit, but you should get the idea of how all of the components we connected are working together to provide responses.


As we wrap up this article, I hope that you’re more familiar with the concepts, use cases, and tools of large language models. LLMs are a key component of AI because they are the “brains” of the application, providing the lens through which the app understands how to interact with and respond to human input.

We looked at a wide variety of use cases for LLMs in an AI context, from chatbots and language translations to writing assistance and summarizing large blocks of text. Then, we demonstrated how LLMs fit into an AI application by using FlowiseAI to create a visual workflow. That workflow not only provided a visual of how an LLM, like Claude PERSON , informs a conversation but also how it relies on additional tools, such as APIs, for performing tasks as well as memory for storing conversations.

The career assistant tool we developed together in FlowiseAI was a detailed visual look inside the black box of AI ORG , providing us with a map of the components that feed the app and how they all work together.

Now that you know the role that LLMs play in AI ORG , what sort of models would you use? Is there a particular app idea you have where a specific language model would be used to train it?


(gg, yk)

Connecting to blog.lzomedia.com... Connected... Page load complete