Jorge Henao commited on
Commit
cb52b15
·
1 Parent(s): cfc841c

metadata fix

Browse files
Files changed (1) hide show
  1. app_pinecode.py +3 -3
app_pinecode.py CHANGED
@@ -33,8 +33,8 @@ def search(question, retriever_top_k, reader_top_k):
33
  result = []
34
  for i in range(0, len(query_result)):
35
  item = query_result[i]
36
- #result.append([[i+1], item.answer, item.context[:200], item.meta['title'], item.meta['source'], int(item.meta['page'])])
37
- result.append([[i+1], item.answer, item.context[:200], item.meta['title']])
38
 
39
  return result
40
 
@@ -58,7 +58,7 @@ if __name__ == "__main__":
58
  # Every form must have a submit button.
59
  submitted = st.form_submit_button("Buscar")
60
 
61
- #results = search("que es el adres", retriever_top_k=5, reader_top_k=3)
62
 
63
  # on submit we execute search
64
  if(submitted):
 
33
  result = []
34
  for i in range(0, len(query_result)):
35
  item = query_result[i]
36
+ result.append([[i+1], item.answer, item.context[:200], item.meta['title'], item.meta['source'], int(item.meta['page'])])
37
+ #result.append([[i+1], item.answer, item.context[:200], item.meta['title']])
38
 
39
  return result
40
 
 
58
  # Every form must have a submit button.
59
  submitted = st.form_submit_button("Buscar")
60
 
61
+ results = search("que es el adres", retriever_top_k=5, reader_top_k=3)
62
 
63
  # on submit we execute search
64
  if(submitted):