Skip to main content
Bring your team and maximize your impact at Dreamforce. Register three or more to unlock $999 passes.

Learn Why Model Fit Matters

Learning Objectives

After completing this unit, you'll be able to:

  • Explore why model fit matters for your specific task.
  • Apply model selection principles.
  • Test models effectively to find the best fit for your task.
  • Make informed decisions based on data, not assumptions.

Why Model Fit Matters

In Prompt Builder, you can choose which model powers your prompt. Having options means making decisions, and the newest or most powerful model isn't always the right one for your task. What matters is how well a model performs on your specific use case. This means you need to test and verify.

Think of it like choosing the right oven. A convection oven is great for roasting but can dry out a delicate sponge cake. The right tool depends on what you're making, and the only way to know for sure is to test it.

Four Model Selection Principles

Principle 1: Task specificity: Different models excel at different tasks. A model great at summarization might not be best for creative writing. Test your specific use case.

Principle 2: Performance, not release date: Newer doesn't mean better. What matters is how well the model performs on your specific task. Measure actual results.

Principle 3: Cost vs. accuracy trade-off: More powerful models often cost more. Sometimes a faster, cheaper model produces good-enough results. Test to find your balance.

Principle 4: Consistency and reliability: For production use, you need consistent results. Test a model multiple times to ensure it reliably produces the quality you need.

The Translation Comparison Example

Let’s review an example that shows why testing matters.

Task: Translate customer support conversations from English to Spanish for Spanish-speaking team members.

Models tested:

  • Model A (older, widely used)
  • Model B (newer release)

Results:

  • Model A: 95% accuracy on 100 test translations
  • Model B: 87% accuracy on 100 test translations

Conclusion: For this specific translation task, the older Model A outperformed the newer Model B by 8 percentage points. The team chose Model A, not because it was newer, but because it delivered superior results for their specific need.

Model Selection Guidelines

Task Type

Recommended Approach

Text Summarization

Test multiple models; measure accuracy of key points retained

Customer Email Generation

Test for tone consistency and personalization accuracy

Data Extraction

Test precision (correct answers) vs. recall (all answers found)

Content Rewriting

Test for style consistency and instruction adherence

Multi-language Tasks

Always test language-specific models; don't assume general models work equally

The Testing Methodology

To choose your model.

  • Define success criteria. What does "good" look like for your task? Identify 2 to 3 measurable criteria.
  • Create test data. Prepare 10 to 20 representative examples that match real-world usage.
  • Test each model. Run your prompt against each candidate model using the test data.
  • Measure results. Score each output against your success criteria.
  • Analyze the data. Which model won on your criteria? Was the difference significant?
  • Choose based on data. Pick the model that performed best on your actual use case, not on reputation or release date.

Model selection doesn't have to be complicated. Define what good looks like, test with real data, and let the results guide your decision. In the final unit, you'll put everything together and learn how to test, iterate, and deploy your prompts for real-world use.

Share your Trailhead feedback over on Salesforce Help.

We'd love to hear about your experience with Trailhead - you can now access the new feedback form anytime from the Salesforce Help site.

Learn More Continue to Share Feedback