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 am attempting to use this library to generate tabular synthetic data. Any time I try to instantiate the SyntheticDataGenerator class from tabular_synthetic_data (either through the create_openai_data_generator function or directly), I get an error like the below:
PydanticUserError: SyntheticDataGenerator is not fully defined; you should define BaseCache, then call SyntheticDataGenerator.model_rebuild().
I got it to work by creating a dev install of langchain_experimental and editing line 27 of tabular_synthetic_data/base.py in the SyntheticDataGenerator class
BEFORE: llm: Optional[BaseLanguageModel] = None
AFTER: llm: Optional[BaseChatModel] = None
I am not sure why this worked. BaseLanguageModel is the parent class of BaseChatModel.
I am attempting to use this library to generate tabular synthetic data. Any time I try to instantiate the SyntheticDataGenerator class from tabular_synthetic_data (either through the create_openai_data_generator function or directly), I get an error like the below:
versions (all installed via pip)
langchain_experimental: 0.3.3
langchain: 0.3.11
langchain_openai 0.2.12
langchain_core: 0.3.24
Here is simplified example code that causes the error:
The text was updated successfully, but these errors were encountered: