LLM, SLM, and AI Model Selection Guide
๐ค LLM, SLM, and AI Model Selection Guide
Section titled โ๐ค LLM, SLM, and AI Model Selection GuideโChoosing an AI model starts with the task, not the brand. This guide walks through what each model category does, when to use it, and how to pick between specific families.
โก Quick Decision Guide
Section titled โโก Quick Decision GuideโMatch your task to a model category before comparing model names:
| ๐ฏ Task | ๐๏ธ Model Category | ๐ฌ Example Prompt |
|---|---|---|
| ๐ฌ Write, summarize, or explain text | Language model | โSummarize this contract in plain Englishโ |
| ๐ง Reason through a hard problem | Reasoning model | โFind the safest migration path for our databaseโ |
| ๐ป Write, review, or edit code | Coding-capable LLM | โAdd input validation and write tests for this endpointโ |
| ๐ท๏ธ Classify or extract from many inputs | SLM or fast model | โTag these 10,000 support tickets as billing, login, or technicalโ |
| ๐ผ๏ธ Generate an image | Image model | โCreate a thumbnail for a blog post about AI agentsโ |
| ๐๏ธ Understand a screenshot or chart | Vision model | โWhat does this dashboard show and what is confusing about it?โ |
| ๐๏ธ Transcribe audio | Speech-to-text model | โConvert this 45-minute Zoom recording to a transcriptโ |
| ๐ Build semantic search or RAG | Embedding model + LLM | โFind relevant docs, then answer the userโs questionโ |
| ๐ Reorder search results | Reranker model | โPick the best 3 passages from these 50 resultsโ |
| ๐ก๏ธ Filter harmful content | Moderation model | โCheck this user message for abuse or policy violationsโ |
๐ค What Is an LLM?
Section titled โ๐ค What Is an LLM?โAn LLM (large language model) is an AI model trained to understand and generate language. It reads instructions, answers questions, writes code, and reasons through multi-step problems.
โ What LLMs do well:
- ๐ฌ chat assistants and customer support
- ๐ป coding, debugging, and code review
- ๐ summarization and long document analysis
- ๐งฉ structured extraction (JSON, tables, lists)
- ๐ค agent workflows with tool use
- ๐ง planning, reasoning, and decision support
๐ก Concrete example:
โHere is our privacy policy. Summarize the key user rights in plain English, in five bullet points.โ
An LLM is the right choice when the input or output is mainly text, code, or structured data.
โก What Is an SLM?
Section titled โโก What Is an SLM?โAn SLM (small language model) is a smaller, faster model designed for narrow, repetitive tasks. It may not reason as deeply as a frontier LLM, but it excels when the task is well-defined and runs at high volume.
โ What SLMs do well:
- ๐ท๏ธ classifying tickets, emails, or reviews
- ๐ routing messages to the right department
- ๐ extracting simple fields from short text
- โ๏ธ rewriting short sentences or subject lines
- ๐ฅ๏ธ running on local machines or edge devices
- โก handling very high request volumes at low cost
๐ก Concrete example:
โGiven this support email, classify it as: billing, login, technical, or general. Return only the label.โ
Use an SLM when the task is predictable, the output is short and simple, and cost or speed matters more than reasoning depth.
โ๏ธ LLM vs SLM โ Side-by-Side
Section titled โโ๏ธ LLM vs SLM โ Side-by-Sideโ| ๐ Dimension | ๐ง LLM | โก SLM |
|---|---|---|
| ๐ Size | Larger | Smaller |
| ๐ฐ Cost per call | Higher | Lower |
| ๐ Speed | Slower than smaller models | Faster |
| ๐ง Reasoning depth | โ Deep โ handles complexity | โ Limited on complex tasks |
| ๐ Context window | Often 100kโ1M tokens | Often smaller |
| ๐ Local deployment | โ Usually needs cloud or large GPU | โ More practical locally |
| ๐ฏ Best fit | Judgment, coding, analysis, agents | Classification, extraction, routing |
๐ Decision rule:
- Use an LLM when the task needs judgment, creativity, or multi-step reasoning.
- Use an SLM when the task is repetitive, well-defined, and runs at scale.
๐บ๏ธ The Full Model Landscape
Section titled โ๐บ๏ธ The Full Model LandscapeโAn AI model is broader than an LLM. Here is the full category map:
| ๐๏ธ Category | โ๏ธ Input โ Output | ๐ฏ Best For |
|---|---|---|
| ๐ฌ Language model | text โ text / code | Chat, writing, summarization, Q&A |
| ๐ง Reasoning model | text โ plan / analysis | Architecture, debugging, math, migration |
| ๐ป Coding model | code โ code | Editing, tests, refactoring, review |
| โก Fast model / SLM | text โ label / extract | Classification, routing, extraction |
| ๐ผ๏ธ Image generation | text prompt โ image | Thumbnails, mockups, art, visuals |
| ๐๏ธ Vision model | image โ text | Screenshot analysis, chart reading, OCR |
| ๐๏ธ Speech-to-text | audio โ text | Transcripts, subtitles, voice notes |
| ๐ Text-to-speech | text โ audio | Narration, voice agents, accessibility |
| ๐ Embedding model | text โ vector | Semantic search, RAG, deduplication |
| ๐ Reranker model | passages โ ranked list | Improving RAG precision |
| ๐ก๏ธ Moderation model | text / image โ risk label | Safety filtering, content moderation |
๐ Model Categories in Detail
Section titled โ๐ Model Categories in Detailโ1. ๐ฌ Language Models
Section titled โ1. ๐ฌ Language ModelsโLanguage models are the default for chat, writing, summarization, code explanation, and general Q&A.
โ Use when:
- โ input is text, code, markdown, JSON, or documents
- โ output is an explanation, summary, structured data, or a plan
- โ the task requires following multi-step instructions
๐ซ Do not use alone when:
- ๐ you need current facts โ add web search tools
- ๐ you need private records โ add retrieval or database tools
- ๐ you need file access โ add file system tools
๐ก Example:
โRead this API spec and write a one-paragraph summary of what it does, who it is for, and what the main limitations are.โ
2. ๐ง Reasoning Models
Section titled โ2. ๐ง Reasoning ModelsโReasoning models are used when the answer requires multiple steps and mistakes are expensive.
โ Use when:
- ๐๏ธ making architecture or technology decisions
- ๐จ debugging a complex production incident
- ๐ doing math-heavy or logic-heavy analysis
- ๐ planning a risky migration or major refactor
- ๐ the stakes are high enough that a second-rate answer is not acceptable
๐ก Example:
โWe have a monolith with 3M lines of code. We want to extract the payment module as a microservice. What are the highest-risk coupling points and what should we extract first to reduce risk?โ
โ ๏ธ Note: Reasoning models can be slower and more expensive. Use them when quality beats latency.
3. ๐ป Coding Models
Section titled โ3. ๐ป Coding ModelsโCoding models are language models optimized for software work.
โ Use for:
- โ writing new code from a spec or description
- โ editing existing files without breaking behavior
- โ generating unit or integration tests
- โ reviewing pull requests for bugs and risks
- โ debugging build or CI failures
- โ refactoring and renaming at scale
- โ transpilation (e.g. JavaScript โ TypeScript, Java โ C#, Python 2 โ Python 3)
๐ก Example:
โAdd input validation to this Python function. Then write pytest tests covering the happy path, an invalid email address, and a missing required field.โ
๐ก Complex coding usually needs both strong coding ability and strong reasoning ability.
4. โก Fast Models and SLMs
Section titled โ4. โก Fast Models and SLMsโFast models and SLMs are designed for high-volume or simple structured tasks.
โ Use for: ๐ท๏ธ classification ยท ๐ routing ยท ๐ extraction ยท ๐ short summaries ยท โ๏ธ simple rewrites
๐ซ Avoid for: โ ๏ธ risky code changes ยท ๐๏ธ complex architecture ยท โ ambiguous instructions ยท ๐ long document analysis
๐ก Example:
โGiven this product review, return a JSON object:
{sentiment: 'positive'|'neutral'|'negative', mentions_shipping: true|false}โ
5. ๐ผ๏ธ Image Generation Models
Section titled โ5. ๐ผ๏ธ Image Generation ModelsโImage models create or edit images from text prompts.
โ Use for: ๐ธ blog illustrations ยท ๐ฑ social media visuals ยท ๐ผ๏ธ thumbnails ยท ๐จ UI mockups ยท โ๏ธ concept art ยท ๐๏ธ product photography
๐ก Workflow tip: Use a language model to write the image prompt first. Then send it to an image model.
๐ Example workflow:
- ๐ง Ask an LLM: โWrite a detailed image prompt for a futuristic data center with blue lightingโ
- ๐ผ๏ธ Send that prompt to an image model (DALL-E, GPT Image, Stable Diffusion, Midjourney)
6. ๐๏ธ Vision Models
Section titled โ6. ๐๏ธ Vision ModelsโVision models read and interpret images, screenshots, charts, or PDFs.
โ Use for: ๐ฅ๏ธ screenshot analysis ยท ๐จ UI reviews ยท ๐ chart explanation ยท ๐ค OCR-like extraction ยท โ visual Q&A ยท โฟ accessibility descriptions
๐ก Example:
โHere is a screenshot of our checkout flow. What does the user see on this step, and what might cause confusion or drop-off?โ
โ ๏ธ Vision โ Image generation. A vision model reads images. An image model creates images.
7. ๐๏ธ Speech-to-Text Models
Section titled โ7. ๐๏ธ Speech-to-Text ModelsโSpeech-to-text models convert audio files or streams into text.
โ Use for: ๐ meeting transcripts ยท ๐ฌ subtitles ยท ๐ call center analytics ยท ๐๏ธ voice notes ยท ๐๏ธ podcast indexing ยท ๐ audio search
๐ก Well-known model: Whisper (OpenAI). When you hear โWisprโ in AI conversations, the intended model is usually Whisper.
๐ก Example:
๐๏ธ Input: 45-minute Zoom recording โ ๐ Output: full timestamped transcript with speaker labels
8. ๐ Text-to-Speech and Voice Models
Section titled โ8. ๐ Text-to-Speech and Voice ModelsโText-to-speech models generate spoken audio. Realtime voice models support low-latency spoken conversations.
โ Use for: ๐ค voice agents ยท ๐ narration ยท โฟ accessibility ยท ๐ IVR systems ยท ๐ language learning apps ยท ๐๏ธ spoken customer support
๐ Three-part voice system:
| ๐ข Step | ๐ญ Role |
|---|---|
| 1๏ธโฃ โ ๐๏ธ Speech-to-text | Understands what the user said |
| 2๏ธโฃ โ ๐ง LLM | Decides the right answer |
| 3๏ธโฃ โ ๐ Text-to-speech | Speaks the answer back |
9. ๐ Embedding Models
Section titled โ9. ๐ Embedding ModelsโEmbedding models convert text (or other content) into vectors for search and retrieval.
โ Use for: ๐ semantic search ยท ๐ค RAG pipelines ยท ๐ duplicate detection ยท ๐ก recommendations ยท ๐งฉ clustering ยท ๐ finding similar documents
๐ Concrete RAG flow:
| ๐ข Step | โ๏ธ What happens |
|---|---|
| 1๏ธโฃ โ ๐ Index documents | Embed each chunk into a vector |
| 2๏ธโฃ โ โ Receive query | Embed the user question |
| 3๏ธโฃ โ ๐ Retrieve | Find closest document vectors |
| 4๏ธโฃ โ ๐ฌ Answer | Send top results to the LLM |
โ ๏ธ Do not ask an embedding model to write an answer. Use it to find content, then use an LLM to explain or synthesize it.
10. ๐ Reranker Models
Section titled โ10. ๐ Reranker ModelsโRerankers reorder search results by relevance after an initial retrieval step.
โ Use when:
- ๐ vector search returns weak or noisy matches
- โ RAG answers miss the most relevant passage
- ๐ the document collection is large (thousands to millions of records)
๐ Typical RAG pipeline with reranking:
| ๐ข Step | ๐ ๏ธ Tool |
|---|---|
| 1๏ธโฃ โ ๐ Retrieve candidates | Embedding model + vector database |
| 2๏ธโฃ โ ๐ Reorder by relevance | Reranker model |
| 3๏ธโฃ โ ๐ฌ Generate answer | LLM |
11. ๐ก๏ธ Moderation and Safety Models
Section titled โ11. ๐ก๏ธ Moderation and Safety ModelsโModeration models classify safety risk in text, images, or prompts.
โ Use for: ๐ค user-generated content review ยท ๐จ abuse detection ยท ๐ prompt injection screening ยท ๐ policy compliance checks
๐ก Example:
๐ค Input: user-submitted comment โ ๐ก๏ธ Output:
{category: "safe", confidence: 0.97}or{category: "harassment", confidence: 0.89, action: "block"}
12. ๐๏ธ Encoder, Decoder, and Encoder-Decoder Architectures
Section titled โ12. ๐๏ธ Encoder, Decoder, and Encoder-Decoder ArchitecturesโThese terms describe the underlying model design, not the task.
| ๐๏ธ Architecture | โ๏ธ What It Does | ๐ฏ Common Use |
|---|---|---|
| ๐ฅ Encoder | Reads input โ creates a compressed representation | Embeddings, classification, search |
| ๐ค Decoder | Generates output token by token | Most chat LLMs (GPT, Claude, Llama) |
| ๐ Encoder-decoder | Reads, then generates a transformed output | Translation, summarization, speech โ text |
๐ก For practical model selection, architecture is secondary. Choose by task type first.
๐ฏ How to Choose for Complex Coding
Section titled โ๐ฏ How to Choose for Complex CodingโFor coding tasks, the specific situation matters as much as the model tier.
| ๐ฅ๏ธ Coding Situation | ๐ Recommended Tier | ๐ก Why |
|---|---|---|
| ๐ Small bug fix in one file | Sonnet-class | Strong enough without the top cost |
| ๐ Explain a function or module | Sonnet-class | Good at reading and explaining code |
| โ๏ธ Rename variables or simple mechanical edits | Haiku or Sonnet | Haiku for trivial; Sonnet for anything with judgment |
| ๐ Large refactor across many files | Opus-class | Needs cross-file planning and reasoning |
| ๐จ Debugging a production incident | Opus-class | Failure is expensive; use the strongest model |
| ๐งช Generate unit tests for clear code | Sonnet-class | Good balance of quality and cost |
| ๐ Review a risky pull request | Opus-class | Needs deep bug detection and risk assessment |
| ๐ท๏ธ Classify code files by category | Haiku-class | Repetitive, structured, high-volume |
| ๐ Convert small snippets between languages | Sonnet-class | Needs code understanding, not max reasoning |
| ๐ Migrate an old framework to a new one | Opus-class | Requires compatibility planning and staged changes |
๐ Summary:
- โก Haiku โ simple, fast, repetitive coding-adjacent tasks
- โ Sonnet โ normal day-to-day development
- ๐ฌ Opus โ difficult, risky, ambiguous, or multi-file engineering
๐ค Claude Opus, Sonnet, and Haiku
Section titled โ๐ค Claude Opus, Sonnet, and Haikuโ๐ฎ Claude Opus โ Deepest Reasoning
Section titled โ๐ฎ Claude Opus โ Deepest ReasoningโUse Opus when the task is complex, risky, or ambiguous, and quality matters more than cost or speed.
๐ฏ Ideal for:
- ๐จ production incident debugging
- ๐๏ธ architecture and migration planning
- ๐ large cross-file refactors
- ๐ reviewing risky pull requests
- ๐ค comparing multiple technical approaches
๐ก Example:
โReview this migration plan from AngularJS to Angular 17. Identify the safest phased approach, what to migrate first, and which legacy patterns are most likely to break in production.โ
โ๏ธ Claude Sonnet โ Balanced Default
Section titled โโ๏ธ Claude Sonnet โ Balanced DefaultโUse Sonnet for strong everyday coding and development tasks.
๐ฏ Ideal for:
- โจ adding features and fixing bugs
- ๐ป writing and explaining code
- ๐งช generating tests for clear behavior
- ๐ writing documentation and technical summaries
๐ก Example:
โAdd input validation to this API endpoint. Then write unit tests covering the happy path and at least two error cases.โ
โก Claude Haiku โ Fast and Cost-Efficient
Section titled โโก Claude Haiku โ Fast and Cost-EfficientโUse Haiku for simple, predictable, high-volume tasks.
๐ฏ Ideal for:
- ๐ท๏ธ classification and routing
- ๐ extraction from short text
- ๐ท๏ธ labeling, tagging, and scoring at scale
- โ๏ธ quick rewrites of short content
๐ก Example:
โClassify each of these 5,000 support tickets as: billing, login, technical, or feedback. Return a JSON array with the ticket ID and label.โ
๐ Model Name Reference
Section titled โ๐ Model Name Referenceโโ ๏ธ Model names and pricing change frequently. These are illustrative examples โ check official provider docs before production decisions.
๐ข OpenAI Models
| ๐ค Model | ๐ท๏ธ Class | ๐ฏ Best For |
|---|---|---|
| GPT-5.5 | ๐ฌ Frontier reasoning | Hard analysis, complex coding, agent workflows |
| GPT-5.5 mini | โ๏ธ Balanced | Lower latency and cost than the top model |
| GPT-5.5 nano | โก Fast / lightweight | Classification, extraction, routing |
| GPT Codex | ๐ป Coding agent | Repo edits, debugging, refactoring, code review |
๐ฃ Anthropic Claude Models
| ๐ค Model | ๐ท๏ธ Class | ๐ฏ Best For |
|---|---|---|
| Claude Opus | ๐ฎ Highest-capability | Hard reasoning, complex coding, risky reviews |
| Claude Sonnet | โ๏ธ Balanced | Day-to-day coding, writing, production workflows |
| Claude Haiku | โก Fast | Quick classification, extraction, short summaries |
๐ต Google Gemini Models
| ๐ค Model | ๐ท๏ธ Class | ๐ฏ Best For |
|---|---|---|
| Gemini Pro | ๐ฌ Strong general + multimodal | Complex reasoning, long context, Google ecosystem |
| Gemini Flash | โ๏ธ Balanced speed + quality | Production chat, extraction, multimodal tasks |
| Gemini Flash Lite | โก Lightweight | Simple high-volume tasks |
๐ DeepSeek Models
| ๐ค Model | ๐ท๏ธ Class | ๐ฏ Best For |
|---|---|---|
| DeepSeek Reasoner | ๐ง Reasoning-focused | Math, logic, coding, multi-step analysis |
| DeepSeek Chat | ๐ฌ General chat | Cost-conscious general assistant workloads |
โ ๏ธ Evaluate quality and data governance fit before production use.
๐ช Microsoft MAI Models
| ๐ค Model | โ๏ธ Modality | ๐ฏ Best For |
|---|---|---|
| MAI-Thinking | ๐ฌ Text โ ๐ง reasoning | Complex reasoning in Microsoft AI Foundry |
| MAI-Code | ๐ฌ Text โ ๐ป code | Code generation and software engineering |
| MAI-Image | ๐ฌ Text โ ๐ผ๏ธ image | Image generation and editing in Microsoft tooling |
| MAI-Transcribe | ๐๏ธ Audio โ ๐ text | Transcription workflows |
| MAI-Voice | ๐ Text โ ๐ audio | Generated spoken audio |
๐ผ๏ธ Image Generation Models
| ๐ค Model | ๐ฏ Best For |
|---|---|
| GPT Image | ๐ผ๏ธ Creating or editing images in OpenAI workflows |
| DALL-E | ๐ Older OpenAI image generation (legacy reference) |
| Stable Diffusion | ๐ Local control, custom pipelines, fine-tuning |
| Midjourney | ๐จ Creative ideation, concept art, marketing imagery |
| Adobe Firefly | ๐ญ Adobe ecosystem and commercially licensed images |
๐ก GPT Image vs DALL-E: GPT Image is the current OpenAI image family. DALL-E is the older brand. Use GPT Image for modern workflows.
๐๏ธ Speech and Voice Models
| ๐ค Model | โ๏ธ Direction | ๐ฏ Best For |
|---|---|---|
| Whisper | ๐๏ธ Audio โ ๐ text | Meeting transcripts, subtitles, voice notes |
| GPT Transcribe | ๐๏ธ Audio โ ๐ text | OpenAI transcription API workflows |
| GPT Realtime | ๐๏ธ Audio โ ๐ audio | Low-latency voice agent conversations |
| ElevenLabs | ๐ Text โ ๐ audio | High-quality narration and generated voices |
| Azure Speech | ๐๏ธ Audio โ ๐ text | Enterprise speech services in Azure |
๐ Quick distinction:
- ๐๏ธ Audio โ ๐ text = speech-to-text (Whisper, GPT Transcribe)
- ๐ Text โ ๐ audio = text-to-speech (ElevenLabs, Azure Speech)
- ๐๏ธ Audio โ ๐ audio = realtime voice (GPT Realtime)
๐ Embedding and Search Models
| ๐ค Model | ๐ฏ Best For |
|---|---|
| OpenAI text-embedding-3-large | ๐ฏ High-quality embeddings where retrieval precision matters |
| OpenAI text-embedding-3-small | โก High-volume semantic search at lower cost |
| Cohere Embed | ๐ข Enterprise search-heavy RAG |
| Cohere Rerank | ๐ Improving relevance order after retrieval |
| Jina Reranker | ๐ Improving passage relevance in search and RAG |
๐ Open-Weight and Local Models
| ๐ค Model | ๐ฏ Best For |
|---|---|
| Meta Llama | ๐ Self-hosting, customization, local deployment |
| Mistral | ๐ Efficient general models, European provider requirements |
| Qwen | ๐ Multilingual tasks, coding, local deployment experiments |
| Gemma | โก Lightweight local or edge workloads |
๐ก Open-weight models are useful when data privacy, customization, or cost at scale drives the decision away from hosted APIs.
โ Decision Checklist
Section titled โโ Decision ChecklistโAsk these questions before picking a model:
| โ Question | ๐ฏ What It Changes |
|---|---|
| ๐ฅ What is the input? | Text, image, audio, video โ different model categories |
| ๐ค What is the output? | Text, code, image, audio, vector โ changes the model choice |
| ๐งฉ Is the task complex? | โ Yes โ use a stronger reasoning model |
| ๐ Is the task repetitive at scale? | โ Yes โ use an SLM or fast model |
| ๐ธ Is failure expensive? | โ Yes โ use the strongest model + add human review |
| โฑ๏ธ Is latency critical? | โ Yes โ use a balanced or fast model |
| ๐ฐ Is cost a hard constraint? | โ Yes โ use the smallest model that reliably succeeds |
| ๐ Do you need private data? | โ Yes โ add retrieval, tools, or local deployment |
| ๐ Do you need semantic search? | โ Yes โ use embeddings + reranker before the LLM |
| ๐ Do you need current facts? | โ Yes โ add web search or database tools |
โ ๏ธ Common Mistakes
Section titled โโ ๏ธ Common Mistakesโโ Mistake 1 โ Using the Strongest Model for Everything
Section titled โโ Mistake 1 โ Using the Strongest Model for EverythingโThis wastes money and is one of the most common AI cost problems.
๐ก Example: Classifying 50,000 support tickets with Claude Opus costs roughly 100ร more than using Claude Haiku. If Haiku gets the label right 95% of the time, use Haiku and reserve Opus for the ambiguous 5%.
โ Mistake 2 โ Using an LLM When You Need Search
Section titled โโ Mistake 2 โ Using an LLM When You Need SearchโIf the answer depends on private documents, a live database, or current facts, add retrieval or tools. An LLM without retrieval will hallucinate or give outdated answers.
๐ก Example: โWhat is our Q3 revenue?โ โ Do not send this to a plain LLM. Connect the model to a tool that queries your data warehouse and inject the result into the prompt.
โ Mistake 3 โ Using an LLM Instead of Embeddings for Search
Section titled โโ Mistake 3 โ Using an LLM Instead of Embeddings for SearchโFor finding relevant content in a large corpus, use embeddings first. Use the LLM after retrieval to synthesize.
โ Wrong: Ask the LLM to search through 10,000 documents in a single prompt.
โ Right: Embed the documents, retrieve the top 5 by similarity, then pass those 5 to the LLM with the question.
โ Mistake 4 โ Comparing Only by Benchmark
Section titled โโ Mistake 4 โ Comparing Only by BenchmarkโBenchmarks help, but your real prompts, documents, latency requirements, and cost constraints matter more. Run evaluations on your own workload before committing to a model in production.
โ Mistake 5 โ Confusing Products With Models
Section titled โโ Mistake 5 โ Confusing Products With Modelsโ| ๐ฅ๏ธ Product (end-user app) | ๐ค Underlying Model Family |
|---|---|
| ChatGPT | GPT (OpenAI) |
| Claude.ai | Claude (Anthropic) |
| Gemini app | Gemini (Google) |
| Microsoft Copilot | GPT + MAI + Azure |
| Perplexity | Multiple models |
๐ก Products are built on top of models. When comparing capabilities, make sure you are comparing the same layer.
๐๏ธ Example Architectures
Section titled โ๐๏ธ Example Architecturesโ๐ค RAG Chatbot
Section titled โ๐ค RAG Chatbotโ| ๐ข Step | ๐ ๏ธ Component |
|---|---|
| 1๏ธโฃ โ ๐ Preprocess documents | Chunking, cleaning, deduplication |
| 2๏ธโฃ โ ๐ข Create vectors | Embedding model |
| 3๏ธโฃ โ ๐ Retrieve passages | Vector database |
| 4๏ธโฃ โ ๐ Improve ranking | Reranker model |
| 5๏ธโฃ โ ๐ฌ Generate answer | LLM |
| 6๏ธโฃ โ ๐ก๏ธ Check for safety risk | Moderation model |
๐๏ธ Voice Assistant
Section titled โ๐๏ธ Voice Assistantโ| ๐ข Step | ๐ ๏ธ Component |
|---|---|
| 1๏ธโฃ โ ๐๏ธ Capture and convert speech | Speech-to-text model |
| 2๏ธโฃ โ ๐ง Decide the right answer | LLM or reasoning model |
| 3๏ธโฃ โ ๐ Call business APIs | Tool integration |
| 4๏ธโฃ โ ๐ Speak the response | Text-to-speech or realtime voice model |
๐ป Coding Agent
Section titled โ๐ป Coding Agentโ| ๐ข Step | ๐ ๏ธ Component |
|---|---|
| 1๏ธโฃ โ ๐ Read the repository | Coding-capable LLM |
| 2๏ธโฃ โ ๐ Plan the changes | Reasoning model |
| 3๏ธโฃ โ โ๏ธ Edit files | Coding agent tools |
| 4๏ธโฃ โ ๐งช Run tests | Shell or CI tools |
| 5๏ธโฃ โ ๐ Review the diff | Coding or reasoning model |
๐ผ๏ธ Image Workflow
Section titled โ๐ผ๏ธ Image Workflowโ| ๐ข Step | ๐ ๏ธ Component |
|---|---|
| 1๏ธโฃ โ ๐ก Write the creative brief | LLM |
| 2๏ธโฃ โ โ๏ธ Generate an image prompt | LLM |
| 3๏ธโฃ โ ๐ผ๏ธ Create the image | Image generation model |
| 4๏ธโฃ โ ๐จ Edit or refine | Image editing model |
| 5๏ธโฃ โ ๐ Write alt text | Vision-capable LLM |
๐ Final Rule
Section titled โ๐ Final RuleโPick the smallest model that reliably succeeds on your task.
| ๐ฏ Workload Type | ๐ค Model Tier |
|---|---|
| โก Simple, repeated, high-volume tasks | SLM or fast model |
| โ Normal everyday production tasks | Balanced LLM |
| ๐ฌ Difficult, risky, or ambiguous tasks | Frontier reasoning model |
| ๐ญ Image, audio, vectors, or safety tasks | Specialized model for that modality |
๐ Official Sources for Current Model Names
Section titled โ๐ Official Sources for Current Model Namesโโ ๏ธ Model names, pricing, and availability change. Verify before making production decisions:
- ๐ข OpenAI models
- ๐ฃ Anthropic Claude models
- ๐ต Google Gemini models
- ๐ DeepSeek models and pricing
- ๐ช Microsoft AI models
- ๐ Mistral models
- ๐ต Cohere models