Can You Tell Me About StrictJson: How It Compares to DSPY Signatures & Predict

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.ค. 2024
  • JSON is a near universal format for data transfer on the internet. The LLMs like GPT-3.5 and 4 can provide output that match the JSON format. The key and values of the JSON output from the LLM is challenging to constraint. Libraries like StrictJSON and DSPy can help in controlling the output.
    Chapter Navigation:
    0:00 Intro
    0:25 JSON Background & Rules
    2:35 How JSON looks in Wild
    5:10 List of JSON Points
    6:15 Accessing Data in JSON
    7:50 Application of JSON
    9:30 Getting JSON W/o StrictJson
    12:10 Controlling Key Values using StrictJson
    13:00 Loading JSON String using JSON module
    16:11 Comparing Str Json & Dictionary
    18:33 Code Walkthrough of StrictJson
    19:20 Strict_json Syntax & Output Explanation
    21:30 Output Types of StrictJson
    24:30 When StrictJson Fails
    27:10 StrictJson Function Syntax Explanation
    28:20 Extracting Data from Text
    29:30 Breaking StrictJSON Output with Detailed Constraint
    32:15 Extracting parts of paragraph as JSON
    34:15 DSPy Intro
    35:05 DSPy Code Walkthrough
    35:30 JSON Output with Lesser Code
    36:30 Comparing DSPy & StrictJSON
    37:30 Testing Output in StrictJson
    38:25 Used DSPy & StrictJSON interchangeably
    39:15 Recap
    The data and the code is located at
    github.com/insightbuilder/pyt...
    I believe you will like this video, and subscribe to the channel. Further uploads related to Big Data, Large Language models and Artificial Intelligence will be shared to your TH-cam Dashboard Directly.
    The supporting playlists are
    The bard Project
    • Google Bard LLM : New ...
    Practical Projects Playlist
    • The Future is Here: La...
    Huggingface Playlist
    • Mastering NLP with Hug...
    Python Data Engineering Playlist
    • Learn to Data Engineer...
    Python Ecosystem of Libraries
    • Mastering the Python E...
    ChatGPT and AI Playlist
    • Learn about AI Languag...
    AWS and Python AWS Wrangler
    • Building a Powerful Da...
    Exploring the Realm of Generative AI: Hardware and Software Discussions
    • Exploring the Realm of...
    PS: Got a question or have a feedback on my content. Get in touch
    By leaving a Comment in the video
    topmate.io/insightbuilder?SocialProfile
    @mail insighthacker21@gmail.com
    @twitter Handle is @KQrios
    @medium / about
    @github github.com/Kamalabot
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 3

  • @johntanchongmin
    @johntanchongmin 3 หลายเดือนก่อน

    I'm the creator of StrictJSON, thanks for featuring StrictJSON!
    For the failure case of not an array type, it is because the prompt itself follows the JSON key quite closely. For case of array output, maybe just rename the key to "Array of models"
    Another way to rectify this is to give some examples in the prompt of how you want the output to be, so that the LLM can better match it.

    • @insightbuilder
      @insightbuilder  3 หลายเดือนก่อน +1

      Hi John, thanks for providing clarity on the failure case. I will rework as you have suggested. Keep up the great work.

  • @rossholland879
    @rossholland879 หลายเดือนก่อน

    Hi there.
    Do you have any videos about DSPy Tool Calling / Function calling React ?