Skip to content

feat: support REC extended item info parsing and response output.#1282

Open
DragonFive wants to merge 5 commits intojd-opensource:mainfrom
DragonFive:split/rec-extended-item-info
Open

feat: support REC extended item info parsing and response output.#1282
DragonFive wants to merge 5 commits intojd-opensource:mainfrom
DragonFive:split/rec-extended-item-info

Conversation

@DragonFive
Copy link
Copy Markdown
Collaborator

add extended item info in filter bin for beam search.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for extended item information (DID and type) in recommendation outputs by updating the vocabulary dictionary, tokenizer, and API service logic. Feedback highlights a misalignment between item IDs and extended info tensors in the service implementation, a regression in sequence output generation that fails to handle multiple item matches, and a potential memory exhaustion vulnerability when parsing the vocabulary file. Additionally, the new global flag must be registered in help_formatter.h to comply with the repository's style guide.

Comment thread xllm/api_service/rec_completion_service_impl.cpp
Comment thread xllm/core/framework/request/sequence.cpp
Comment thread xllm/core/common/global_flags.cpp
Comment thread xllm/core/framework/state_dict/rec_vocab_dict.cpp
Comment thread xllm/core/common/types.h
@DragonFive
Copy link
Copy Markdown
Collaborator Author

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for extended item information (DID and type) across the recommendation service, including updates to vocabulary parsing, tokenization, and API response handling. The review feedback correctly identifies a protocol buffer field mismatch in the API service and suggests more robust error handling in the vocabulary loader to prevent silent failures when encountering incomplete file records.

Comment thread xllm/api_service/rec_completion_service_impl.cpp
Comment thread xllm/core/framework/state_dict/rec_vocab_dict.cpp
Comment thread xllm/core/framework/state_dict/rec_vocab_dict.cpp Outdated
@DragonFive DragonFive requested a review from RobbieLeung April 16, 2026 05:12
XuZhang99
XuZhang99 previously approved these changes Apr 17, 2026
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.

3 participants