You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched both the documentation and discord for an answer.
Question
Hi, I am trying to get a SchemaLLMPathExtractor set up but I keep running into an assertion error with the kg_schema. The issue was actually the kg_schema is set to ```
'1 validation error for KGSchema
triplets
Field required [type=missing, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.9/v/missing'
is there anything I can do to fix this error?
I am using AWS Bedrock Claude 3 Sonnet.
I tried with a simpler schema and it works fine.
The text was updated successfully, but these errors were encountered:
To fix the assertion error related to the missing 'triplets' field in the kg_schema, ensure that the kg_schema_cls is correctly initialized with the triplets field. The triplets field should be a list of triplet_cls instances. Here's a snippet of the relevant code setup:
Make sure that when you instantiate kg_schema_cls, you provide a list of triplets that conform to the triplet_cls model. This should resolve the assertion error by ensuring the triplets field is present and correctly formatted [1].
Question Validation
Question
Hi, I am trying to get a SchemaLLMPathExtractor set up but I keep running into an assertion error with the kg_schema. The issue was actually the kg_schema is set to ```
'1 validation error for KGSchema
triplets
Field required [type=missing, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.9/v/missing'
The text was updated successfully, but these errors were encountered: