| create_eval_criterion_prompt |
Ran ran; our contract draft was wrong, not the code |
efficient-deep-research/efficient-deep-research/utils/response_quarity_evaluators.py code served (permissive licence) · get_code("edec44a394d048f7") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# The function takes three parameters:
# 1. eval_criteria - a string key from the criteria_to_description dict
# 2. question - a string
# 3. answer - a string
ARGS = {
'eval_criteria': 'Clarity',
'question': 'What are the main factors affecting climate change?',
'answer': 'Climate change is driven by multiple interconnected factors. First, greenhouse gas emissions from fossil fuel combustion increase atmospheric CO2 concentrations, trapping heat. Second, deforestation reduces carbon sinks, exacerbating the problem. Third, industrial agriculture contributes methane emissions. Finally, ocean acidification creates feedback loops that amplify warming effects.'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| create_kpr_prompt |
Ran ran; our contract draft was wrong, not the code |
efficient-deep-research/efficient-deep-research/utils/response_quarity_evaluators.py code served (permissive licence) · get_code("774ec94f99dd5b73") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# Construct valid arguments for create_kpr_prompt
ARGS = {
"key_point": "The patient showed significant improvement in blood pressure readings over the treatment period.",
"answer": "The clinical report documents a 15% reduction in systolic blood pressure after 8 weeks of medication therapy. The patient's diastolic readings also improved from baseline measurements."
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| detect_variant_markers |
Ran ran, violated the contract we drafted |
efficient-deep-research/efficient-deep-research/utils/response_format_validators.py code served (permissive licence) · get_code("17f421ee9a6029c3") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import re
def extract_incorrect_markers(input_string):
"""
Extract incorrect markers from the input string. Correct markers are in the form of <|keyword|>.
Args:
input_string (str): Input string.
Returns:
List[str]: List of incorrect markers found in the input string.
"""
standard_keywords = ['begin_search_query', 'end_search_query', 'begin_search_result', 'end_search_result']
pattern = re.compile('(' + '|'.join(map(re.escape, standard_keywords)) + ')')
incorrect_markers = []
for match in pattern.finditer(input_string):
keyword = match.group()
start, end = (match.start(), match.end())
prefix_ok = start >= 2 and input_string[start - 2:start] == '<|'
suffix_ok = end + 2 <= len(input_string) and input_string[end:end + 2] == '|>'
if not (prefix_ok and suffix_ok):
keyword = input_string[start - 2:end + 2]
incorrect_markers.append(keyword)
return incorrect_markers
def detect_variant_markers(input_string):
"""
Detect whether variant forms of markers exist in the input string.
Args:
input_string (str): Input string.
Returns:
bool: Whether variant markers exist or think tags are used excessively. Returns True if issues are detected, otherwise False.
"""
variant_markers = extract_incorrect_markers(input_string)
think_count = input_string.count('</think>')
has_think_issue = think_count > 2
return len(variant_markers) > 0 or has_think_issue
# Test case 1: string with correct markers (should return False)
test_string_1 = "Here is <|begin_search_query|>my query<|end_search_query|> and result <|begin_search_result|>data<|end_search_result|>"
# Test case 2: string with incorrect markers (should return True)
test_string_2 = "Here is begin_search_query my query end_search_query and result"
# Test case 3: string with excessive think tags (should return True)
test_string_3 = "Text </think> more text </think> another </think> final </think>"
# Test case 4: empty string (should return False)
test_string_4 = ""
ARGS = {
"input_string": test_string_1
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| evaluate_with_openai_judge |
Ran ran on a synthesized input |
efficient-deep-research/efficient-deep-research/utils/response_quarity_evaluators.py code served (permissive licence) · get_code("8ef4a4fb26ce1a8e") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned coroutine. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import asyncio
from typing import Any
from pydantic import BaseModel, Field
# Create a minimal Pydantic schema class for the response format
class JudgeResponse(BaseModel):
decision: str = Field(description="The evaluation decision")
reasoning: str = Field(description="The reasoning behind the decision")
# Create a mock AsyncAzureOpenAI client
class MockAsyncAzureOpenAI:
def __init__(self):
self.beta = self
self.chat = self
self.completions = self
async def parse(self, model: str, messages: list, response_format: Any):
# Return a mock response
class MockChoice:
def __init__(self):
self.message = MockMessage()
class MockMessage:
def __init__(self):
self.parsed = JudgeResponse(
decision="approved",
reasoning="The response meets all criteria"
)
class MockResponse:
def __init__(self):
self.choices = [MockChoice()]
return MockResponse()
# Set up the arguments dictionary
ARGS = {
'semaphore': asyncio.Semaphore(5),
'prompt': 'Please evaluate the following response: "This is a test response that needs evaluation."',
'schema_class': JudgeResponse,
'client': MockAsyncAzureOpenAI(),
'model': 'gpt-4-turbo'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- openai, pydantic, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| extract_incorrect_markers |
Ran ran; our contract draft was wrong, not the code |
efficient-deep-research/efficient-deep-research/utils/response_format_validators.py code served (permissive licence) · get_code("a33bf2a6288ef920") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import re
def extract_incorrect_markers(input_string):
"""
Extract incorrect markers from the input string. Correct markers are in the form of <|keyword|>.
Args:
input_string (str): Input string.
Returns:
List[str]: List of incorrect markers found in the input string.
"""
standard_keywords = ['begin_search_query', 'end_search_query', 'begin_search_result', 'end_search_result']
pattern = re.compile('(' + '|'.join(map(re.escape, standard_keywords)) + ')')
incorrect_markers = []
for match in pattern.finditer(input_string):
keyword = match.group()
start, end = (match.start(), match.end())
prefix_ok = start >= 2 and input_string[start - 2:start] == '<|'
suffix_ok = end + 2 <= len(input_string) and input_string[end:end + 2] == '|>'
if not (prefix_ok and suffix_ok):
keyword = input_string[start - 2:end + 2]
incorrect_markers.append(keyword)
return incorrect_markers
# Test case 1: String with correctly formatted markers
test_input_1 = "Search: <|begin_search_query|>test<|end_search_query|>"
# Test case 2: String with incorrectly formatted markers (missing prefix/suffix)
test_input_2 = "begin_search_query and end_search_result are here"
# Test case 3: String with mixed correct and incorrect markers
test_input_3 = "Start <|begin_search_query|> middle begin_search_result end <|end_search_query|>"
# Test case 4: String with malformed markers (partial delimiters)
test_input_4 = "This has <begin_search_query|> and |end_search_result|> markers"
ARGS = {
"input_string": test_input_3
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_qa_instruction |
Ran ran; our contract draft was wrong, not the code |
efficient-deep-research/efficient-deep-research/utils/prompts.py code served (permissive licence) · get_code("ba8397fba6f8b338") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
# Setup code for get_qa_instruction
ARGS = {
"MAX_SEARCH_LIMIT": 5,
"question": "What is the capital of France?",
"initial_search_result": "France is a country in Western Europe. The capital of France is Paris (#id001). Paris is known for the Eiffel Tower (#id002)."
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_data |
Ran ran; our contract draft was wrong, not the code |
efficient-deep-research/efficient-deep-research/generate_rollouts.py code served (permissive licence) · get_code("f7ee342a11b3b1e5") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import json
import tempfile
import os
# Create a temporary JSON file with sample data
temp_dir = tempfile.mkdtemp()
data_file = os.path.join(temp_dir, "test_data.json")
sample_data = [
{"id": 1, "text": "Hello world", "label": 0},
{"id": 2, "text": "Goodbye world", "label": 1},
{"id": 3, "text": "Test example", "label": 0}
]
with open(data_file, 'w', encoding='utf-8') as f:
json.dump(sample_data, f)
ARGS = {
"data_path": data_file
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| make_output_dir |
Ran ran; our contract draft was wrong, not the code |
efficient-deep-research/efficient-deep-research/generate_rollouts.py code served (permissive licence) · get_code("39bc9345b1792e76") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
import tempfile
# Create a temporary directory for testing
temp_base_dir = tempfile.mkdtemp()
ARGS = {
'output_dir_base': temp_base_dir,
'dataset_name': 'test_dataset',
'rollout_id': 42
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| validate_history |
Ran ran, violated the contract we drafted |
efficient-deep-research/efficient-deep-research/utils/response_format_validators.py code served (permissive licence) · get_code("790c8542de449abb") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
# Valid test case 1: Single search query
history_valid_1 = ['<|begin_search_query|>test query<|end_search_query|>']
# Valid test case 2: Multiple valid messages
history_valid_2 = [
'<|begin_search_query|>what is python<|end_search_query|>',
'<|begin_search_result|>Python is a programming language<|end_search_result|>'
]
# Valid test case 3: Think token at end only
history_valid_3 = [
'<|begin_search_query|>test<|end_search_query|>',
'<|begin_search_result|>result content<|end_search_result|>',
'Some response</think>'
]
# Valid test case 4: Just a search result
history_valid_4 = ['<|begin_search_result|>Some result<|end_search_result|>']
# Choose one valid history for the function call
valid_history = history_valid_2
ARGS = {
'history': valid_history
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| fetch_url |
Not yet run unverified (harvested, no recorded run) |
efficient-deep-research/efficient-deep-research/scrape_urls.py code served (permissive licence) · get_code("c312935554646703") How it ran |