flexeval.completions#
Completing conversations using LLMs.
Functions
|
|
|
Identify a completion function given the completion LLM configuration. |
|
|
|
- flexeval.completions.get_completion(turn: Turn, completion_llm: CompletionLlm)[source]#
- flexeval.completions.get_completion_function(completion_llm: CompletionLlm) Callable [source]#
Identify a completion function given the completion LLM configuration.
- Parameters:
completion_llm (CompletionLlm) – The description of the function to retrieve.
- Raises:
ValueError – If not found in
completion_functions
or in globals by function_name.- Returns:
The completion function.
- Return type:
Callable
- flexeval.completions.get_completions(eval_run: EvalRun, evalsetrun: EvalSetRun)[source]#