Spaces:
Sleeping
Sleeping
update
Browse files
business_transaction_map/components/faiss_vector_database.py
CHANGED
@@ -189,6 +189,10 @@ class FaissVectorDatabase:
|
|
189 |
"""
|
190 |
if len(emb_query.shape) != 2:
|
191 |
assert print('Не правильный размер вектора!')
|
|
|
|
|
|
|
|
|
192 |
|
193 |
distances, indexes = self.index.search(emb_query, k_neighbors)
|
194 |
answers = {}
|
|
|
189 |
"""
|
190 |
if len(emb_query.shape) != 2:
|
191 |
assert print('Не правильный размер вектора!')
|
192 |
+
|
193 |
+
print("Index dimension:", self.index.d) # Размерность индекса
|
194 |
+
print("Query dimension:", emb_query.shape[1]) # Размерность вектора запроса
|
195 |
+
|
196 |
|
197 |
distances, indexes = self.index.search(emb_query, k_neighbors)
|
198 |
answers = {}
|