Skip to content

Commit

Permalink
remove deprecation warning from SentenceWindowRetriever (#8720)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 authored Jan 15, 2025
1 parent 425ce9b commit 167ede1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions haystack/components/retrievers/sentence_window_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#
# SPDX-License-Identifier: Apache-2.0

import warnings
from typing import Any, Dict, List, Optional

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

warnings.warn(
"The output of `context_documents` will change in the next release. Instead of a "
"List[List[Document]], the output will be a List[Document], where the documents are ordered by "
"`split_idx_start`.",
DeprecationWarning,
)

@staticmethod
def merge_documents_text(documents: List[Document]) -> str:
"""
Expand Down

0 comments on commit 167ede1

Please sign in to comment.