Skip to content

IBX-11401: Fixed embedding default model inheritance and added field name fallback prefixes#719

Merged
mikadamczyk merged 3 commits intomainfrom
IBX-11401-embedding-field-name
Mar 10, 2026
Merged

IBX-11401: Fixed embedding default model inheritance and added field name fallback prefixes#719
mikadamczyk merged 3 commits intomainfrom
IBX-11401-embedding-field-name

Conversation

@mikadamczyk
Copy link
Contributor

@mikadamczyk mikadamczyk commented Feb 26, 2026

🎫 Issue IBX-11401

Related PRs:

Description:

This PR contains two related core changes needed for Gemini embedding integration and backward-compatible search field naming.

Fixed default_embedding_model inheritance across SiteAccess scopes

Embeddings parser no longer defines a semantic default value for default_embedding_model. A scalar default defined in the semantic config node was being materialized into every SiteAccess/group scope during mapSetting(). This prevented proper inheritance from system.default overrides (e.g., Gemini config set in project config), because scopes such as site / admin_group ended up with explicit text-embedding-ada-002.

  • Removed semantic defaultValue('text-embedding-ada-002') from Embeddings parser
  • Kept the default in core default settings (ibexa.site_access.config.default.default_embedding_model), so BC is preserved
Added generic field name fallback prefixes in FieldNameGenerator

FieldNameGenerator now supports configurable fallback prefixes used when no explicit field type mapping exists. New embedding models should not require adding a dedicated common.yml mapping entry for every model suffix. We need a generic way to turn ibexa_dense_vector_<suffix> into backend field suffix

  • Existing explicit mappings (e.g., OpenAI suffixes) remain unchanged and still take precedence
  • The inheritance fix restores the expected system.default override behavior without changing existing explicit SiteAccess/group overrides

For QA:

Documentation:

@mikadamczyk mikadamczyk self-assigned this Feb 26, 2026
@mikadamczyk mikadamczyk requested a review from a team February 27, 2026 07:38
@ibexa-workflow-automation-1 ibexa-workflow-automation-1 bot requested review from Steveb-p, ViniTou, alongosz, barw4, ciastektk, konradoboza, tbialcz and wiewiurdp and removed request for a team February 27, 2026 07:44
Copy link
Contributor

@barw4 barw4 left a comment

Choose a reason for hiding this comment

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

Aside from Konrad's remarks

@tomaszszopinski tomaszszopinski force-pushed the IBX-11401-embedding-field-name branch from d1e62cf to 06cd3ab Compare March 4, 2026 07:20
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 2026

@tomaszszopinski tomaszszopinski self-assigned this Mar 4, 2026
Copy link

@tomaszszopinski tomaszszopinski left a comment

Choose a reason for hiding this comment

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

QA approved on Ibexa v5 ES/Solr.

@mikadamczyk mikadamczyk merged commit d01b203 into main Mar 10, 2026
16 checks passed
@mikadamczyk mikadamczyk deleted the IBX-11401-embedding-field-name branch March 10, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants