-
Notifications
You must be signed in to change notification settings - Fork 124
Vector Embeddings: Add example w/ Cloud SDK for AI #1914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise LGTM!
Co-authored-by: Matthias Kuhr <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@renejeglinsky could you please review and merge? |
entity Books : cuid { | ||
title : String(111); | ||
description : LargeString; | ||
embedding : Vector(1536); // adjust dimensions to embedding model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do I get the number to define my embedding model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The embedding dimensions are a property of the chosen embedding model and documented by the model provider (usually also in the mteb leaderboard).
For example the gemini-embedding-001
has up to 3072 dimensions and text-embedding-3-small
has 1536.
I'll try to make this clearer from the description.
I removed the profiled content as we want to reduce the usage of this toggle and maybe even remove it completely. |
Adds example code and link to SAP Cloud SDK for AI