Update utils.py
Browse files
utils.py
CHANGED
@@ -8,7 +8,7 @@ def clean_pinecone(response):
|
|
8 |
code = entry['metadata']['code']
|
9 |
score = float(entry['score'])
|
10 |
# score =
|
11 |
-
if score > 0.
|
12 |
if code not in unique_codes:
|
13 |
#Where class is unique
|
14 |
classes.append(entry)
|
|
|
8 |
code = entry['metadata']['code']
|
9 |
score = float(entry['score'])
|
10 |
# score =
|
11 |
+
if score > 0.785: #Threshold from personal testing
|
12 |
if code not in unique_codes:
|
13 |
#Where class is unique
|
14 |
classes.append(entry)
|