Used argilla-warehouse/python-seed-tools to sample tools.
Since some answers might not contain a valid JSON schema, ensure that you preprocess and validate the answer to check if it satisfies the query using the given tools. You can use the preprocessing code below:
import json
from datasets import Dataset, load_dataset
def validate_answers(sample):
if sample["answers"] is None:
return True
try:
tools = json.loads(sample["tools"])… See the full description on the dataset page:
https://huggingface.co/datasets/atasoglu/turkish-function-calling-20k.