Spaces:
Runtime error
Runtime error
fix
Browse files- 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 |
-
|
|
|
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:
|