mitulagr2 commited on
Commit
b7a35f3
·
1 Parent(s): 78efab9
Files changed (1) hide show
  1. app/rag.py +2 -1
app/rag.py CHANGED
@@ -77,7 +77,8 @@ class ChatPDF:
77
  node = TextNode(text=text_chunk)
78
  # src_doc = docs[self.doc_ids[idx]]
79
  # node.metadata = src_doc.metadata
80
- self.nodes.append(node)
 
81
 
82
  logger.info("enumerating nodes")
83
  for node in self.nodes:
 
77
  node = TextNode(text=text_chunk)
78
  # src_doc = docs[self.doc_ids[idx]]
79
  # node.metadata = src_doc.metadata
80
+ if node.get_content(metadata_mode=MetadataMode.EMBED):
81
+ self.nodes.append(node)
82
 
83
  logger.info("enumerating nodes")
84
  for node in self.nodes: