Skip to content

Commit

Permalink
fix: method assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
bclavie committed Mar 18, 2024
1 parent 884ed64 commit 555aaf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ragatouille/models/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ class HNSWModelIndex(ModelIndex):
class PLAIDModelIndex(ModelIndex):
_DEFAULT_INDEX_BSIZE = 32
index_type = "PLAID"
faiss_kmeans = deepcopy(CollectionIndexer._train_kmeans)
pytorch_kmeans = torch_kmeans._train_kmeans
faiss_kmeans = staticmethod(deepcopy(CollectionIndexer._train_kmeans))
pytorch_kmeans = staticmethod(torch_kmeans._train_kmeans)

def __init__(self, config: ColBERTConfig) -> None:
super().__init__(config)
Expand Down

0 comments on commit 555aaf3

Please sign in to comment.