From 777b33b873b50339659963f2b5aba17b69412f5a Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Wed, 20 Sep 2023 23:44:17 -0700 Subject: [PATCH] fix experimental imports (#10875) --- .../langchain_experimental/synthetic_data/__init__.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/libs/experimental/langchain_experimental/synthetic_data/__init__.py b/libs/experimental/langchain_experimental/synthetic_data/__init__.py index ddad227b21107..de07dfc0a7be3 100644 --- a/libs/experimental/langchain_experimental/synthetic_data/__init__.py +++ b/libs/experimental/langchain_experimental/synthetic_data/__init__.py @@ -1,14 +1,12 @@ -from typing import TYPE_CHECKING, Any, Dict, List, Optional +from typing import Any, Dict, List, Optional +from langchain.chains.base import Chain from langchain.chains.llm import LLMChain +from langchain.prompts import PromptTemplate +from langchain.schema.language_model import BaseLanguageModel from langchain_experimental.synthetic_data.prompts import SENTENCE_PROMPT -if TYPE_CHECKING: - from langchain.chains.base import Chain - from langchain.prompts import PromptTemplate - from langchain.schema.language_model import BaseLanguageModel - def create_data_generation_chain( llm: BaseLanguageModel,