Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bbconf/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.14.0"
__version__ = "0.14.1"
15 changes: 11 additions & 4 deletions bbconf/modules/bedfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -2114,7 +2114,6 @@ def reindex_hybrid_search(self, batch: int = 1000, purge: bool = False) -> None:
select(Bed)
.join(BedMetadata, Bed.id == BedMetadata.id)
.where(Bed.indexed == False)
.limit(batch)
)

with Session(self._sa_engine) as session:
Expand Down Expand Up @@ -2196,11 +2195,16 @@ def reindex_hybrid_search(self, batch: int = 1000, purge: bool = False) -> None:
operation_info = self.config.qdrant_client.upsert(
collection_name=self.config.config.qdrant.hybrid_collection,
points=points,
wait=False,
)
session.commit()
pbar.write("Uploaded batch to qdrant.")
points = []
assert operation_info.status == "completed"
print(operation_info.status)
assert (
operation_info.status == "completed"
or operation_info.status == "acknowledged"
)
session.commit()

pbar.write(f"File: {result.id} successfully indexed.")
pbar.update(1)
Expand All @@ -2210,7 +2214,10 @@ def reindex_hybrid_search(self, batch: int = 1000, purge: bool = False) -> None:
collection_name=self.config.config.qdrant.hybrid_collection,
points=points,
)
assert operation_info.status == "completed"
assert (
operation_info.status == "completed"
or operation_info.status == "acknowledged"
)
session.commit()

return None
Expand Down
Loading