Spaces:
Runtime error
Runtime error
v2
Browse files- app/rag.py +2 -2
app/rag.py
CHANGED
@@ -78,8 +78,8 @@ class ChatPDF:
|
|
78 |
logger.info("enumerating text_chunks")
|
79 |
for idx, text_chunk in enumerate(self.text_chunks):
|
80 |
node = TextNode(text=text_chunk)
|
81 |
-
src_doc = docs[self.doc_ids[idx]]
|
82 |
-
node.metadata = src_doc.metadata
|
83 |
self.nodes.append(node)
|
84 |
|
85 |
logger.info("enumerating nodes")
|
|
|
78 |
logger.info("enumerating text_chunks")
|
79 |
for idx, text_chunk in enumerate(self.text_chunks):
|
80 |
node = TextNode(text=text_chunk)
|
81 |
+
# src_doc = docs[self.doc_ids[idx]]
|
82 |
+
# node.metadata = src_doc.metadata
|
83 |
self.nodes.append(node)
|
84 |
|
85 |
logger.info("enumerating nodes")
|