Closed simonw closed 3 months ago
My worry about this feature is that it can really increase the size of the context, plus I'm not yet convinced I'm sending examples in the right way - can I do better than nested JSON like this? Something more YAML-ish would probably work better, maybe:
examples:
users:
type: ["User", "Organization", "Bot"]
Or even:
examples:
users.type:
- User
- Organization
- Bot
As always, the challenge here is evals - especially since this plugin works against multiple models. Which of these patterns works best? That's a really hard experiment to design.
Sending examples for every table in the schema is wasteful if we have an idea of which tables we are going to use. A couple of options:
I'm going to land the inefficient version of this for now.
Demo:
It knew to query for
type = 'Bot'
because the examples included this: