Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored and ogabrielluiz committed Aug 14, 2024
1 parent d24da9d commit 5a9a681
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/backend/base/langflow/components/vectorstores/Upstash.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
class UpstashVectorStoreComponent(LCVectorStoreComponent):
display_name = "Upstash"
description = "Upstash Vector Store with search capabilities"
documentation = (
"https://python.langchain.com/v0.2/docs/integrations/vectorstores/upstash/"
)
documentation = "https://python.langchain.com/v0.2/docs/integrations/vectorstores/upstash/"
name = "Upstash"
icon = "Upstash"

Expand Down Expand Up @@ -121,11 +119,7 @@ def _build_upstash(self) -> UpstashVectorStore:
def search_documents(self) -> List[Data]:
vector_store = self._build_upstash()

if (
self.search_query
and isinstance(self.search_query, str)
and self.search_query.strip()
):
if self.search_query and isinstance(self.search_query, str) and self.search_query.strip():
docs = vector_store.similarity_search(
query=self.search_query,
k=self.number_of_results,
Expand Down

0 comments on commit 5a9a681

Please sign in to comment.