Spaces:
Paused
Paused
[email protected]
commited on
Commit
·
7308bd6
1
Parent(s):
77b927d
wip
Browse files- pineconeclient.py +2 -3
pineconeclient.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import logging
|
2 |
logger = logging.getLogger(__name__)
|
3 |
-
logger.setLevel(logging.
|
4 |
|
5 |
import json
|
6 |
import streamlit as st
|
@@ -54,8 +54,7 @@ def search_index(query, top_k, regions, countries, retriever, index_namespace=""
|
|
54 |
|
55 |
results = []
|
56 |
for match in xc['matches']:
|
57 |
-
|
58 |
-
logger.debug(f"Match: {match}")
|
59 |
#answer = reader(question=query, context=match["metadata"]['context'])
|
60 |
score = match['score']
|
61 |
# if 'type' in match['metadata'] and match['metadata']['type']!='description-webcontent' and scrape_boost>0:
|
|
|
1 |
import logging
|
2 |
logger = logging.getLogger(__name__)
|
3 |
+
logger.setLevel(logging.INFO)
|
4 |
|
5 |
import json
|
6 |
import streamlit as st
|
|
|
54 |
|
55 |
results = []
|
56 |
for match in xc['matches']:
|
57 |
+
#logger.debug(f"Match: {match}")
|
|
|
58 |
#answer = reader(question=query, context=match["metadata"]['context'])
|
59 |
score = match['score']
|
60 |
# if 'type' in match['metadata'] and match['metadata']['type']!='description-webcontent' and scrape_boost>0:
|