Problem
The Limit.from_dict() validator in chromadb/execution/expression/operator.py (lines 581, 584) produces confusing error messages that stutter:
f"Limit limit must be an integer, got {type(limit).__name__}"
f"Limit limit must be positive, got {limit}"
The "Limit limit" reads as a repeated word, making the error message confusing to users. The pattern "Limit offset" (line 571) is clear because "Limit" is the expression type and "offset" is the field name. But "Limit limit" stutters because the same word appears twice.
Expected Behavior
Error messages should be clear and unambiguous:
"limit must be a positive integer, got ..."
"limit must be positive, got ..."
Affected Files
chromadb/execution/expression/operator.py lines 581, 584
Problem
The
Limit.from_dict()validator inchromadb/execution/expression/operator.py(lines 581, 584) produces confusing error messages that stutter:The "Limit limit" reads as a repeated word, making the error message confusing to users. The pattern
"Limit offset"(line 571) is clear because "Limit" is the expression type and "offset" is the field name. But "Limit limit" stutters because the same word appears twice.Expected Behavior
Error messages should be clear and unambiguous:
Affected Files
chromadb/execution/expression/operator.pylines 581, 584