That’s what I would do.

For instance, say you are a car dealer and want a chatbot for customers, I would write those tools/functions matching your DB tables:

  1. Get the all the car makers name
  2. Get all the car models, optionally filtered by specific makers’ name.
  3. Get available car options, optionally filtered by car’s make and models.

With 3 tools/functions, the LLM will be able to answer to any queries related containing what car brands you are selling, what are the models and the available options.

Of course it has to be refined based on your use case.

1 Like