Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akumar2709/OVERTHINK_public
/ functions
Functions
42 in github.com/akumar2709/OVERTHINK_public
⨍
Functions
42
◇
Types & classes
0
↓ 5 callers
Function
_get_env
(name: str)
utils.py:58
↓ 3 callers
Function
build_attack_contexts
(question, context, samples)
compile_datasets.py:45
↓ 2 callers
Function
call_provider
(provider, prompt, model)
context_agnostic_hf.py:58
↓ 2 callers
Function
extract_reasoning_tokens
Extract reasoning token count from response.
context_agnostic_hf.py:268
↓ 2 callers
Function
get_score
( sample, processed_samples, sample_index=3, score_model="o3-mini", repeats=3, fetch_u
icl_evolve.py:214
↓ 2 callers
Function
run_command
(user_prompt, system_prompt=None, model="o3-mini", max_retries=5, base_delay=1.0)
icl_evolve.py:119
↓ 2 callers
Function
top_p_sample
(text_to_score, top_p=0.9, k=5)
icl_evolve.py:169
↓ 1 callers
Function
_load_env
()
utils.py:46
↓ 1 callers
Function
_manual_load_env
(env_path: Path)
utils.py:29
↓ 1 callers
Function
anthropic_run_command_sonnet_reasoning
(user_prompt, system_prompt=None)
utils.py:104
↓ 1 callers
Function
compile_freshqa
(freshqa_csv, samples, output_path, limit, fetch_urls)
compile_datasets.py:53
↓ 1 callers
Function
compile_musr
(samples, output_dir, limit)
compile_datasets.py:104
↓ 1 callers
Function
compile_squad
(samples, output_path, limit)
compile_datasets.py:85
↓ 1 callers
Function
count_tokens
Count tokens in text using tiktoken.
context_agnostic_hf.py:128
↓ 1 callers
Function
debug_response_structure
Helper function to debug response structure.
context_agnostic_hf.py:235
↓ 1 callers
Function
ensure_tokenizer_cache_dirs
()
context_agnostic_hf.py:80
↓ 1 callers
Function
extract_thinking_text
Extract thinking/reasoning text from various response formats.
context_agnostic_hf.py:141
↓ 1 callers
Function
fetch_wikipedia_article
(url)
compile_datasets.py:25
↓ 1 callers
Function
fetch_wikipedia_article
(url)
icl_evolve.py:92
↓ 1 callers
Function
format_token_average
(total, count)
context_agnostic_hf.py:328
↓ 1 callers
Function
get_attack_columns
(df)
context_agnostic_hf.py:45
↓ 1 callers
Function
get_env
(name)
icl_evolve.py:84
↓ 1 callers
Function
get_reasoning_tokens
(response)
icl_evolve.py:159
↓ 1 callers
Function
get_token_encoder
()
context_agnostic_hf.py:92
↓ 1 callers
Function
icl_evolve_verbalized_sampling
( handwritten_examples, system_prompt, processed_samples, top_p=0.6, k=5, epochs=15,
icl_evolve.py:255
↓ 1 callers
Function
load_env
()
icl_evolve.py:63
↓ 1 callers
Function
load_processed_samples
(freshqa_csv)
icl_evolve.py:203
↓ 1 callers
Function
main
()
compile_datasets.py:134
↓ 1 callers
Function
main
()
context_agnostic_hf.py:431
↓ 1 callers
Function
main
()
icl_evolve.py:321
↓ 1 callers
Function
print_token_averages
(token_sums, token_counts)
context_agnostic_hf.py:334
↓ 1 callers
Function
resolve_split
(split_name)
context_agnostic_hf.py:72
↓ 1 callers
Function
run_command
(prompt, model)
utils.py:151
↓ 1 callers
Function
run_command_firework
(prompt, model="deepseek_firework")
utils.py:65
↓ 1 callers
Function
run_command_gemini
(prompt)
utils.py:93
↓ 1 callers
Function
run_command_mistral
(prompt, model="magistral-small-2509")
utils.py:81
↓ 1 callers
Function
run_experiment
( df, provider, model, output_file, attack_cols, start_index=0, limit=None, )
context_agnostic_hf.py:342
↓ 1 callers
Function
sample_extraction
(text)
icl_evolve.py:198
↓ 1 callers
Function
save_outputs
(sample_score, best_scores, csv_path, plot_path)
icl_evolve.py:305
Function
build_attack_contexts
(question, context, samples)
icl_evolve.py:111
Function
build_original_prompt
(question, source)
context_agnostic_hf.py:38
Function
sort_key
(col)
context_agnostic_hf.py:48