Skip to content

refactor(smell-014): decompose query() into focused helper methods#145

Merged
s2x merged 1 commit into
mainfrom
feat/smell-014-query-decomposition
May 30, 2026
Merged

refactor(smell-014): decompose query() into focused helper methods#145
s2x merged 1 commit into
mainfrom
feat/smell-014-query-decomposition

Conversation

@s2x

@s2x s2x commented May 30, 2026

Copy link
Copy Markdown
Contributor

No description provided.

…teQuery, executeQueryFp64 helpers

- Extract resolveQueryParams() for parameter resolution and validation
- Extract executeQuery() for FP32 FFI call
- Extract executeQueryFp64() for FP64 FFI call
- query() body reduced from ~124 lines to ~15 lines
- Refactored queryFp64(), queryWithReranker(), queryWithRerankerFp64() to reuse helpers
- Eliminated duplicated FFI parameter setup and output field handling
- Added tests/test_query_decomposition.phpt (14 test cases)
- All 132 tests pass, no regressions
@s2x s2x merged commit 3032d25 into main May 30, 2026
3 checks passed
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