Skip to content

Commit

Permalink
changing a method to static
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsbatista committed Nov 28, 2024
1 parent 0aea256 commit 8a7eba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haystack/components/joiners/document_joiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ def run(self, documents: Variadic[List[Document]], top_k: Optional[int] = None):

return {"documents": output_documents}

def _concatenate(self, document_lists: List[List[Document]]) -> List[Document]:
@staticmethod
def _concatenate(document_lists: List[List[Document]]) -> List[Document]:
"""
Concatenate multiple lists of Documents and return only the Document with the highest score for duplicates.
"""
Expand Down

0 comments on commit 8a7eba7

Please sign in to comment.