Skip to content

tag rerankers and embedders by name on backends that report no kind - #248

Merged
thushan merged 5 commits into
mainfrom
feature/kind-name-patterns
Oct 27, 2026
Merged

thushan merged 5 commits into
mainfrom
feature/kind-name-patterns

Conversation

@thushan

@thushan thushan commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Review as a unit or squash: 49dfd71 does not pass make ready on its own (lint); the final b5099da does.

Summary

vLLM and other OpenAI-style servers don't report what a model is, so a reranker or embedder looked like a chat model and model-less rerank and embeddings requests could be sent to it for the wrong job, or miss it.

config/models.yaml gains two capabilities.name_patterns entries. Names containing rerank (bge-reranker-v2-m3, Qwen3-Reranker) get rerank. Common embedders (bge-m3, e5-large, nomic-embed, snowflake-arctic-embed2, all-MiniLM, multi-qa-*, msmarco-*, stella-*) get embeddings, similarity and vector-search. These models drop text-generation and chat, so gte-Qwen2-7B-instruct is no longer a chat model. Cross-encoder and embedding-reranker names don't pick up embedder tags. The logic is in metadata_extractor.go, with defaults in model_config.go so a custom models.yaml that omits type_capabilities and thresholds still works.

A kind the backend reports (llm, vlm) and capabilities it declares are never overridden. Reranker capabilities stay rerank and classification. A custom models.yaml with its own name_patterns list needs the two entries added to benefit.

Type of change

  • New feature
  • Documentation

How was this tested?

New tests in metadata_extractor_test.go:

  • TestInferCapabilities_RerankAndEmbedNamePatterns
  • TestInferCapabilities_ReportedKindAndDeclarationsBeatNamePatterns

handler_proxy_embeddings_mixed_fleet_test.go is updated for the new tagging.

Tested together with the other October follow-up branches on a local integration branch at 0c25e0a:

  • make ready and make test-race pass at 0c25e0a
  • /olla-validate --quick: 42 pass, 0 fail (warnings and skips are nightly-only items)
  • tei-routing validation area: Section A 12/12, Section B B1 to B6 pass
  • /test-sticky-sessions: no new failures (the 7 provider-route 404s are the known shared-mock-URL limitation)
  • /claude-code-e2e against real Ollama: Tier A 16/0 on both the passthrough and translation legs, same as main
  • curl checks per feature against real Ollama and ollamock; log scan shows no panics, races or per-request WARN floods

Checklist

  • make ready passes at b5099da
  • Tests added or updated for the change
  • Documentation updated: docs/content/concepts/model-unification.md, v0.0.30 release note
  • No new dependencies added

@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between e8ef6af and b5099da.

Files selected for processing: 7
  • config/models.yaml
  • docs/content/about/release-notes.md
  • docs/content/concepts/model-unification.md
  • internal/adapter/unifier/metadata_extractor.go
  • internal/adapter/unifier/metadata_extractor_test.go
  • internal/adapter/unifier/model_config.go
  • internal/app/handlers/handler_proxy_embeddings_mixed_fleet_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thushan
thushan merged commit d0fe817 into main Oct 27, 2026
6 checks passed
@thushan
thushan deleted the feature/kind-name-patterns branch October 27, 2026 21:23
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