Gemini LLM JSON Mode: Generate Structured Output from LLM

Поделиться
HTML-код
  • Опубликовано: 9 июн 2024
  • Learn how to harness the power of Gemini LLM's JSON mode to generate consistent and structured JSON outputs from large language models (LLMs). This video demonstrates step-by-step how to configure Gemini LLM, optimize prompts, and ensure accurate JSON responses.
    GitHub: github.com/AIAnytime/Gemini-J...
    Join this channel to get access to perks:
    / @aianytime
    To further support the channel, you can contribute via the following methods:
    Bitcoin Address: 32zhmo5T9jvu8gJDGW3LTuKBM1KPMHoCsW
    UPI: sonu1000raw@ybl
    #gemini #ai #llm
  • НаукаНаука

Комментарии • 11

  • @talalmuzaffar
    @talalmuzaffar Месяц назад

    Thanks for this amazing video ✨❤I was actually looking for a solution to force JSON output and here you are with the video 😅

    • @adityashinde436
      @adityashinde436 Месяц назад

      return json.loads(response.text.strip('```json').strip('```').strip()) or
      return json.loads(response.text.strip(' ```json').strip('```').strip())
      use these to get output in json (make sure write "return the response in json format" in prompt)

  • @muhammedajmalg6426
    @muhammedajmalg6426 Месяц назад

    thanks for this video

  • @abdulqadar9580
    @abdulqadar9580 Месяц назад

    amazing

  • @velugucharan8096
    @velugucharan8096 Месяц назад

    Sir can you build one application based on this multi model llm with Gemini llm medical chat bot user want to upload the image based on the image the modal want to give some medicine and food diet please upload this video tomorrow sir

  • @josephroman2690
    @josephroman2690 Месяц назад

    your link has fall, could u update it

  • @davidvera4575
    @davidvera4575 Месяц назад

    sourcecode link is broken