validate_model
function for the custom llama index BaseModel
(in the deepest darkest depths of the codebase) is since recently somehow destroying perfectly good pydantic output responses (FYI: from a RetrieverQueryEngine
with a fairly complex output_cls
) at the eleventh hour. I can see that the output is there from the LLM before it hits the validation function, it even gets registered correctly in the event callback and i see the correct outputs in Arize phoenix. But the response
from the query engine is just a blank BaseModel
.few_shot
decorator that allows you to define examples which get injected into your function's docstring: https://github.com/SlapDrone/few-shotpip install few-shot
marvin
. next: adapt to work with the likes of OpenAIPydanticProgram
.