davidr70 commited on
Commit
9667dfb
·
1 Parent(s): 3767f64
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -18,10 +18,7 @@ def ask(question):
18
  nodes = retriever.retrieve(question)
19
  full_result = ""
20
  for node in nodes:
21
- print(node.score)
22
- print(node.metadata['section'])
23
- print(node.text)
24
- output = f"score: {str(node.score)}\nmetadata: {str(node.metadata['section'])}\ntext: {node.text}\n\n\n"
25
  full_result += output
26
  return full_result
27
 
 
18
  nodes = retriever.retrieve(question)
19
  full_result = ""
20
  for node in nodes:
21
+ output = f"score: {str(node.score)}\nmetadata: {str(node.metadata)}\ntext: {node.text}\n\n\n"
 
 
 
22
  full_result += output
23
  return full_result
24