Skip to content

The agent engineering platform.

Fix `allowed_search_types` in `VectorStoreRetriever` (#8064)

c-bata623b321e7576
diff --git a/langchain/vectorstores/base.py b/langchain/vectorstores/base.py
index 8e04645222..4911c87a66 100644
--- a/langchain/vectorstores/base.py
+++ b/langchain/vectorstores/base.py
@@ -465,7 +465,7 @@ class VectorStoreRetriever(BaseRetriever):
search_kwargs: dict = Field(default_factory=dict)
allowed_search_types: ClassVar[Collection[str]] = (
"similarity",
- "similarityatscore_threshold",
+ "similarity_score_threshold",
"mmr",
)