Skip to content

fix: reject non-positive search limit at the API boundary - #8

Open
AshSgDe29071999 wants to merge 1 commit into
AgentPostmortem:mainfrom
AshSgDe29071999:fix/search-limit-boundary
Open

fix: reject non-positive search limit at the API boundary#8
AshSgDe29071999 wants to merge 1 commit into
AgentPostmortem:mainfrom
AshSgDe29071999:fix/search-limit-boundary

Conversation

@AshSgDe29071999

Copy link
Copy Markdown

Summary

`search(..., limit=0)` / negative limits were passed through to Qdrant. Reject them at the library boundary with a clear `ValueError`.

Case covered

  • `limit=0` and `limit < 0` raise; positive limits unchanged

Test plan

  • Unit tests in `tests/test_search.py`

Fixes #2

limit=0 and negative values are not valid top-k bounds; fail fast.

Fixes AgentPostmortem#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a test for an untested edge case

1 participant