cl-kb live
Browse files
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 |
-
|
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
|