NC Bench
Overview
About
Tests
Models
Model
Liquid: LFM 40B MoE
Test
Data extraction
Scenario
All valid emails
Run ID
2024-10-09-01J9SFVWH5YM83WPJ0P5XMF3GN
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
could be implemented in [Python 3] as: ```python import re # Sample text 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 to detect valid email addresses pattern = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Z|a-z]{2,}\b' # Using regex findall to find all valid email addresses valid_emails = re.findall(pattern, text) # If valid_emails is not None, join them into a string and return if valid_emails is not None: return ",".join(valid_emails) else: return "No valid email addresses found" ``` This would output `
john.doe@example.com
,
jane@smith-family.net
,
support@company.co.uk
,
info@subdomain.example.org
`.
id
"gen-1728506098-ox41c6UOHFn4rCvQzs1z"
upstream_id
"chat-6999fe9b59534185a53d8c047a54847a"
total_cost
0
cache_discount
(null)
created_at
"2024-10-09T20:35:05.113562+00:00"
Wednesday, October 9th, 2024 at 8:35:05 PM GMT+00:00
model
"liquid/lfm-40b"
app_id
182717
streamed
true
cancelled
false
provider_name
"Lambda"
latency
5032
moderation_latency
(null)
generation_time
1237
finish_reason
"stop"
tokens_prompt
88
tokens_completion
226
native_tokens_prompt
146
native_tokens_completion
239
native_tokens_reasoning
(null)
num_media_prompt
(null)
num_media_completion
(null)
origin
"https://ncbench.com/"
usage
0
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