Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
davidastart committed Sep 2, 2024
1 parent c841cc9 commit 816fa6c
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions ai-vector-image/apex/apex.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -66,7 +66,7 @@ This task you will log into APEX with the ADMIN user and create a workspace for
- Email: [email protected] (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

Expand All @@ -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.

Expand Down Expand Up @@ -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.

Expand All @@ -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.

Expand All @@ -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:

```
<copy>
select URL,
```
<copy>
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
</copy>
```
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
</copy>
```
![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
Expand All @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -281,33 +281,33 @@ 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
- Right click on img and choose comment out
- 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
![Image alt text](images/lab4_63a.png)
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
Expand Down Expand Up @@ -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.
Expand All @@ -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)
Expand All @@ -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.
Expand Down

0 comments on commit 816fa6c

Please sign in to comment.