-
Notifications
You must be signed in to change notification settings - Fork 36
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
PydanticUserError when instantiating SyntheticDataGenerator #24
Comments
I got it to work by creating a dev install of BEFORE: AFTER: I am not sure why this worked. BaseLanguageModel is the parent class of BaseChatModel. |
Hi, |
i got the same error from pydantic import BaseModel, Field os.environ['LANGCHAIN_TRACING_V2'] = "true" model = ChatOpenAI(model='gpt-3.5-turbo', temperature=0.8) class MedicalBilling(BaseModel): examples = [ prompt_template = FewShotPromptTemplate( |
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: