mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
cleanup
This commit is contained in:
parent
ca163f0ee6
commit
67dc1a9dd2
@ -15,6 +15,7 @@ from langchain.chains.rl_chain.base import (
|
||||
from langchain.chains.rl_chain.pick_best_chain import (
|
||||
PickBest,
|
||||
PickBestEvent,
|
||||
PickBestFeatureEmbedder,
|
||||
PickBestSelected,
|
||||
)
|
||||
|
||||
@ -37,6 +38,7 @@ __all__ = [
|
||||
"PickBest",
|
||||
"PickBestEvent",
|
||||
"PickBestSelected",
|
||||
"PickBestFeatureEmbedder",
|
||||
"Embed",
|
||||
"BasedOn",
|
||||
"ToSelectFrom",
|
||||
|
@ -60,9 +60,7 @@ class PickBestFeatureEmbedder(base.Embedder[PickBestEvent]):
|
||||
|
||||
if model is None:
|
||||
from sentence_transformers import SentenceTransformer
|
||||
|
||||
model = SentenceTransformer("all-mpnet-base-v2")
|
||||
# model = SentenceTransformer("all-MiniLM-L6-v2")
|
||||
|
||||
self.model = model
|
||||
self.auto_embed = auto_embed
|
||||
|
Loading…
Reference in New Issue
Block a user