liveBook · Manning

Language model

As explained in AI Agents in Action

A large language model is a neural language model trained on extensive text data to generate and transform natural-language content.

A large language model (LLM) is a generative neural language model trained on extensive text data to create or transform natural-language content. Its behavior combines training data, model architecture, scale, and training for a specific use case. GPT is the most successful architecture associated with LLMs, while fine-tuning adapts a model toward tasks such as chat, completion, or instruction following. section 2.0

Figure 2.1 The difference between generative and predictive models
figure

Contrasts generative models, which create content from input, with predictive or classification models, which classify input. section 2.0

Use an LLM through several practical paths:

  • Connect applications through the OpenAI API SDK, including access to models such as GPT-4. section 2.6
  • Run open-source models locally with tools such as LM Studio, while managing hardware and configuration requirements. section 2.6
  • Improve responses with prompt engineering and select models by performance, parameters, use case, and training input. section 2.6
  • Configure an LLM connection in prompt flow by installing its packages, creating a secure connection, and testing a flow. section 9.3.1

How AI Agents in Action covers it

How deep it goes
Defines generative behavior, architecture, data, fine-tuning, access, prompting, and selection without detailing transformer internals.
Examples
Uses ChatGPT, GPT-4, the OpenAI API, LM Studio, and prompt flow connection exercises as concrete examples.
What it assumes
Assumes basic Python environment setup and access to GPT-4 or above for prompt flow exercises.
What you can do after
Operate/configure LLM integrations through the OpenAI API SDK, LM Studio, or prompt flow.
How it connects
Connects GPT, generative models, fine-tuning, prompt engineering, model selection, agents, and assistants.

Also explained in

Compare how 67 books explain language model →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI Agents in Action. The section links point to the parts of the book it draws on.