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