What to Do When “Is Email” Eval Fails
Review the input text to identify formatting issues. Common problems may include:- Missing the ”@” symbol.
- Incorrect domain names.
- Invalid characters.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Evaluates whether the input text is a valid email address. It checks if the text follows standard email formatting rules, including the presence of an @ symbol, a domain name, and a valid top-level domain.
result = evaluator.evaluate(
eval_templates="is_email",
inputs={
"text": "john.doe@example.com"
},
model_name="turing_flash"
)
print(result.eval_results[0].output)
print(result.eval_results[0].reason)
import { Evaluator, Templates } from "@future-agi/ai-evaluation";
const evaluator = new Evaluator();
const result = await evaluator.evaluate(
"is_email",
{
text: "john.doe@example.com"
},
{
modelName: "turing_flash",
}
);
console.log(result);
| Input | |||
|---|---|---|---|
| Required Input | Type | Description | |
text | string | The content to check for email validity. |
| Output | ||
|---|---|---|
| Field | Description | |
| Result | Returns Passed if the text is a valid email address, or Failed if it’s not. | |
| Reason | Provides a detailed explanation of the evaluation. |
Was this page helpful?