Converted search to pages
Browse files
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='
|
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']
|