Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/algorithmicsuperintelligence/optillm
/ functions
Functions
1,129 in github.com/algorithmicsuperintelligence/optillm
⨍
Functions
1,129
◇
Types & classes
178
↳
Endpoints
25
↓ 1 callers
Function
extract_search_queries
Extract potential search queries from the input text
optillm/plugins/web_search_plugin.py:486
↓ 1 callers
Function
extract_solution_quality
Analyze the quality of an IMO solution based on mathematical rigor criteria
scripts/eval_imo25_benchmark.py:404
↓ 1 callers
Function
extract_solution_quality
Analyze the quality of a mathematical proof
scripts/eval_imobench_proof.py:168
↓ 1 callers
Method
extract_strategies_from_solutions
Extract reasoning strategies from all agent solutions
optillm/mars/strategy_network.py:78
↓ 1 callers
Function
extract_urls
(text: str)
optillm/plugins/readurls_plugin.py:11
↓ 1 callers
Method
finalize_research_report
Apply final polishing to the research report
optillm/plugins/deep_research/research_engine.py:1108
↓ 1 callers
Method
find_similar_examples
Find a strategy of the same problem type with examples similar to the query. Args: problem_type: The problem typ
optillm/plugins/spl/strategy.py:359
↓ 1 callers
Method
fix_incomplete_report
Attempt to fix an incomplete report by removing problematic sections and ensuring a coherent final document. This is
optillm/plugins/deep_research/research_engine.py:335
↓ 1 callers
Method
format_chat_prompt
Format the prompt according to model's chat template
optillm/inference.py:443
↓ 1 callers
Method
format_chat_prompt
Format the prompt according to model's chat template
optillm/inference.py:1475
↓ 1 callers
Function
format_deepconf_response
Format the DeepConf response with optional statistics. Args: answer: The final answer from weighted voting stats: Proces
optillm/deepconf/deepconf.py:90
↓ 1 callers
Function
format_question
Format a question for the benchmark dataset
scripts/gen_optillmbench.py:138
↓ 1 callers
Function
format_search_results
Format search results into readable text
optillm/plugins/web_search_plugin.py:546
↓ 1 callers
Method
from_dict
Create ServerConfig from a dictionary
optillm/plugins/mcp_plugin.py:150
↓ 1 callers
Function
generate_approaches
(system_prompt: str, initial_query: str, num_approach: int, client: Any, model: str, cepo_config: CepoConfig,
optillm/cepo/cepo.py:583
↓ 1 callers
Function
generate_completion
Generates a completion based on the provided system prompt and task. Parameters: system_prompt (str): The system prompt to guide the
optillm/cepo/cepo.py:338
↓ 1 callers
Function
generate_dataset
Generate the dataset and save it to a JSONL file.
scripts/gen_optillm_ground_truth_dataset.py:98
↓ 1 callers
Function
generate_dataset
Generate the dataset and save it to a JSONL file.
scripts/gen_optillm_dataset.py:78
↓ 1 callers
Method
generate_derived_observations
(self, problem: str, observations: List[str], num_new_observations: int = 2)
optillm/plansearch.py:61
↓ 1 callers
Function
generate_fixed_code
Ask LLM to fix the broken code.
optillm/plugins/coc_plugin.py:233
↓ 1 callers
Method
generate_high_level_principles
(self)
optillm/leap.py:169
↓ 1 callers
Method
generate_json
(self, *args, **kwargs)
tests/test_json_plugin.py:29
↓ 1 callers
Method
generate_json
Generate JSON based on the provided schema and prompt.
optillm/plugins/json_plugin.py:93
↓ 1 callers
Function
generate_llm_prompt
(prompt: str, wiki_links: List[str])
scripts/eval_frames_benchmark.py:33
↓ 1 callers
Method
generate_low_level_principles
(self, mistakes: List[Tuple[str, str, str, str]])
optillm/leap.py:133
↓ 1 callers
Method
generate_mistakes
(self, examples: List[Tuple[str, str]])
optillm/leap.py:99
↓ 1 callers
Function
generate_n_completions
Generates n completions for the Best of N step of CePO. Parameters: system_prompt (str): The system prompt to guide the model.
optillm/cepo/cepo.py:639
↓ 1 callers
Method
generate_observations
(self, problem: str, num_observations: int = 3)
optillm/plansearch.py:21
↓ 1 callers
Method
generate_preliminary_draft
Generate the preliminary draft (updatable skeleton) from LLM internal knowledge This serves as the initial state for the diffusion pr
optillm/plugins/deep_research/research_engine.py:612
↓ 1 callers
Function
generate_report
Generate a comprehensive report comparing all approaches.
scripts/eval_optillmbench.py:751
↓ 1 callers
Function
generate_response
Generate a response using the specified approach.
scripts/gen_optillm_ground_truth_dataset.py:39
↓ 1 callers
Function
generate_response
Generate a response using the specified approach.
scripts/gen_optillm_dataset.py:14
↓ 1 callers
Method
generate_response
(self, query: str, analysis: str, solver_result: Dict[str, Any])
optillm/z3_solver.py:217
↓ 1 callers
Method
generate_response_async
(self, prompt: str)
optillm/rstar.py:45
↓ 1 callers
Method
generate_responses
(self, system_prompt: str, user_prompt: str)
optillm/self_consistency.py:23
↓ 1 callers
Method
generate_solution
(self, problem: str, observations: List[str])
optillm/plansearch.py:105
↓ 1 callers
Method
generate_solution
Generate a solution for the given problem using reasoning API
optillm/mars/agent.py:43
↓ 1 callers
Function
generate_solution_async
Async wrapper for agent solution generation
optillm/mars/mars.py:333
↓ 1 callers
Function
generate_strategy
Generate a new problem-solving strategy using the LLM. Args: problem: The problem that needs a strategy problem_type: Th
optillm/plugins/spl/generation.py:92
↓ 1 callers
Method
generate_with_uncertainty_routing
Generate response using uncertainty-routed chain-of-thought. Args: prompt: The prompt to generate responses for
optillm/plugins/deepthink/uncertainty_cot.py:37
↓ 1 callers
Function
get_all_modules
Return all 39 reasoning modules.
optillm/plugins/deepthink/reasoning_modules.py:207
↓ 1 callers
Function
get_analyzer_engine
Get or create singleton AnalyzerEngine instance.
optillm/plugins/privacy_plugin.py:103
↓ 1 callers
Function
get_anonymizer_engine
Get or create singleton AnonymizerEngine instance.
optillm/plugins/privacy_plugin.py:113
↓ 1 callers
Method
get_approach_config
Get configuration for specific approach
scripts/eval_simpleqa_benchmark.py:224
↓ 1 callers
Method
get_average_trace_confidence
Calculate average confidence across all tokens in the trace. Returns: Average confidence value
optillm/deepconf/confidence.py:125
↓ 1 callers
Method
get_best_solution
Get the best solution based on verification score and confidence
optillm/mars/workspace.py:109
↓ 1 callers
Method
get_bottom_10_percent_confidence
Calculate average confidence of bottom 10% groups. Returns: Bottom 10% group confidence
optillm/deepconf/confidence.py:136
↓ 1 callers
Method
get_cached_response
Get cached response with fuzzy matching
optillm/inference.py:757
↓ 1 callers
Method
get_complexity_with_confidence
Get the complexity label and confidence score. Args: text: The query text Returns:
optillm/autothink/classifier.py:141
↓ 1 callers
Function
get_config_path
()
optillm/server.py:342
↓ 1 callers
Function
get_deepconf_info
Get information about the DeepConf implementation. Returns: Dictionary with implementation details
optillm/deepconf/deepconf.py:166
↓ 1 callers
Function
get_device
()
optillm/cot_decoding.py:6
↓ 1 callers
Method
get_device
Get the appropriate device (mps, cuda, or cpu).
optillm/plugins/json_plugin.py:16
↓ 1 callers
Function
get_effort_profile
Get reasoning effort profile based on specified level and max tokens. Args: reasoning_effort: 'low', 'medium', or 'high' max_
optillm/inference.py:2159
↓ 1 callers
Function
get_last_processed_index
(results: List[Dict])
scripts/eval_frames_benchmark.py:28
↓ 1 callers
Function
get_llm_response
Get response from the LLM for a given problem. Args: problem (str): The problem text model (str): The model identifier
scripts/eval_math500_benchmark.py:677
↓ 1 callers
Function
get_llm_response
Get response from the LLM for a mathematical problem
scripts/eval_imobench_answer.py:161
↓ 1 callers
Function
get_llm_response
Get response from the LLM for an IMO problem with extended timeout for complex reasoning
scripts/eval_imo25_benchmark.py:479
↓ 1 callers
Function
get_llm_response
Get response from the LLM for a proof problem
scripts/eval_imobench_proof.py:219
↓ 1 callers
Function
get_llm_response
(prompt: str, model: str)
scripts/eval_frames_benchmark.py:36
↓ 1 callers
Function
get_llm_response
Get response from the LLM for a given problem. If multiple choices are returned, formats them as attempt dictionaries. Args:
scripts/eval_aime_benchmark.py:288
↓ 1 callers
Method
get_lowest_group_confidence
Get the minimum confidence across all groups. Returns: Lowest group confidence
optillm/deepconf/confidence.py:152
↓ 1 callers
Function
get_module_descriptions
Get just the descriptions for prompting.
optillm/plugins/deepthink/reasoning_modules.py:232
↓ 1 callers
Method
get_next_strategy_id
Generate a unique ID for a new strategy.
optillm/plugins/spl/strategy.py:413
↓ 1 callers
Method
get_optimal_device
(self, model_size: int = 0)
optillm/inference.py:972
↓ 1 callers
Method
get_optimal_temperature
Calculate optimal temperature based on prompt characteristics
optillm/inference.py:802
↓ 1 callers
Method
get_optimized_generation_config
Get optimized generation config
optillm/inference.py:1271
↓ 1 callers
Method
get_or_create_session
Get an existing session or create a new one for the given session ID.
optillm/plugins/deep_research/session_state.py:21
↓ 1 callers
Method
get_or_load_adapter
Get or load adapter with enhanced caching.
optillm/inference.py:888
↓ 1 callers
Method
get_pipeline
Get inference pipeline - automatically chooses MLX or PyTorch based on model
optillm/inference.py:1755
↓ 1 callers
Method
get_relevant
(self, query: str, n: int = 10)
optillm/plugins/memory_plugin.py:23
↓ 1 callers
Function
get_session_manager
Get or create a browser session for the given session ID.
optillm/plugins/deep_research/session_state.py:102
↓ 1 callers
Method
get_steering_strength
Get the steering strength for a specific pattern. Args: pattern: The reasoning pattern Retu
optillm/autothink/steering.py:218
↓ 1 callers
Method
get_steering_vector
Get the most appropriate steering vector for a context. Args: context: The current generation context.
optillm/autothink/steering.py:253
↓ 1 callers
Method
get_strategy_insights_summary
Get summary of strategy network insights
optillm/mars/strategy_network.py:565
↓ 1 callers
Method
get_summary
Get a summary of the workspace state
optillm/mars/workspace.py:175
↓ 1 callers
Method
get_synthesis_input
Prepare input data for solution synthesis
optillm/mars/workspace.py:137
↓ 1 callers
Method
get_token_budget
Get token budget based on complexity. Args: complexity: Complexity label (HIGH or LOW) Retu
optillm/autothink/processor.py:166
↓ 1 callers
Method
grade_response
Grade response using SimpleQA methodology
scripts/eval_simpleqa_benchmark.py:290
↓ 1 callers
Function
has_conversation_tags
(text)
optillm/server.py:638
↓ 1 callers
Function
imo25_verify_solution
Two-stage verification system from IMO25 repository: Stage 1: Detailed verification using comprehensive IMO grader prompt Stage 2: Simple
scripts/eval_imo25_benchmark.py:207
↓ 1 callers
Method
implement_solution
(self, problem: str, solution: str)
optillm/plansearch.py:146
↓ 1 callers
Method
improve_solution
Improve a solution based on verification feedback
optillm/mars/agent.py:227
↓ 1 callers
Method
increment_query_count
Increment the total query count.
optillm/plugins/spl/strategy.py:420
↓ 1 callers
Function
inference
(model, tokenizer, prompt, effort_levels)
scripts/train_optillm_classifier.py:218
↓ 1 callers
Function
install_steering_hooks
Install steering hooks on a model. Args: model: The model to install hooks on manager: The steering vector manager
optillm/autothink/steering.py:838
↓ 1 callers
Function
is_correct_response
Check if response matches any of the target answers.
scripts/gen_optillm_ground_truth_dataset.py:34
↓ 1 callers
Function
is_numeric_only_response
Check if the response is just a numeric value, possibly with whitespace and newlines. Args: response: The response text to check
scripts/eval_optillmbench.py:187
↓ 1 callers
Method
is_thought_switch
Check if adding this token creates a thought switch sequence.
optillm/thinkdeeper.py:53
↓ 1 callers
Method
is_thought_switch
Check if adding this token creates a thought switch sequence. Args: token: Token ID to check
optillm/autothink/processor.py:187
↓ 1 callers
Method
iterative_improvement_parallel
Run iterative improvement on solutions that failed verification with parallel execution
optillm/mars/verifier.py:247
↓ 1 callers
Method
limit_strategies_per_type
Limit the number of strategies per problem type to the specified maximum in the database. This controls storage limit, not the number
optillm/plugins/spl/strategy.py:516
↓ 1 callers
Function
llm_call
Call the LLM with retries on transient errors. Makes a chat completion request to the given client and extracts the response. Retries up
optillm/cepo/cepo.py:210
↓ 1 callers
Function
load_2024_dataset
Load the 2024 dataset of problems. Returns: list[dict]: The dataset of problems.
scripts/eval_aime_benchmark.py:51
↓ 1 callers
Function
load_2025_dataset
Load the 2025 dataset of problems from math-ai/aime25. Returns: list[dict]: The dataset of problems.
scripts/eval_aime_benchmark.py:64
↓ 1 callers
Method
load_adapter
Load a LoRA adapter with enhanced caching
optillm/inference.py:1147
↓ 1 callers
Function
load_and_preprocess_data
(tokenizer)
scripts/train_optillm_classifier.py:59
↓ 1 callers
Method
load_base_model
(self, model_id: str, quantize: bool = True)
optillm/inference.py:1024
↓ 1 callers
Method
load_dataset
Load steering vectors from the HuggingFace dataset.
optillm/autothink/steering.py:68
↓ 1 callers
Function
load_dataset_by_year
Load dataset by year (2024 or 2025). Returns: list[dict]: The dataset of problems.
scripts/eval_aime_benchmark.py:77
← previous
next →
401–500 of 1,129, ranked by callers