4 ms·
depending on how advanced this AI will be, it could learn from a few samples and the API docs, possibly itself designed to be optimally consumed by AI. If I kne
by Nathanba 4y ago
depending on how advanced this AI will be, it could learn from a few samples and the API docs, possibly itself designed to be optimally consumed by AI. If I knew that AI would consume my custom programming language docs then I would make sure that each API is used once in some kind of sample code so it can give answers to everything. Plus, that's a sensible thing to do anyway.
- reducesuffering 4y agoEven better (or worse), tell your AI/LLM to output sample uses of the project to be training data for other AI/LLM. Probably ends up being a knowledge transfer protocol.
- devmunchies 4y agoYeah I was actually thinking that we may see API maintainers publish a lot more sample code with lots of different scenarios for AI to train on. Similar to how JavaScript libs publish a Typescript type def file for people using Typescript.
- larve 4y agoSeeding gpt (or using copilot) on snippets of your code is extremely effective. I often paste a function of my codebase before asking code questions, as in: “here is an example of a product class, generate the swagger spec for a user crud api” and it will infer how and even what kind of fields our user class has, without having seen it.