Repository navigation
feat: add qwen_embedding field and fix request object serialization - #24
Merged
Merged
Conversation
Add the `qwenEmbedding` field to `NlpDataEntity` for articles indexed from January 1, 2026 onward using the Qwen3-Embedding-0.6B model. Fix request objects (`GetAggregationCountRequest`, `GetAuthorsRequest`) to use `@JsonIgnore` instead of `@JsonProperty` on getter methods, preventing fields from being serialized into the JSON request body (these are query-parameter-only request objects). Also reorder static constants in `NewsDomainType` and `SortBy` enums, and refactor `RetryInterceptor` to create a fresh `ExponentialBackoff` per retry cycle. Key changes: - Add `qwenEmbedding` (`Optional<List<Float>>`) field and builder methods to `NlpDataEntity` - Replace `@JsonProperty` with `@JsonIgnore` on all getter methods in `GetAggregationCountRequest` and `GetAuthorsRequest` to prevent incorrect JSON serialization - Reorder static constants and switch cases in `NewsDomainType` and `SortBy` enums (no semantic change) - Refactor `RetryInterceptor` to instantiate `ExponentialBackoff` per retry invocation rather than sharing a stateful instance 🌿 Generated with Fern
Kizy625
approved these changes
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
2.0.0 → 2.1.0
[2.1.0] - 2025-07-10
Added
NlpDataEntity.getQwenEmbedding()— newOptional<List<Float>>field exposing a 1024-dimensional Qwen3-Embedding-0.6B vector for articles indexed from January 1, 2026 onward (requires thev3_nlp_embeddingsplan).Changed
ObjectMappers— now registers a customDoubleSerializerthat writes integer-valued doubles (e.g.24000.0) as plain integers (24000) in all serialized output.Fixed
GetAggregationCountRequest,GetAuthorsRequest, andGetSourcesRequest— getter methods are now annotated with@JsonIgnoreinstead of@JsonProperty, preventing query-parameter-only fields from being incorrectly serialized into the JSON request body.RetryInterceptor—ExponentialBackoffis now instantiated fresh per retry cycle, eliminating shared mutable state across concurrent requests.See full changelog