Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Submissions for "SAP HANA Cloud multi-model" developer challenge: Week 3 - Image Embeddings

Vitaliy-R
Developer Advocate
Developer Advocate

This discussion thread is to submit your solution for Week 3 "Image Embeddings"  if you are participating in the June 2024 developer challenge "Multi-model in SAP HANA Cloud" 🤓

 

👉Please use this separate thread to ask your questions and discuss issues. Keep this thread for your submissions only.

4️⃣ Post your Week 4 "Geospatial and Graphs" submissions here: https://community.sap.com/t5/application-development-discussions/submissions-for-quot-sap-hana-cloud... 

2️⃣Post your Week 2 "Words as Vectors" submissions here: https://community.sap.com/t5/application-development-discussions/submissions-for-quot-sap-hana-cloud... 

1️⃣Post your Week 1 "Setup" submissions here: https://community.sap.com/t5/application-development-discussions/submissions-for-quot-sap-hana-cloud...

43 REPLIES 43
Read only

Vitaliy-R
Developer Advocate
Developer Advocate
0 Likes
15,311

Thank you for being the first @Cocquerel 

Will you try any of the additional challenges from the bottom of that notebook?

Read only

Cocquerel
Active Contributor
15,306

Thanks @Vitaliy-R , I liked your typos.
Yes, I'm planning to do the additional challenges but I have also one for you if you accept it.
For week2, I have suggested an alternative method for the analogy search that provides good results in some use cases (see https://community.sap.com/t5/application-development-discussions/submissions-for-quot-sap-hana-cloud... ) I have faced the issue that HANA Vector engine does not support SUM operation yet and decided to do it on python side. Would you be able to do it on HANA side using SQL Script ? The SQL functions TO_ARRAY, UNNEST and CARDINALITY may be useful...waiting for your submission 😁

Read only

Vitaliy-R
Developer Advocate
Developer Advocate
0 Likes
15,301

Yes, I saw your post, but I am on the road right now and could not spend more time looking at it, I apologize.

Read only

Cocquerel
Active Contributor
Read only

Cocquerel
Active Contributor
Read only

Vitaliy-R
Developer Advocate
Developer Advocate
Read only

Cocquerel
Active Contributor
Read only

Cocquerel
Active Contributor
13,689

I saw that in the last HANA Cloud release, CARDINALITY and MEMBER_AT Functions now support Vector data type. There is maybe no more need to convert to Array.

Cocquerel_0-1719470455704.png

 

Read only

Vitaliy-R
Developer Advocate
Developer Advocate
0 Likes
13,683

It was too short a time between the release of Q2 HANA Cloud and week 4 of the dev challenge to prepare something based on that release 😭

Read only

Cocquerel
Active Contributor
0 Likes
13,663

I also saw that Q2 HANA Cloud is also now supporting Vector in Graph. I would have been curious about which use cases you would have chosen to illustrate that. Example, use COMMUNITIES_LOUVAIN Built-In Graph Algorithm to create communities of similar pets...

Read only

mvinci
Product and Topic Expert
Product and Topic Expert
15,184

Here is my submission - I don't want to spoil too much I will send you a separate email to make a list of those errors really good for learnings ... 🙂 

 

mvinci_0-1718883101925.png

 

Read only

mvinci
Product and Topic Expert
Product and Topic Expert
14,357

Hi Vitaliy, i thought that I would cut out the rest of the team if I'd send you an email for the errors. So here you have my comments for everyone to see and to comment.

The whole idea to inject errors is excellent. I like it.

Some of them are very useful to understand what is missing such as a wrong data type name and the need to transform the string into the key data type we need to learn in these series. 

Some of them as environment related (raw versus python) and they were too evident although not immediate to resolve

Finally the last group of errors and funny (INSANE) and clearly misspelled to give time to recover easily with smile.

Having said that during the exercise I have to confess that I thought you went from zero to infinite and maybe having just a few errors very well designed as the TO_REAL_VECTOR() would have been more effective. 

In general I am learning a lot so I thank you very much. 

Read only

Sai_Nithesh_G
Contributor
Read only

MioYasutake
SAP Champion
SAP Champion
15,097

My submission for week 3. My challenge was to find the row number of the image I liked.

MioYasutake_1-1718916678898.png

Read only

raulruiz
Explorer
15,054

Insane similarity? LOL!! I loved it 

By the way, my responses. More similar:

raulruiz_0-1718919256651.png

Less similar

raulruiz_1-1718919760590.png

raulruiz_2-1718919776324.png

I have no pet for the last topic so I tried with an image from me just for fun. Well, the result.....  I guess I deserved it, I knew something like this could happen 🙂 🙂

raulruiz_4-1718921203736.png

 

raulruiz_3-1718921125554.png

 

Read only

geek61
Participant
14,892

There must be a happy middle ground between just pressing buttons in a workbook and this much head scratching:

geek_0-1718989715493.png

 

Read only

Vitaliy-R
Developer Advocate
Developer Advocate
Read only

Cocquerel
Active Contributor
14,457

From my perspective, I think your idea of introducing errors was brilliant. It indeed requires effort to understand and analyze the code, but that’s precisely the intended goal. For some errors, I wondered whether they were part of the challenge or due to my environment. Having a list of expected errors would have been less confusing. I also appreciated the open-ended questions at the end. 😊

Read only

14,106

@Vitaliy-R Think that I take back the earlier comment, was trying to solve the bugs from first principles and struggling but if one refers back to the previous week, the answers were almost all there. 

Read only

Alpesa1990
Participant
14,477

My Submission for this week.

More Simlar

Alpesa1990_0-1719058989581.png

Less Similar

Alpesa1990_0-1719092385509.png

and my dog which I always thought was a dog.

Alpesa1990_1-1719093204892.png

 

Congrats for the challenge!

Read only

gphadnis2000
Participant
14,293

Hi Vitaliy,

Indeed it was tough checking errors but also make you learn new things.I will try more different combinations but my trial account is about to expire.Here is my week3 submission.

gphadnis2000_0-1719147016438.png

 

Read only

DirkO
Participant
14,258

Hello Hello Witalij,

pls find my submission for week 3.

DirkO_0-1719155489266.png

Seems to be a popular combination here, right?

Kind regards,

DirkO

 

Read only

M-K
Active Participant
14,205

Here's my submission. The first combination was already good 😊

2024-06-23 19_51_19-Window.png

Good idea with those coding errors, fixing them has had taught me much more than last week's challenge.

Read only

moh_ali_square
Participant
14,067

My Submission for this week. I stumbled with one typo, with overthinking, it took many hours. but finally I landed here.

Week3_submission.png 

Read only

Read only

jpenninkhof
Product and Topic Expert
Product and Topic Expert
14,023

Lola is actually a British shorthair. Ah well, nobody's perfect, right? 😜

jpenninkhof_0-1719264170064.png

Enjoyed the bug-hunting! 😁

 

Read only

0 Likes
13,960

So, what were the next entries on the list of similarities for Lola, and with what similarity scores?

Read only

SushmitaG98
Participant
13,910

Absolutely loved the challenge and all thanks to you...We are getting a good hands-on exercises.Screenshot 2024-06-26 at 9.17.04 AM.png

Read only