StrictJSON (LLM Output Parser) Ask Me Anything #1

Subscribers:
5,330
Published on ● Video Link: https://www.youtube.com/watch?v=L4aytve5v1Q



Duration: 1:30:00
446 views
17


StrictJSON is a python package I created last year in order to parse LLM outputs in a structured format (JSON), with optional type checking!

How to use?

Simply type in a system prompt (what the LLM should do), user prompt (the input to the LLM), and the output_format (the JSON format which you want the output to be in).

It is configurable to use your own LLMs with the llm parameter, be it other APIs like Claude 3 Haiku, or local LLMs like Llama 3 70B. So far, performance has been reliable even for non-OpenAI LLMs.

Here, I show how to use StrictJSON for:
- Simple entity extraction, classification, summarisation
- Knowledge graph parsing and displaying
- Code generation and error correction
- Changing code based on user intent
- Type Checking
- Using your own LLM
- Chain of Thought
- Reflection
- Evaluate Math with Code
- Extract rule-based filters from user text
- Conditional Flow using Multiple Chains of StrictJSON

~~
Repo: https://github.com/tanchongmin/strictjson
Companion Notebook: https://github.com/tanchongmin/strictjson/blob/main/strictjson_AMA_30Apr2024.ipynb

~~

0:00 Introduction
2:17 Basic Stuff: Classification, Poem Extender
4:35 List/Array Output
5:47 Entity Extraction
12:40 Knowledge Graph Parser
13:52 Knowledge Graph Code Display
15:44 Code Error Correction
25:07 Changing Code Based on User Intent
28:53 Type Checking
37:36 Using your own LLM
47:07 Chain of Thought
52:17 TaskGen Agent Teaser
56:36 Paragraph Extractor
1:03:38 Reflection
1:12:27 Evaluate Math with Code
1:18:29 Extract rule-based filters from user text
1:21:25 Conditional Flow using Multiple Chains of StrictJSON

~~

AI and ML enthusiast. Likes to think about the essences behind breakthroughs of AI and explain it in a simple and relatable way. Also, I am an avid game creator.

Discord: https://discord.gg/bzp87AHJy5
LinkedIn: https://www.linkedin.com/in/chong-min-tan-94652288/
Online AI blog: https://delvingintotech.wordpress.com/
Twitter: https://twitter.com/johntanchongmin
Try out my games here: https://simmer.io/@chongmin




Other Videos By John Tan Chong Min


2024-07-30AriGraph: Learning Knowledge Graph World Models with Episodic Memory for LLM Agents
2024-07-23NeoPlanner - Continually Learning Planning Agent for Large Environments guided by LLMs
2024-07-17Intelligence = Sampling + Filtering
2024-07-12Michael Hodel: Reverse Engineering the Abstraction and Reasoning Corpus
2024-07-02TaskGen Conversational Class v2: JARVIS, Psychology Counsellor, Sherlock Holmes Shop Assistant
2024-06-04CodeAct: Code As Action Space of LLM Agents - Pros and Cons
2024-05-28TaskGen Conversation with Dynamic Memory - Math Quizbot, Escape Room Solver, Psychology Counsellor
2024-05-21Integrate ANY Python Function, CodeGen, CrewAI tool, LangChain tool with TaskGen! - v2.3.0
2024-05-11Empirical - Open Source LLM Evaluation UI
2024-05-07TaskGen Ask Me Anything #1
2024-04-29StrictJSON (LLM Output Parser) Ask Me Anything #1
2024-04-22Tutorial #14: Write latex papers with LLMs such as Llama 3!
2024-04-16SORA Deep Dive: Predict patches from text, images or video
2024-04-09OpenAI CLIP Embeddings: Walkthrough + Insights
2024-03-26TaskGen - LLM Agentic Framework that Does More, Talks Less: Shared Variables, Memory, Global Context
2024-03-18CRADLE (Part 2): An AI that can play Red Dead Dedemption 2. Reflection, Memory, Task-based Planning
2024-03-11CRADLE (Part 1) - AI that plays Red Dead Redemption 2. Towards General Computer Control and AGI
2024-03-05TaskGen - A Task-based Agentic Framework using StrictJSON at the core
2024-02-27SymbolicAI / ExtensityAI Paper Overview (Part 2) - Evaluation Benchmark Discussion!
2024-02-20SymbolicAI / ExtensityAI Paper Overview (Part 1) - Key Philosophy Behind the Design - Symbols
2024-02-13Embeddings Walkthrough (Part 2): Context-Dependent Embeddings, Shifting Embedding Space