{"record":{"id":"96959358dc2701f4","repo":"chroma-core/chroma","slug":"group-by-must-be-a-groupby-object-dict-or-none","errorCode":null,"errorMessage":"group_by must be a GroupBy object, dict, or None, got {type(group_by).__name__}","messagePattern":"group_by must be a GroupBy object, dict, or None, got (.+?)","errorType":"validation","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"chromadb/execution/expression/plan.py","lineNumber":126,"sourceCode":"            self._rank = None\n        elif isinstance(rank, Rank):\n            self._rank = rank\n        elif isinstance(rank, dict):\n            self._rank = Rank.from_dict(rank)\n        else:\n            raise TypeError(\n                f\"rank must be a Rank object, dict, or None, got {type(rank).__name__}\"\n            )\n\n        # Handle group_by parameter\n        if group_by is None:\n            self._group_by = GroupBy()\n        elif isinstance(group_by, GroupBy):\n            self._group_by = group_by\n        elif isinstance(group_by, dict):\n            self._group_by = GroupBy.from_dict(group_by)\n        else:\n            raise TypeError(\n                f\"group_by must be a GroupBy object, dict, or None, got {type(group_by).__name__}\"\n            )\n\n        # Handle limit parameter\n        if limit is None:\n            self._limit = Limit()\n        elif isinstance(limit, Limit):\n            self._limit = limit\n        elif isinstance(limit, int):\n            self._limit = Limit.from_dict({\"limit\": limit, \"offset\": 0})\n        elif isinstance(limit, dict):\n            self._limit = Limit.from_dict(limit)\n        else:\n            raise TypeError(\n                f\"limit must be a Limit object, dict, int, or None, got {type(limit).__name__}\"\n            )\n\n        # Handle select parameter","sourceCodeStart":108,"sourceCodeEnd":144,"githubUrl":"https://github.com/chroma-core/chroma/blob/aecdd12c8a891610db8653630b066b32ceb678b5/chromadb/execution/expression/plan.py#L108-L144","documentation":"Error \"group_by must be a GroupBy object, dict, or None, got {type(group_by).__name__}\" thrown in chroma-core/chroma.","triggerScenarios":"Thrown at chromadb/execution/expression/plan.py:126 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"aecdd12c8a891610db8653630b066b32ceb678b5","analyzedAt":"2026-08-16T21:53:27.228Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}