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
chain = create_extraction_chain(llm, schema, encoder_or_encoder_class='json')
output = chain.predict_and_parse(text="please add 15 more units sold to 2023")['data']
printOutput(output)
Running this code block throws a TypeError : initial_value must be str or None, not dict.
I was able to get output in json format using:
chain.predict(text=text)["data"]
The text was updated successfully, but these errors were encountered:
Running this code block throws a TypeError : initial_value must be str or None, not dict.
I was able to get output in json format using:
The text was updated successfully, but these errors were encountered: