Anthropic function calling for structured LLM outputs

Поділитися
Вставка
  • Опубліковано 3 кві 2024
  • Anthropic recently added tool use to their API, which is extremely useful for structured outputs. Here we explain how tool use works, how to use it with llm.with_structured_output(...) in LangChain, and how to design fallbacks to catch errors in the validation / parsing of structured output according to a user-defined schema.
    Notebook:
    github.com/langchain-ai/langc...

КОМЕНТАРІ • 8

  • @cemerdem3136
    @cemerdem3136 2 місяці тому +4

    When can we use Claude 3 models with langchain agents like gpt?

  • @jay-dj4ui
    @jay-dj4ui 2 місяці тому

    so the key of this clip is the fall_back chain check part? which is nice to let it retry and get the result we need?

  • @bharat2277
    @bharat2277 2 місяці тому

    Hey guys do you have idea about how to load custom llm model and custom chat model into langchain , where my model are hosted on ec2. I have gone through custom llm chat and model those topic were not much helpfull

  • @SaudBako
    @SaudBako 27 днів тому

    I forgot how much computer people like watch blocks and blocks of text.

  • @ArcheNovalis
    @ArcheNovalis 2 місяці тому

    Looks like it can output improper syntax. A better solution is to use outlines-dev so that it is impossible for the model to select tokens that would make it output improper syntax.

  • @ScottzPlaylists
    @ScottzPlaylists 2 місяці тому +1

    👎Claude API access is Paid. 👎
    Are there any Free API access LLMs, without running them local? ❓

    • @thngzys
      @thngzys 2 місяці тому

      Why should someone else pay for your use?

    • @ScottzPlaylists
      @ScottzPlaylists 2 місяці тому

      @@thngzys So much AI stuff is free, I don't know how they all manage to make money. I poor bloke an hope and ask though right❓