A Guide to JSON output with LLM prompts

preview_player
Показать описание
#openai #chatgpt #artificialintelligence #generativeai

Get JSON output with ChatGPT API and LLM prompts
Table of contents:
1. Why do we need JSON output from LLMs
2. Zeroshot JSON output with LLMs
3. Zeroshot JSON output with LLMs - using Template suggestion
4. Zeroshot JSON output with LLMs - using Python Type Hints or Typescript Types
5. Fewshot JSON output with LLMs
Рекомендации по теме
Комментарии
Автор

Two more tips to add here:
1. Question: Why didn't we use the JSONSchema structure? Is it strictly because of token usage?
2. Use JSON5 compatible parsing library as the most common output problems are trailing commas and single quote strings.

arpanmukherjee
Автор

Hi Ramsri, it was pretty close to what we did for one of our project. Awesome content.Keep shining.

donnilchopda
Автор

Thanks Please Keep Sharing Knowledge💕💘❤❤

faisalIqbal_AI
Автор

it's an awesome content : ) Thank you <3

krishnendudey
Автор

Very good demo! Thank you for sharing. Can you also please point to your Collab notebook link? Thanks

PoojaSingh-fdng