Skip to content

Embeddings: Stored calculated elements + localized - #2859

Open
MattSchur wants to merge 2 commits into
mainfrom
embeddings-localized
Open

Embeddings: Stored calculated elements + localized#2859
MattSchur wants to merge 2 commits into
mainfrom
embeddings-localized

Conversation

@MattSchur

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread guides/ai/embeddings.md
:::

::: warning Embedding localized elements
A stored ([on-write](../../cds/cdl#on-write)) calculated element **cannot** reference [localized](../uis/localized-data) elements. Instead, embed the default language and use a **multilingual embedding model** so that queries in other languages still match.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

how does this work from a modeling perspective?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Currently only via a separate (non-localized) element with the default language. The compiler could use the default language column in the generated DDL to fix this.

Comment thread guides/ai/embeddings.md Outdated
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.

2 participants