Skip to content

Commit 167ede1

Browse files
authored
remove deprecation warning from SentenceWindowRetriever (#8720)
1 parent 425ce9b commit 167ede1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Diff for: haystack/components/retrievers/sentence_window_retriever.py

-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
import warnings
65
from typing import Any, Dict, List, Optional
76

87
from haystack import Document, component, default_from_dict, default_to_dict
@@ -93,13 +92,6 @@ def __init__(self, document_store: DocumentStore, window_size: int = 3):
9392
self.window_size = window_size
9493
self.document_store = document_store
9594

96-
warnings.warn(
97-
"The output of `context_documents` will change in the next release. Instead of a "
98-
"List[List[Document]], the output will be a List[Document], where the documents are ordered by "
99-
"`split_idx_start`.",
100-
DeprecationWarning,
101-
)
102-
10395
@staticmethod
10496
def merge_documents_text(documents: List[Document]) -> str:
10597
"""

0 commit comments

Comments
 (0)