I'm still not understanding a multi-step query. For example, let's say I have two resources:
nutrition.json - contains a list of ingredients and their micronutrient values (vitamin a, vitamin c, etc)
recipes.json - contains a list of of recipes (name, ingredients+amounts, yield)
I want the user to be able to ask something like "which recipes have the most vitamin c?"
I understand that this won't work in semantic search (knowledge docs, vector db) because there's no sorting in that format. I can write a tool function like def get_top_recipes_by_nutrient(nutrient, count=3):, but I'm not clear on how the model will formulate parameters. How does it choose to use "vitamin c", "vitamin_c", or even a pseudonym like "ascorbic acid"?
Suppose I add another layer of complexity with a third resource:
disease_treatment.json - contains a list of diseases and recommended nutrients for treatment
Now the user might ask: "What's a good soup for fighting a cold"? The model needs to find "common cold" in the disease_treatment data, then search for recipes that have a high concentration of one or more vitamins. This is a bit more abstract than a single tool function. Am I overcomplicating this? I would greatly appreciate some guidance.