LlamaIndex Webinar: From Prompt to Schema Engineering with Pydantic (with @jxnlco)

preview_player
Показать описание

​Recent advancements in LLM APIs allow for rich, structured outputs beyond standard text completion APIs (e.g. the OpenAI Function Call API). With text completion APIs, developers needed to write unstructured natural language f-strings and finnicky output parsing to coerce the model to returning certain outputs. In this webinar we show how combining the OpenAI Function API with Pydantic allows users to easily extract a range of structured outputs enabling creative new application features.

Рекомендации по теме
Комментарии
Автор

Jason and llamaIndex and langchain and the open source community is awesome

DreamsAPI
Автор

Does Pydantic work for llama 2 models? I am rewriting my app to using llama2. The previous version uses OpenAI and function calling using pydantic to convert the output of the model into a "somewhat" complex JSON. Now I want to do the same using llama2 but, keep running into problems

MrKiranonutube