Skip to content
Merged
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
6 changes: 1 addition & 5 deletions sdks/python/apache_beam/ml/rag/enrichment/milvus_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
from pymilvus.exceptions import MilvusException

from apache_beam.ml.rag.types import EmbeddableItem
from apache_beam.ml.rag.types import Embedding
from apache_beam.ml.rag.utils import MilvusConnectionParameters
from apache_beam.ml.rag.utils import MilvusHelpers
from apache_beam.ml.rag.utils import retry_with_backoff
Expand Down Expand Up @@ -96,9 +95,6 @@ class VectorSearchMetrics(Enum):

class MilvusBaseRanker:
"""Base class for ranking algorithms in Milvus hybrid search strategy."""
def __int__(self):
return

def dict(self):
return {}

Expand Down Expand Up @@ -588,6 +584,6 @@ def batch_elements_kwargs(self) -> dict[str, int]:
return self._batching_kwargs


def join_fn(left: Embedding, right: dict[str, Any]) -> Embedding:
def join_fn(left: EmbeddableItem, right: dict[str, Any]) -> EmbeddableItem:
left.metadata['enrichment_data'] = right
return left
Loading