fix code
Browse files
app.py
CHANGED
@@ -18,10 +18,7 @@ def ask(question):
|
|
18 |
nodes = retriever.retrieve(question)
|
19 |
full_result = ""
|
20 |
for node in nodes:
|
21 |
-
|
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 |
|