Jorge Henao commited on
Commit
1ee48d3
1 Parent(s): 1b95b93

page, source metadata was added

Browse files
Files changed (1) hide show
  1. app_pinecode.py +2 -2
app_pinecode.py CHANGED
@@ -25,8 +25,8 @@ def search(question, retriever_top_k, reader_top_k):
25
  result = []
26
  for i in range(0, len(query_result)):
27
  item = query_result[i]
28
- #result.append([[i+1], item.answer, item.context[:200], item.meta['title'], item.meta['source'], int(item.meta['page'])])
29
- result.append([[i+1], item.answer, item.context[:200], item.meta['title']])
30
 
31
  return result
32
 
 
25
  result = []
26
  for i in range(0, len(query_result)):
27
  item = query_result[i]
28
+ result.append([[i+1], item.answer, item.context[:200], item.meta['title'], item.meta['source'], int(item.meta['page'])])
29
+ #result.append([[i+1], item.answer, item.context[:200], item.meta['title']])
30
 
31
  return result
32