[codex] personalize ranking and expose candidate sources#9
Closed
Felix3322 wants to merge 1 commit intoscukeqi:mainfrom
Closed
[codex] personalize ranking and expose candidate sources#9Felix3322 wants to merge 1 commit intoscukeqi:mainfrom
Felix3322 wants to merge 1 commit intoscukeqi:mainfrom
Conversation
Author
Author
|
Closed as superseded by #10. |
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.
Summary
This PR extracts the local commit
feat(llm): personalize ranking and expose candidate sourcesinto its own standalone branch and ports it cleanly ontomain.It improves candidate ranking and source handling for the LLM path by introducing a reusable user-preference hint derived from context history, then threading that hint through the OpenAI-compatible, HF constraint, and llama.cpp providers.
What changes
1. Personalization hint from recent history
2. Provider-side ranking improvements
LLMProviderinterface to accept an optionalpreference_hintOpenAICompatibleProviderHFConstraintProviderLlamaCppProvider3. Candidate source visibility and UI ordering
RimeWithWeaselcandidate handling logic so LLM and native candidates are merged and displayed in a more intentional orderWhy
Before this change, candidate ranking primarily depended on the immediate context and backend output order. That made the system less adaptive to the user's own recent wording patterns and also made mixed-source candidate display less expressive.
This PR moves toward more personalized ranking while keeping the integration local to the existing LLM prediction flow.
Validation
Built in a clean worktree (to avoid mixing in unrelated local modifications) using real MSVC tooling.
Validated with:
get-rime.ps1 -use devWeaselIPCWeaselUIRimeWithWeaselWeaselIPCServerWeaselServerBuild completed successfully with warnings only.
Notes
This PR is intentionally separate from the OpenAI extra-request-params work in PR #7.