July 21, 2023, 4:02 a.m. | /u/sarmad-q

Machine Learning www.reddit.com

MSFT just open-sourced a library called TypeChat today, which allows you to use LLMs with TypeScript types to structure LLM responses into your TypeScript data structures -- essentially allowing you to have the LLM generate responses into the data types that your app understands.

Example from their docs:

https://preview.redd.it/108650s4s8db1.png?width=1682&format=png&auto=webp&s=0429eeb16bc5c28651ea908aee5824c3c9f395b4

Details: [https://microsoft.github.io/TypeChat/docs/introduction/](https://microsoft.github.io/TypeChat/docs/introduction/)

I can see a lot of powerful examples for this kind of pattern, including eventing and notifications based on generated data types.

Has anyone tried this library yet or …

app data example examples library llm llms machinelearning microsoft msft releases responses types typescript

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US