You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integrations/opensearch/src/haystack_integrations/components/retrievers/opensearch/open_search_hybrid_retriever.py
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -114,8 +114,9 @@ def __init__(
114
114
**kwargs: Any,
115
115
) ->None:
116
116
"""
117
-
Initialize the OpenSearchHybridRetriever, a super component to retrieve documents from OpenSearch using
118
-
both embedding-based and keyword-based retrieval methods.
117
+
Initialize the OpenSearchHybridRetriever using both embedding-based and keyword-based retrieval methods.
118
+
119
+
This is a super component to retrieve documents from OpenSearch using both retrieval methods.
119
120
120
121
We don't explicitly define all the init parameters of the components in the constructor, for each
121
122
of the components, since that would be around 20+ parameters. Instead, we define the most important ones
@@ -242,7 +243,9 @@ def __init__(
242
243
243
244
ifTYPE_CHECKING:
244
245
245
-
defwarm_up(self) ->None: ...
246
+
defwarm_up(self) ->None:
247
+
"""Warm up the underlying pipeline components."""
248
+
...
246
249
247
250
defrun(
248
251
self,
@@ -251,7 +254,9 @@ def run(
251
254
filters_embedding: dict[str, Any] |None=None,
252
255
top_k_bm25: int|None=None,
253
256
top_k_embedding: int|None=None,
254
-
) ->dict[str, list[Document]]: ...
257
+
) ->dict[str, list[Document]]:
258
+
"""Run the hybrid retrieval pipeline and return retrieved documents."""
0 commit comments