class_docstr: Base data class containing some data to be queried.
  Can contain text snippets, tables, and file paths to images or audios.
  Documents can be sorted by score and saved to/from dictionary and JSON.
  
  :param id: Unique identifier for the document. When not set, it's generated based on the Document fields' values.
  :param content: Text of the document, if the document contains text.
  :param dataframe: Pandas dataframe with the document's content, if the document contains tabular data.
  :param blob: Binary data associated with the document, if the document has any binary data associated with it.
  :param meta: Additional custom metadata for the document. Must be JSON-serializable.
  :param score: Score of the document. Used for ranking, usually assigned by retrievers.
  :param embedding: Vector representation of the document.
class_docstr_tok: ["Base","data","class","containing","some","data","to","be","queried",".","Can","contain","text","snippets",",","tables",",","and","file","paths","to","images","or","audios",".","Documents","can","be","sorted","by","score","and","saved","to\/from","dictionary","and","JSON",".",":","param","id",":","Unique","identifier","for","the","document",".","When","not","set",",","it","'s","generated","based","on","the","Document","fields","'","values",".",":","param","content",":","Text","of","the","document",",","if","the","document","contains","text",".",":","param","dataframe",":","Pandas","dataframe","with","the","document","'s","content",",","if","the","document","contains","tabular","data",".",":","param","blob",":","Binary","data","associated","with","the","document",",","if","the","document","has","any","binary","data","associated","with","it",".",":","param","meta",":","Additional","custom","metadata","for","the","document",".","Must","be","JSON-serializable",".",":","param","score",":","Score","of","the","document",".","Used","for","ranking",",","usually","assigned","by","retrievers",".",":","param","embedding",":","Vector","representation","of","the","document","."]
docstr: Compares Documents for equality.
  Two Documents are considered equals if their dictionary representation is identical.
docstr_tok: ["Compares","Documents","for","equality",".","Two","Documents","are","considered","equals","if","their","dictionary","representation","is","identical","."]
code: def __eq__(self, other):
      """
      Compares Documents for equality.
      Two Documents are considered equals if their dictionary representation is identical.
      """
      if type(self) != type(other):
          return False
      return self.to_dict() == other.to_dict()
  
file_path: haystack/haystack/dataclasses/document.py
imports: import io
  import hashlib
  import logging
  from dataclasses import asdict, dataclass, field, fields
  from typing import Any, Dict, List, Optional
  import numpy
  import pandas
  from haystack.dataclasses.byte_stream import ByteStream
label_desc: Use image node_id 2 for calling the Document obj's underlying member method code with example usage: obj.__eq__(other) and returns: unknown, False