Skip to content

fix(nvidia): enable asymmetric embedding support - #3888

Open
Shizoqua wants to merge 2 commits into
HKUDS:mainfrom
Shizoqua:fix/nvidia-embedding-input-type
Open

fix(nvidia): enable asymmetric embedding support#3888
Shizoqua wants to merge 2 commits into
HKUDS:mainfrom
Shizoqua:fix/nvidia-embedding-input-type

Conversation

@Shizoqua

@Shizoqua Shizoqua commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Problem

nvidia_openai_embed() had no context parameter, so every embedding used the hardcoded input_type="passage", even for search queries.

Change

Added a context parameter that maps to NVIDIA's query/passage input_type, matching the asymmetric pattern used by voyageai_embed and jina_embed.

Tests

tests/llm/nvidia_impl: 8 passed

Related Issue

No related issue.

Signed-off-by: Lanre Shittu <136805224+Shizoqua@users.noreply.github.com>
Signed-off-by: Lanre Shittu <136805224+Shizoqua@users.noreply.github.com>
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