mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 11:39:18 +00:00
langchain[patch]: example_selector
import fix (#20676)
Cleaned up updated imports
This commit is contained in:
@@ -27,6 +27,9 @@ from multiple components. Prompt classes and functions make constructing
|
||||
ChatPromptValue
|
||||
|
||||
""" # noqa: E501
|
||||
from langchain_community.example_selectors.ngram_overlap import (
|
||||
NGramOverlapExampleSelector,
|
||||
)
|
||||
from langchain_core.example_selectors import (
|
||||
LengthBasedExampleSelector,
|
||||
MaxMarginalRelevanceExampleSelector,
|
||||
@@ -50,7 +53,6 @@ from langchain_core.prompts import (
|
||||
load_prompt,
|
||||
)
|
||||
|
||||
from langchain.prompts.example_selector import NGramOverlapExampleSelector
|
||||
from langchain.prompts.prompt import Prompt
|
||||
|
||||
__all__ = [
|
||||
|
@@ -1,4 +1,7 @@
|
||||
"""Logic for selecting examples to include in prompts."""
|
||||
from langchain_community.example_selectors.ngram_overlap import (
|
||||
NGramOverlapExampleSelector,
|
||||
)
|
||||
from langchain_core.example_selectors.length_based import (
|
||||
LengthBasedExampleSelector,
|
||||
)
|
||||
@@ -7,10 +10,6 @@ from langchain_core.example_selectors.semantic_similarity import (
|
||||
SemanticSimilarityExampleSelector,
|
||||
)
|
||||
|
||||
from langchain.prompts.example_selector.ngram_overlap import (
|
||||
NGramOverlapExampleSelector,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"LengthBasedExampleSelector",
|
||||
"MaxMarginalRelevanceExampleSelector",
|
||||
|
Reference in New Issue
Block a user