Spaces:
Sleeping
Sleeping
modified faulty _client.show_class_info()
Browse files- weaviate_interface.py +3 -1
weaviate_interface.py
CHANGED
@@ -387,7 +387,9 @@ class WeaviateIndexer:
|
|
387 |
end = time.perf_counter() - start
|
388 |
|
389 |
print(f'Batch job completed in {round(end/60, 2)} minutes.')
|
390 |
-
class_info = self._client.show_class_info()
|
|
|
|
|
391 |
for i, c in enumerate(class_info):
|
392 |
if c['class'] == class_name:
|
393 |
print(class_info[i])
|
|
|
387 |
end = time.perf_counter() - start
|
388 |
|
389 |
print(f'Batch job completed in {round(end/60, 2)} minutes.')
|
390 |
+
# class_info = self._client.show_class_info()
|
391 |
+
class_info = self._client.schema.get()['classes']
|
392 |
+
print(class_info)
|
393 |
for i, c in enumerate(class_info):
|
394 |
if c['class'] == class_name:
|
395 |
print(class_info[i])
|