in code/embedding-function/utilities/common/source_document.py [0:0]
def __eq__(self, other):
if isinstance(self, other.__class__):
return (
self.id == other.id
and self.content == other.content
and self.source == other.source
and self.title == other.title
and self.chunk == other.chunk
and self.offset == other.offset
and self.page_number == other.page_number
and self.chunk_id == other.chunk_id
and self.sharepoint_file_id == other.sharepoint_file_id
)
return False