---
schema_version: "1"
id: 2d4707046c2536a1863d5ff374aa8005b2dad5b46a3cc8960012b8cc0f487714
title: How to Handle Out-of-Domain Text
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/einstein-vision-language/einstein/guides/Einstein-Language/how-to-handle-out-of-domain-text.md
canonical_url: https://developer.salesforce.com/docs/analytics/einstein-vision-language/guide/how-to-handle-out-of-domain-text.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: db5c8adebde47d432f088cfd56ce4a04e94c45561c251e892f28cd623adc9ea0
products:
  - Einstein Vision and Language
  - Einstein Vision and Language Repo
---

# How to Handle Out-of-Domain Text

Einstein Intent lets you create a model that handles predictions for unexpected text.

The difference between the `intent` and `multilingual-intent` algorithms as opposed to the `multilingual-intent-ood algorithm` is how a model created with each algorithm handles predictions for text that doesn’t fall into one of the labels in the model.

For example, you have a case routing dataset with five labels.

- Billing
- Order Change
- Password Help
- Sales Opportunity
- Shipping Info

You create a model using the `intent` or `multilingual-intent` algorithm, and you send the text “what is the weather in los angeles?” for prediction.

Even though the intent of this text doesn’t match any of the intent labels in the model, the prediction response returns a high probability for one of the labels in the dataset. In this case, the model returns a high probability for Sales Opportunity.

```json
{
  "probabilities": [
    {
      "label": "Sales Opportunity",
      "probability": 0.9987062
    },
    {
      "label": "Shipping Info",
      "probability": 0.0008089547
    },
    {
      "label": "Order Change",
      "probability": 0.00046194126
    },
    {
      "label": "Billing",
      "probability": 0.000021637188
    },
    {
      "label": "Password Help",
      "probability": 0.0000012197639
    }
  ],
  "object": "predictresponse"
}
```

It would be great if the model could identify that the text doesn't fall into any of the labels. Now you can create a model that does.

Say that you use the same data to create a model but now you use the `multilingual-intent-ood` algorithm when you train the dataset and create the model. Then you send the text “what is the weather in los angeles?” for prediction.

The intent of the text doesn’t match any of the existing labels, so the prediction response returns an empty array, and looks like this JSON.

```json
{
  "probabilities": [],
  "object": "predictresponse"
}
```
