diff --git a/ai-vector-image/apex/apex.md b/ai-vector-image/apex/apex.md index cbbef2a7..4eb6775d 100644 --- a/ai-vector-image/apex/apex.md +++ b/ai-vector-image/apex/apex.md @@ -37,7 +37,7 @@ This task you will log into APEX with the ADMIN user and create a workspace for - APEX Workspace User - APEX Workspace Password - ![Image alt text](images/lab4_3a.png) + ![Image alt text](images/lab4_3a.png) 4. It will ask you to change the password. You can change the password or you can use the existing password @@ -66,7 +66,7 @@ This task you will log into APEX with the ADMIN user and create a workspace for - Email: test@test.com (Any email address will work.) - Click Next - ![Image alt text](images/lab4_9.png) + ![Image alt text](images/lab4_9.png) 10. Click Create Workspace @@ -89,7 +89,7 @@ This task you will log into APEX with the ADMIN user and create a workspace for - Username: vectoruser - Password: Welcome_1 (or the password you created) - ![Image alt text](images/lab4_15a.png) + ![Image alt text](images/lab4_15a.png) 16. Again you will be asked to create a new password. You can use the same password or change it. @@ -127,14 +127,14 @@ In this task you will create the Image Gallery page. This page will display the - Under **Data Source**: Table/View Name: VECTOR_IMAGE - Click Next - ![Image alt text](images/lab4_21a.png) + ![Image alt text](images/lab4_21a.png) 4. On this page: - For **Cards Layout** select: **Float** - Under **Cards Attributes** select: **Title Column** in the URL field from the table - Click on Create Page - ![Image alt text](images/lab4_22a.png) + ![Image alt text](images/lab4_22a.png) 5. On the left panel under `Page*: Image Gallery`: under the section Body, right click Body and choose "**Create Page Item**". We will use this as a text entry box for searching. @@ -144,7 +144,7 @@ In this task you will create the Image Gallery page. This page will display the - Change the name of the item you just created to P4\_SEARCH\_ITEM. - Change Submit when Enter pressed to On - ![Image alt text](images/lab4_25a.png) + ![Image alt text](images/lab4_25a.png) 7. In the panel on the left, Drag the P4\_SEARCH\_ITEM up above the Image Gallery page item. This will make it so your search box will be at the top of the page. @@ -155,30 +155,30 @@ In this task you will create the Image Gallery page. This page will display the - Under **Source**, change the **Type** to **SQL Query**. - ![Image alt text](images/lab4_28a.png) + ![Image alt text](images/lab4_28a.png) - For the **SQL Query**, paste the following: - ``` - - select URL, + ``` + + select URL, IMG, UFORM_DESC, UFORM_VECTOR, NLP_DESC, NLP_VECTOR - from VECTOR_IMAGE - ORDER BY VECTOR_DISTANCE( uform_vector, vector_embedding(minilm12v2 using :P4_SEARCH_ITEM as data), EUCLIDEAN ) - FETCH EXACT FIRST 2 ROWS ONLY - - ``` + from VECTOR_IMAGE + ORDER BY VECTOR_DISTANCE( uform_vector, vector_embedding(minilm12v2 using :P4_SEARCH_ITEM as data), EUCLIDEAN ) + FETCH EXACT FIRST 2 ROWS ONLY + + ``` - ![Image alt text](images/lab4_29.png) + ![Image alt text](images/lab4_29.png) - In the **Page Items to Submit** section, click on the menu button on the right and select **P4\_SEARCH\_ITEM**. - ![Image alt text](images/lab4_30.png) - ![Image alt text](images/lab4_31.png) + ![Image alt text](images/lab4_30.png) + ![Image alt text](images/lab4_31.png) 9. Click on the Attributes Tab @@ -189,14 +189,14 @@ In this task you will create the Image Gallery page. This page will display the - Change the **Source**: Blob Column - **Blob Column**: IMG - ![Image alt text](images/lab4_33.png) - ![Image alt text](images/lab4_34.png) + ![Image alt text](images/lab4_33.png) + ![Image alt text](images/lab4_34.png) - Scroll up to **Card** - Primary Key Column 1: URL - Click on Save at the top of the page - ![Image alt text](images/lab4_35.png) - ![Image alt text](images/lab4_36.png) + ![Image alt text](images/lab4_35.png) + ![Image alt text](images/lab4_36.png) 11. Right click on the ORDER\_BY in the left panel and select delete. It will have a P2 or another number based on the number your page. ![Image alt text](images/lab4_37.png) @@ -214,7 +214,7 @@ In this task you will create the Image Gallery page. This page will display the - Username: vectoruser - Password: Welcome_1 (Or whatever password you set it to) - ![Image alt text](images/lab4_40.png) + ![Image alt text](images/lab4_40.png) 15. Try typing in Fruit or Climbing in the search bar @@ -243,7 +243,7 @@ In this task you will create the Image Detail Page that will display information - Table/View Name: VECTOR_IMAGE - Click Create Page - ![Image alt text](images/lab4_46a.png) + ![Image alt text](images/lab4_46a.png) 6. On the left panel where you see the section called Body, right click on the word Body and choose "Create Page Item". This will be a variable so that you can pass which image you want to see the detail from the Image Gallery page. @@ -281,9 +281,9 @@ In this task you will create the Image Detail Page that will display information - Right click on uform_vector and choose comment out - Right click on nlp_vector and choose comment out - ![Image alt text](images/lab4_57a.png) - ![Image alt text](images/lab4_58a.png) - ![Image alt text](images/lab4_59a.png) + ![Image alt text](images/lab4_57a.png) + ![Image alt text](images/lab4_58a.png) + ![Image alt text](images/lab4_59a.png) 14. Expand the columns list of the bottom image detail page item and do the following: - Right click on url and choose comment out @@ -291,9 +291,9 @@ In this task you will create the Image Detail Page that will display information - Right click on uform_desc and choose comment out - Right click on nlp_desc and choose comment out - ![Image alt text](images/lab4_60a.png) - ![Image alt text](images/lab4_61a.png) - ![Image alt text](images/lab4_62a.png) + ![Image alt text](images/lab4_60a.png) + ![Image alt text](images/lab4_61a.png) + ![Image alt text](images/lab4_62a.png) 15. Right click on Body in the left panel and click on Create Button @@ -301,13 +301,13 @@ In this task you will create the Image Detail Page that will display information 16. Click on the button on the left and in the Button panel on the right change the following: - Button Name: Back\_to\_Images - ![Image alt text](images/lab4_65a.png) + ![Image alt text](images/lab4_65a.png) - The label should automatically change to Back To Images - Scroll down to Behavior and make the following changes: - Action: Redirect to to Page in this Application - ![Image alt text](images/lab4_66a.png) + ![Image alt text](images/lab4_66a.png) - Target: Click on Link to bring up the dialog - ![Image alt text](images/lab4_67a.png) + ![Image alt text](images/lab4_67a.png) - Click on the menu on the page box ![Image alt text](images/lab4_68a.png) - Click on the number next to the Image Gallery. In my case I would click on 2 @@ -341,22 +341,22 @@ In this task you will link the Image Gallery page to the Image Detail Pages so w 5. In the Action Panel on the right make the following changes - Identification -> Type: Media - ![Image alt text](images/lab4_77.png) + ![Image alt text](images/lab4_77.png) - Under link Change - Type: Redirect to Page in this Application - ![Image alt text](images/lab4_78a.png) + ![Image alt text](images/lab4_78a.png) - Click on Target - ![Image alt text](images/lab4_79a.png) + ![Image alt text](images/lab4_79a.png) - Click on the menu on the Page box which should pop up the list of pages in your application - ![Image alt text](images/lab4_80a.png) + ![Image alt text](images/lab4_80a.png) - Click on the number of the page for the "Image Detail" page. In my case I would click on the 3 - ![Image alt text](images/lab4_81.png) + ![Image alt text](images/lab4_81.png) - In the Set Items section: - Click on the menu button next to the box for Name. @@ -372,7 +372,7 @@ In this task you will link the Image Gallery page to the Image Detail Pages so w - Click on the menu on the Link Attributes box and select URL - ![Image alt text](images/lab4_86a.png) + ![Image alt text](images/lab4_86a.png) 6. Click Save on the page ![Image alt text](images/lab4_87.png) @@ -381,18 +381,18 @@ In this task you will link the Image Gallery page to the Image Detail Pages so w 1. To run your application do one of the following: - If you are still on the Image Gallery page you can click on the run button to start your application. - ![Image alt text](images/lab4_task6_1.png) + ![Image alt text](images/lab4_task6_1.png) - If you are on the Application Builder home page then click on the Image Gallery page and then click the run button. - ![Image alt text](images/lab4_89.png) - ![Image alt text](images/lab4_90.png) + ![Image alt text](images/lab4_89.png) + ![Image alt text](images/lab4_90.png) 2. If you need to login use: - Username: vectoruser - Password: Welcome_1 (or whatever password you set for vectorimage) - ![Image alt text](images/lab4_91.png) + ![Image alt text](images/lab4_91.png) 3. If you want you can click on the Menu and select Image Gallery to get to the Image Gallery page as well.