Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StructuredLLM examples have ValidationError #47

Open
averikitsch opened this issue Nov 19, 2024 · 1 comment
Open

StructuredLLM examples have ValidationError #47

averikitsch opened this issue Nov 19, 2024 · 1 comment

Comments

@averikitsch
Copy link

All tutorials that use StructuredLLM or llm.as_structured_llm() are not currently running. They experience the following error:

ValidationError: 1 validation error for StructuredLLM
output_cls
  Input should be a subclass of BaseModel [type=is_subclass_of, input_value=<class '__main__.ReportOutput'>, input_type=ModelMetaclass]
    For further information visit https://errors.pydantic.dev/2.9/v/is_subclass_of

These tutorials are also missing a pip installation step. The tutorials only installs the observability dependecy "llama-index-callbacks-arize-phoenix".

@logan-markewich
Copy link
Contributor

They work fine for me with latest versions of things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants