sujitb commited on
Commit
0b02df4
1 Parent(s): 0df7507

cl-kb live

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,7 +26,7 @@ bi_encoder.max_seq_length = 256 # Truncate long documents to 256 tokens
26
 
27
  # Store the index as a variable
28
  INDEX_NAME = 'cl-search-idx'
29
- #INDEX_NAME = 'cl-kb'
30
 
31
  pc_api_key= os.environ["clpine"] #AWS
32
  pc = Pinecone(api_key=pc_api_key)
@@ -197,7 +197,7 @@ if QUESTION:
197
 
198
  THRESHOLD=.4
199
  ns='webpages'
200
- ns='full'
201
  resp= query_from_pinecone(index,ns, question_embedding.tolist(), 10)
202
  resplist=[]
203
  id=0
 
26
 
27
  # Store the index as a variable
28
  INDEX_NAME = 'cl-search-idx'
29
+ INDEX_NAME = 'cl-kb'
30
 
31
  pc_api_key= os.environ["clpine"] #AWS
32
  pc = Pinecone(api_key=pc_api_key)
 
197
 
198
  THRESHOLD=.4
199
  ns='webpages'
200
+ #ns='full'
201
  resp= query_from_pinecone(index,ns, question_embedding.tolist(), 10)
202
  resplist=[]
203
  id=0