Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sicheng Pan committed Dec 6, 2024
1 parent 99df1c6 commit 1b3cd98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chromadb/execution/executor/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ def _segment_scan(self, scan: Scan) -> SegmentScan:
return SegmentScan(
collection=collection_segments["collection"],
knn_id=scope_to_segment[SegmentScope.VECTOR],
metadata_id=scope_to_segment[SegmentScope.VECTOR],
record_id=scope_to_segment[SegmentScope.VECTOR],
metadata_id=scope_to_segment[SegmentScope.METADATA],
record_id=scope_to_segment[SegmentScope.RECORD],
)

def _grpc_executuor_stub(self, scan: Scan) -> QueryExecutorStub:
Expand Down
2 changes: 1 addition & 1 deletion chromadb/segment/impl/manager/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def delete_segments(self, collection_id: UUID) -> Sequence[UUID]:
def get_collection_segments(self, collection_id: UUID) -> CollectionSegments:
if collection_id not in self._collection_segment_cache:
self._collection_segment_cache[collection_id] = self._sysdb.get_collection_with_segments(collection_id)
return self._segment_cache[collection_id]
return self._collection_segment_cache[collection_id]

@trace_method(
"DistributedSegmentManager.get_endpoint",
Expand Down

0 comments on commit 1b3cd98

Please sign in to comment.