Skip to content

Commit

Permalink
WMS ID 11694 - updates to lab (#139)
Browse files Browse the repository at this point in the history
* updated changes and screenshots

* updated instructions

* updates to lab
  • Loading branch information
ramumg authored Aug 22, 2024
1 parent 27e76a8 commit 94d09da
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion adb-graph/graph-ml-23ai/import-notebook/import-notebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## Introduction

Notebooks enable you to execute code and to work interactively with long workflows. You can analyze and visualize graph results using a notebook. In this lab we will be exporting the movie_recommendations notebook.
Notebooks enable you to execute code and to work interactively with long workflows. You can analyze and visualize graph results using a notebook. In this lab we will be importing the movie_recommendations notebook.

Estimated Time: 15 minutes.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified adb-graph/graph-ml-23ai/query-graph/images/call-genai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified adb-graph/graph-ml-23ai/query-graph/images/create-table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified adb-graph/graph-ml-23ai/query-graph/images/generated-email.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions adb-graph/graph-ml-23ai/query-graph/query-graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ Maybe she will be interested in getting together with the same group of people t
SELECT C1NAME, C2NAME, MOVIE_TITLE, svec
FROM GRAPH_TABLE(MOVIE_RECOMMENDATIONS
MATCH (c1 is CUSTOMER) -[e is WATCHED_WITH]-> (c2 is CUSTOMER)-[w is WATCHED]-> (m is MOVIE)
WHERE c1.CUST_ID = 1005510
WHERE e.MOVIE_ID = m.MOVIE_ID AND c1.CUST_ID = 1005510
COLUMNS (c1.FIRST_NAME as C1NAME, C2.FIRST_NAME as C2NAME, m.MOVIE_ID as m_id, m.TITLE as MOVIE_TITLE, m.YEAR as MOVIE_YEAR, m.SUMMARY_VEC as svec, vertex_id(c1) as c1id, edge_id(e) as eid, vertex_id(c2) as c2id, edge_id(w) as wid, vertex_id(m) as mid)
)
)
ORDER BY vec_dist desc;</copy>
ORDER BY vec_dist;</copy>
```
![Parties Adriana has been to, and the watch party movie similar to The Fall Guy](images/watch-parties-v2.png " ")
Expand Down Expand Up @@ -256,7 +256,8 @@ Maybe she will be interested in getting together with the same group of people t
TASK VARCHAR2(40),
PROMPT VARCHAR2(400),
PROFILE_NAME VARCHAR2(40),
ACTION VARCHAR2(40)
ACTION VARCHAR2(40),
CONSTRAINT id_pk PRIMARY KEY(ID)
);</copy>
```
Expand All @@ -269,7 +270,7 @@ Maybe she will be interested in getting together with the same group of people t
INSERT INTO PROMPT VALUES (
1,
'TASK',
'Write an email inviting this person to a watch party on the moviestream platform with watch Star Wars Episode IX The Rise of Skywalker tonight at 8pm',
'Write an email inviting this person to a watch party on the moviestream platform to watch The Fall Guy tonight at 8pm',
'GENAI',
'chat'
);</copy>
Expand Down Expand Up @@ -306,6 +307,8 @@ Maybe she will be interested in getting together with the same group of people t
GenAI Answer:
![Email generated by LLM.](images/answer-generated-email.png " ")
Your LLM answer might vary because each time you submit a prompt, it can produce a different response.
This concludes this lab.
Expand Down

0 comments on commit 94d09da

Please sign in to comment.