{"record":{"id":"98887973bb653572","repo":"chroma-core/chroma","slug":"in-requires-a-list-got-type-value-name","errorCode":null,"errorMessage":"$in requires a list, got {type(value).__name__}","messagePattern":"\\$in requires a list, got (.+?)","errorType":"validation","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"chromadb/execution/expression/operator.py","lineNumber":177,"sourceCode":"                    )\n\n                op, value = next(iter(condition.items()))\n\n                if op == \"$eq\":\n                    return Key(field) == value\n                elif op == \"$ne\":\n                    return Key(field) != value\n                elif op == \"$gt\":\n                    return Key(field) > value\n                elif op == \"$gte\":\n                    return Key(field) >= value\n                elif op == \"$lt\":\n                    return Key(field) < value\n                elif op == \"$lte\":\n                    return Key(field) <= value\n                elif op == \"$in\":\n                    if not isinstance(value, list):\n                        raise TypeError(\n                            f\"$in requires a list, got {type(value).__name__}\"\n                        )\n                    return Key(field).is_in(value)\n                elif op == \"$nin\":\n                    if not isinstance(value, list):\n                        raise TypeError(\n                            f\"$nin requires a list, got {type(value).__name__}\"\n                        )\n                    return Key(field).not_in(value)\n                elif op == \"$contains\":\n                    if not isinstance(value, (str, int, float, bool)):\n                        raise TypeError(\n                            f\"$contains requires a str, int, float, or bool, got {type(value).__name__}\"\n                        )\n                    return Key(field).contains(value)\n                elif op == \"$not_contains\":\n                    if not isinstance(value, (str, int, float, bool)):\n                        raise TypeError(","sourceCodeStart":159,"sourceCodeEnd":195,"githubUrl":"https://github.com/chroma-core/chroma/blob/aecdd12c8a891610db8653630b066b32ceb678b5/chromadb/execution/expression/operator.py#L159-L195","documentation":"Error \"$in requires a list, got {type(value).__name__}\" thrown in chroma-core/chroma.","triggerScenarios":"Thrown at chromadb/execution/expression/operator.py:177 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"}