Skip to Main Content

Generative AI: ChatGPT

AI Guide

How Does Chat GPT (and Other AI like it) Work?

"Large Language Models, such as GPT-3, are trained on vast amounts of text data from the internet and are capable of generating human-like text, but they may not always produce output that is consistent with human expectations or desirable values. In fact, their objective function is a probability distribution over word sequences that allows them to predict what the next word is in a sequence."

https://www.assemblyai.com/blog/how-chatgpt-actually-works/

"Internally ChatGPT uses a combination of machine learning algorithms and deep learning techniques to process and generate text responses. When a user inputs a message into the chat, the system first tokenizes the text, which involves breaking down the words and sentences into individual units. The tokens are then passed through a series of layers, which include the encoder and decoder layers, to generate a response.

One of the key technical details of ChatGPT’s internal architecture is its use of attention mechanisms. Attention mechanisms allow the model to focus on specific parts of the input text, which helps it generate more relevant and contextually accurate responses. This is particularly important in the context of a conversation, where previous messages need to be considered when generating a response

Another technical detail of ChatGPT’s internal architecture is its use of memory modules. These modules allow the model to retain information from previous messages, which helps it generate more coherent and consistent responses. This is especially useful in longer conversations, where the model needs to maintain a sense of context and coherence."

https://www.unimedia.tech/gpt-chatbots/

Acknowledgement of Adaptation

This guide was adapted from the Black Hawk College Library Chat GPT libguide.

Use the following link to view the original guide: 

https://bhc.libguides.com/c.php?g=1301302&p=9561888