sujitb commited on
Commit
9b74006
1 Parent(s): 6d8752e

Converted search to pages

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ QUESTION=st.text_area('Ask a question -e.g How to prepare for Verbal section for
43
  if QUESTION:
44
  question_embedding = bi_encoder.encode(QUESTION, convert_to_tensor=True)
45
 
46
- ns='full'
47
  resp= query_from_pinecone(index,ns, question_embedding.tolist(), 3)
48
  if len(resp)>0:
49
  out= resp[0]['metadata']['data']
 
43
  if QUESTION:
44
  question_embedding = bi_encoder.encode(QUESTION, convert_to_tensor=True)
45
 
46
+ ns='pages'
47
  resp= query_from_pinecone(index,ns, question_embedding.tolist(), 3)
48
  if len(resp)>0:
49
  out= resp[0]['metadata']['data']