Skip to content

feat(smell-009): add queryWithReranker method, deprecate reranker on query#144

Merged
s2x merged 3 commits into
mainfrom
feat/smell-009-query-with-reranker
May 30, 2026
Merged

feat(smell-009): add queryWithReranker method, deprecate reranker on query#144
s2x merged 3 commits into
mainfrom
feat/smell-009-query-with-reranker

Conversation

@s2x

@s2x s2x commented May 30, 2026

Copy link
Copy Markdown
Contributor

No description provided.

…on query()

- Add queryWithReranker() returning ZVecRerankedDoc[] for type-safe static analysis
- Deprecate $reranker parameter on query() and queryFp64() with E_USER_DEPRECATED
- query() now always returns ZVecDoc[] (clean path) — BC preserved via delegation
- Update test_reranker_in_query.phpt to use new queryWithReranker() API
- Add test_query_return_types.phpt covering return types and deprecation behavior
- Update examples/query_with_reranker.php to use queryWithReranker()
- Closes #90
@s2x s2x changed the title feat(smell-009): add queryWithReranker() method, deprecate $reranker on query() feat(smell-009): add queryWithReranker method, deprecate reranker on query May 30, 2026
s2x added 2 commits May 30, 2026 10:47
Review fix: queryFp64() with deprecated $reranker was delegating to
queryWithReranker() (FP32 path) instead of queryWithRerankerFp64() (FP64 path).
The native zvec extension (ext) doesn't have queryWithReranker() yet.
Tests using it must skip when loaded via the extension rather than FFI.
@s2x s2x merged commit 581a6b2 into main May 30, 2026
3 checks passed
@s2x s2x deleted the feat/smell-009-query-with-reranker branch May 30, 2026 08:57
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.

1 participant