Skip to content

Commit f2fb1e9

Browse files
committed
fallback to legacy metadata
1 parent 239b596 commit f2fb1e9

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

chromadb/api/client.py

-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ def create_collection(
161161
get_or_create=get_or_create,
162162
configuration=configuration,
163163
)
164-
print(f"(Sanket-temp) Collection model {model.configuration_json}")
165164
return Collection(
166165
client=self._server,
167166
model=model,

chromadb/test/property/invariants.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,12 @@ def fd_not_exceeding_threadpool_size(threadpool_size: int) -> None:
246246
)
247247

248248
def get_space(collection: Collection):
249-
print(f"(Sanket-temp) Collection config json {collection._model.configuration_json}")
250249
if 'spann' in collection._model.configuration_json and collection._model.configuration_json.get('spann') is not None:
251250
return collection._model.configuration_json.get('spann').get('space')
252-
else:
251+
elif 'hnsw' in collection._model.configuration_json and collection._model.configuration_json.get('hnsw') is not None:
253252
return collection._model.configuration_json.get('hnsw').get('space')
253+
else:
254+
return collection.metadata["hnsw:space"]
254255

255256
def ann_accuracy(
256257
collection: Collection,

chromadb/test/property/test_persist.py

-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ def test_persist(
127127
metadata=collection_strategy.metadata, # type: ignore[arg-type]
128128
embedding_function=collection_strategy.embedding_function,
129129
)
130-
print(f"(Sanket-temp) Collection config {coll.configuration}")
131130

132131
coll.add(**recordset_strategy) # type: ignore[arg-type]
133132

0 commit comments

Comments
 (0)