Large language models (LLMs) are powerful tools that can generate text, code, and other content in seconds. While general-purpose LLMs are highly capable, they're designed for broad use rather than any one company's unique business context.
Organizations can customize existing LLMs using proprietary business, customer, and industry data to create AI solutions tailored to their specific needs. It’s this proprietary data that sets businesses apart and gives them a competitive edge.
This guide explains how LLMs work and the architecture underlying them. It also walks through the process of training and customizing an LLM for business use, along with a real-world example to illustrate these concepts in practice.
What Are Large Language Models: The Basics
A large language model (LLM) is a type of AI system designed to generate human-like text and code. To develop this capability, it's trained on massive text datasets.
To understand how LLMs work, it's helpful to know these key concepts:
Tokenization: The process of breaking text into units (tokens) that an LLM can process
Word embedding: A numerical representation of each token that captures its meaning and relationships to other tokens
Transformer: The architecture that allows modern LLMs to process relationships between words simultaneously using self-attention
Hallucination: False or fabricated information generated by an LLM and presented as factual
“These models don't just analyze existing data—they create new data,” says Harvard Business School Professor Karim Lakhani in the online course Data Science and AI for Decision Making. “By repeatedly predicting the next word, sound, or pixel, they can write, summarize, translate, code, and even simulate reasoning.”
How to Train a Bespoke LLM
Building or customizing an LLM for your business or industry is a complex process that requires coding and data analysis skills. That said, if you’re spearheading a machine learning project or assembling a team, it helps to understand the general process. It typically includes the following steps:
1. Select the Base Model
The base model is the general-purpose LLM that serves as the foundation for your customized AI solution.
Organizations can train a base model from scratch through a process called pre-training, which involves exposing the model to massive datasets so it develops a broad understanding of human language. While this approach offers greater control—particularly over data privacy and security—and may reduce long-term licensing costs, it also requires a significant upfront investment in time, computing power, and expertise.
For this reason, as noted in the online course Data Science and AI for Decision Making, most organizations start with an existing, open-source model rather than pre-training one from scratch. Popular options include Meta’s Llama, Google DeepMind’s Gemma, and OpenAI’s gpt-oss.
2. Prepare the Data
Once you’ve selected your base model, you'll need to prepare the proprietary data you’ll use to customize it for your business. Depending on your goals, this can include:
Internal documentation, such as Wikis, employee handbooks, and company policies
Product specifications, including dimensions and instructions
Proprietary research and software assets, including source code, codebases, and API documentation
Communications, such as emails, chat logs, phone recordings, and customer support tickets
Customer information and profiles from your customer relationship management (CRM) system
Industry research or documentation from professional or trade organizations
Specialized domain documents, such as medical records or legal documents
For business intelligence (BI) applications, this may also include financial statements, sales figures, key performance indicators (KPIs), and other performance metrics that help the model generate more relevant insights.
Preparing the data for use typically involves:
Removing duplicates, incomplete values, or outliers that might otherwise skew model outputs
Correcting typos and standardizing data formats to make it easier for the model to digest
Enriching the dataset with relevant third-party data when appropriate
Labeling images, videos, and other non-text assets to help the model interpret them more effectively
“This is often the most time-consuming phase [of the machine learning lifecycle],” Lakhani says in Data Science and AI for Decision Making. “Raw data is cleaned, transformed, and enriched.”
3. Fine-Tune the Model
Fine-tuning is the process of adapting a pre-trained model to better align with your business goals.
“Simply learning from massive text corpora doesn't guarantee that the model will remain truthful, safe, or ethical; it only ensures the model can mimic patterns found in the data and predict a probable next word,” Lakhani says in Data Science and AI for Decision Making. “There are several techniques and tools used to align an LLM’s behavior with human values and expectations, ensuring it avoids misinformation or harmful instructions.”
Many organizations use fine-tuning and Retrieval-Augmented Generation (RAG). While fine-tuning helps tailor an LLM's behavior to a specific domain or task, RAG enables it to retrieve current, relevant information at the time of a request. Together, these approaches can improve response quality without requiring frequent retraining.
According to Lakhani, organizations commonly use the following techniques to adapt and align LLMs:
Supervised Fine-Tuning: The process of teaching the base model to produce better answers by training it using high-quality summaries, task responses, or question-answer pairs
Domain-Specific Fine-Tuning (DSFT): The process of training the base model on your proprietary business, industry, or domain data to specialize its behavior
Reinforcement Learning from Human Feedback (RLHF): The process of training the model so that it prefers to output safe or helpful answers, typically through reinforcement based on human feedback and rankings
4. Deploy the Model
Once the model has been trained and fine-tuned, it can be deployed within your organization to support a wide range of business activities. Common applications include creating marketing assets, such as web pages and emails; sales assets, such as sales scripts; and customer support resources, such as Wikis and FAQs.
If your model incorporates your organization’s business intelligence (BI) data, you can use it to analyze performance, create reports, and generate valuable insights to guide decision-making. However, if the model relies only on the data used during training or fine-tuning, your insights will only be as timely as that data. For ongoing BI use, you'll need to ensure the model maintains a connection to current business data.
5. Monitor the Model
As with any AI tool, it's important to monitor the model’s performance to ensure it continues to meet your expectations and guard against issues such as data drift and declining model performance.
In the online course Data Science and AI for Decision Making, two strategies are presented to help organizations use their bespoke LLMs more effectively upon deployment:
Human-in-the-Loop (HITL): Embedding a human directly into the machine learning workflow to review, approve, or correct the model’s outputs and provide oversight, particularly for high-stakes applications or decisions
Retrieval-Augmented Generation (RAG): Connecting the model to reliable external information in production so it can generate more current, context-specific responses
BloombergGPT: A Bespoke LLM in Action
For an example of how a business might develop a bespoke LLM, consider a case study highlighted in the online course Data Science and AI for Decision Making: BloombergGPT.
Bloomberg is a global financial data and media company. In addition to publishing Bloomberg News and other publications, the company monetizes its proprietary financial data through its flagship product, the Bloomberg Terminal. Professional investors use the platform to analyze markets, track company performance, and make more informed investment decisions.
After accumulating more than 40 years of proprietary financial data—including financial documents, filings, news, press releases, analyst transcripts, and other domain-specific sources—Bloomberg saw an opportunity to build its own LLM in 2023. The model, comprising 50 billion parameters and more than 700 billion tokens, came to be known as BloombergGPT.
Bloomberg invested millions of dollars to build an LLM that was better equipped to understand and generate financial language than the general-purpose models available at the time.
Although BloombergGPT demonstrated the value of proprietary financial data, rapid advances in foundation models quickly narrowed its advantage. Just months later, OpenAI released GPT-4, which demonstrated stronger performance across many of the tasks BloombergGPT was designed to address. Despite Bloomberg’s trove of proprietary data, the company couldn’t keep pace with the rapid improvements in general-purpose foundation models.
While BloombergGPT demonstrated the value of proprietary data and the potential of a domain-specific LLM, it also highlighted the challenges of training a model from scratch—and why most organizations are better served by adapting an existing foundation model instead.
The Importance of AI Literacy
As a business leader, you may not be responsible for building or customizing an LLM yourself, but understanding the process is still essential. It can help you make more informed decisions about how to approach an AI initiative—including whether to build a model from scratch or customize an existing one, what proprietary data to incorporate, and how to manage the constraints and risks involved.
To quickly get up to speed on LLMs and other AI-related concepts, consider completing an online course like Data Science and AI for Decision Making. Built around real-world case studies and designed to be completed in as little as 20 to 25 hours, the course provides a deeper understanding of the concepts covered in this guide and equips learners to lead data- and AI-enabled transformation across their teams, organizations, and industries.
Do you want to improve your ability to leverage data and artificial intelligence in your business? Explore Data Science and AI for Decision Making—one of our online digital transformation and AI courses—or download our free flowchart to choose the right course for your goals.


