Typechat - Typescript is all you need?
July 21, 2023
Typechat is nifty new open source tool from Microsoft, which allows creating natural language interfaces using Typescript.
They basically told the AI - "convert natural language to an object which looks like a certain Typescript interface."
Then they can validate the output against that interface and re-prompt if it's wrong. This ensures reliability in the data structure at least, which is pretty great!
So, if strongly, statically type your interface, you can get a reliable answer from the LLM. Now only if this can be extended to check against external sources 🙃