How to use `function_call` to find the entity information that best matches the full list of fund names and index names from the text entered by the user

I think it an correct approach, that you limit inputs to an enum. But the problem is gpt4 is not respecting the limitation :thinking: Maybe translate to english first, where it has more experience?

Or separate out the calls, one call for the index, and then a separate call for the fund. Actually, not every fund is on every index, right?