Skip to content

Commit

Permalink
fix(qdrant): lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lambda-science committed Mar 7, 2024
1 parent 388911e commit add7f17
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def _set_up_collection(
embedding_dim: int,
recreate_collection: bool, # noqa: FBT001
similarity: str,
on_disk: bool = False, # noqa: FBT001
on_disk: bool = False, # noqa: FBT001, FBT002
payload_field_to_index: Optional[List[dict]] = None,
):
distance = self._get_distance(similarity)
Expand Down Expand Up @@ -407,7 +407,7 @@ def _set_up_collection(
)
raise ValueError(msg)

def _recreate_collection(self, collection_name: str, distance, embedding_dim: int, on_disk: bool):
def _recreate_collection(self, collection_name: str, distance, embedding_dim: int, on_disk: bool): # noqa: FBT001
self.client.recreate_collection(
collection_name=collection_name,
vectors_config=rest.VectorParams(
Expand Down

0 comments on commit add7f17

Please sign in to comment.