Refactor MongoDBAtlasVectorSearch imports
This commit is contained in:
parent
43e3bc4ef5
commit
c53a9d0714
1 changed files with 2 additions and 4 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
|
|
||||||
from langflow.components.vectorstores.base.model import LCVectorStoreComponent
|
from langflow.components.vectorstores.base.model import LCVectorStoreComponent
|
||||||
from langflow.components.vectorstores.MongoDBAtlasVector import \
|
from langflow.components.vectorstores.MongoDBAtlasVector import MongoDBAtlasComponent
|
||||||
MongoDBAtlasComponent
|
|
||||||
from langflow.field_typing import Embeddings, NestedDict, Text
|
from langflow.field_typing import Embeddings, NestedDict, Text
|
||||||
from langflow.schema import Record
|
from langflow.schema import Record
|
||||||
|
|
||||||
|
|
@ -37,7 +36,6 @@ class MongoDBAtlasSearchComponent(MongoDBAtlasComponent, LCVectorStoreComponent)
|
||||||
mongodb_atlas_cluster_uri: str = "",
|
mongodb_atlas_cluster_uri: str = "",
|
||||||
search_kwargs: Optional[NestedDict] = None,
|
search_kwargs: Optional[NestedDict] = None,
|
||||||
) -> List[Record]:
|
) -> List[Record]:
|
||||||
|
|
||||||
search_kwargs = search_kwargs or {}
|
search_kwargs = search_kwargs or {}
|
||||||
vector_store = super().build(
|
vector_store = super().build(
|
||||||
connection_string=mongodb_atlas_cluster_uri,
|
connection_string=mongodb_atlas_cluster_uri,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue