NC Bench
Overview
About
Tests
Categories
Models
Vendors
Compare
Run: 2026-04-24-01KQ03PAM998T3T20K9KFT80XX
Run Details
Model:
Z.AI GLM 4.5 Air
Test:
Data extraction
Scenario:
All valid emails
Duration:
2m 2s
Cost:
$0.005063
Provider:
Z.AI
Evaluation summary
Score
Evaluator
Details Link
Pass
Contains a list of texts
(details)
Model input
User/Human
Extract all valid email addresses from the text. Return them in a comma-separated list without spaces. Contact information: 1. John Doe - john.doe@example.com 2. Jane Smith - jane@smith-family.net 3. support@company.co.uk 4. info@subdomain.example.org 5. Invalid email: not.an.email.com 6. Another invalid: @missing-username.com
Model response
Messages
Meta
AI
To extract all valid email addresses from the given text, we can use a regular expression that matches standard email patterns. The valid emails must contain: - A local part (before `@`) with letters, digits, dots, hyphens, or underscores. - An `@` symbol. - A domain part (after `@`) with letters, digits, dots, or hyphens, followed by a dot and at least two letters (e.g., `.com`, `.co.uk`). The invalid examples (`not.an.email.com` and `@missing-username.com`) are excluded because they lack an `@` symbol or have an empty local part. **Solution Code:** ```python import re text = """Contact information: 1. John Doe -
john.doe@example.com
2. Jane Smith -
jane@smith-family.net
3.
support@company.co.uk
4.
info@subdomain.example.org
5. Invalid email: not.an.email.com 6. Another invalid: @missing-username.com""" pattern = r'\b[\w\.-]+@[\w\.-]+\.[a-zA-Z]{2,}\b' emails = re.findall(pattern, text) result = ",".join(emails) ``` **Output:** ```
john.doe@example.com
,
jane@smith-family.net
,
support@company.co.uk
,
info@subdomain.example.org
``` **Explanation:** 1. **Regular Expression:** `r'\b[\w\.-]+@[\w\.-]+\.[a-zA-Z]{2,}\b'`: - `\b`: Word boundary to ensure the email is a standalone word. - `[\w\.-]+`: Local part (letters, digits, underscores, dots, hyphens). - `@`: Literal `@` symbol. - `[\w\.-]+`: Domain part (letters, digits, dots, hyphens). - `\.[a-zA-Z]{2,}`: Top-level domain (e.g., `.com`, `.org`) with at least two letters. - `\b`: Word boundary at the end. 2. **Extraction:** `re.findall` extracts all matches from the text, ignoring invalid entries. 3. **Formatting:** `",".join(emails)` combines the emails into a comma-separated string without spaces. This approach efficiently captures the four valid emails while excluding the invalid ones.
created_at
"2026-04-24T16:03:16.243Z"
4/24/2026, 4:03:16 PM
model
"z-ai/glm-4.5-air"
app_id
182717
external_user
(null)
streamed
true
cancelled
false
latency
1981
moderation_latency
(null)
generation_time
121563
tokens_prompt
89
tokens_completion
4676
native_tokens_prompt
86
native_tokens_completion
4588
native_tokens_completion_images
(null)
native_tokens_reasoning
4198
native_tokens_cached
4
num_media_prompt
(null)
num_input_audio_prompt
(null)
num_media_completion
0
num_search_results
(null)
num_fetches
(null)
web_search_engine
(null)
origin
"https://ncbench.com/"
is_byok
false
finish_reason
"stop"
native_finish_reason
"stop"
usage
0.00506332
router
(null)
provider_responses
0
endpoint_id
"90fc9bb3-01bb-419f-bb58-dea60a80d201"
is_byok
false
latency
93
model_permaslug
"z-ai/glm-4.5-air"
provider_name
"Novita"
status
429
1
endpoint_id
"c8760514-8a81-4a73-ae2c-be4942ba93f3"
id
"202604250003167d3e12829d654821"
is_byok
false
latency
1981
model_permaslug
"z-ai/glm-4.5-air"
provider_name
"Z.AI"
status
200
user_agent
"langchainjs-openai/1.0.0 ((node/v24.14.1; linux; x64))"
http_referer
(null)
request_id
"req-1777046596-wsaadsoXlWTqnAKM4EjA"
session_id
(null)
api_type
"completions"
id
"gen-1777046596-UBrBpRZr5fMXeccs2NpJ"
upstream_id
"202604250003167d3e12829d654821"
total_cost
0.00506332
cache_discount
6.8e-7
upstream_inference_cost
0
provider_name
"Z.AI"
response_cache_source_id
(null)
Evaluation details
Result
Evaluator
Details
Meta Data
Pass
Contains a list of texts
john.doe@example.com jane@smith-family.net support@company.co.uk info@subdomain.example.org
john.doe@example.com
true
jane@smith-family.net
true
support@company.co.uk
true
info@subdomain.example.org
true