Closed srossi93 closed 1 month ago
This PR adds the possibility of adding tools in the class Doc to be used in the apply_chat_template function.
Doc
apply_chat_template
This PR is just a suggestion but it currently lacks any proper testing.
def prompt_fn(sample, task_name: str = None): return Doc( task_name=task_name, query=sample["question"], choices=[sample["exact_tool"]], gold_index=0, instruction="", tools=sample["tools"], # New )
Hi!
For the moment, we don't have any task which would require this new feature, and we avoid adding unused code to the code base. Is there a specific associated task you would want which would require this?
This PR adds the possibility of adding tools in the class
Doc
to be used in theapply_chat_template
function.This PR is just a suggestion but it currently lacks any proper testing.
Example usage