Spaces:
Running
Running
Commit
·
577bc50
1
Parent(s):
b2dd427
print documents number
Browse files
__pycache__/config.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/config.cpython-310.pyc and b/__pycache__/config.cpython-310.pyc differ
|
|
|
__pycache__/pinecone_utilsA.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/pinecone_utilsA.cpython-310.pyc and b/__pycache__/pinecone_utilsA.cpython-310.pyc differ
|
|
|
__pycache__/pinecone_utilsB.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/pinecone_utilsB.cpython-310.pyc and b/__pycache__/pinecone_utilsB.cpython-310.pyc differ
|
|
|
pinecone_utilsA.py
CHANGED
|
@@ -90,4 +90,5 @@ def retrieve_documents(query, k, similarity_threshold):
|
|
| 90 |
relevant_docs.append(decompress_text(compressed_text))
|
| 91 |
else:
|
| 92 |
print(f"Skipping match due to missing metadata or compressed_text: {match}")
|
|
|
|
| 93 |
return relevant_docs
|
|
|
|
| 90 |
relevant_docs.append(decompress_text(compressed_text))
|
| 91 |
else:
|
| 92 |
print(f"Skipping match due to missing metadata or compressed_text: {match}")
|
| 93 |
+
print(f"Nombre de documents récupérés : {len(relevant_docs)}")
|
| 94 |
return relevant_docs
|
pinecone_utilsB.py
CHANGED
|
@@ -151,7 +151,7 @@ def hybrid_search(query, alpha, k, similarity_threshold):
|
|
| 151 |
})
|
| 152 |
else:
|
| 153 |
print(f"Skipping match due to missing metadata or compressed_text: {match}")
|
| 154 |
-
|
| 155 |
return relevant_docs
|
| 156 |
|
| 157 |
except Exception as e:
|
|
|
|
| 151 |
})
|
| 152 |
else:
|
| 153 |
print(f"Skipping match due to missing metadata or compressed_text: {match}")
|
| 154 |
+
#print(f"Nombre de documents récupérés : {len(relevant_docs)}")
|
| 155 |
return relevant_docs
|
| 156 |
|
| 157 |
except Exception as e:
|