Skip to content

Commit 7e5ea2a

Browse files
committed
README instructions for basic AskME features
Signed-off-by: majolr <[email protected]>
1 parent 844d545 commit 7e5ea2a

File tree

8 files changed

+44
-6
lines changed

8 files changed

+44
-6
lines changed

askme/README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,50 @@ AskME is a suite of features designed to empower users to maximize the potential
1313

1414
5. Knowledge Base Management: Users can create and delete the vector tables.
1515

16-
## Getting Started
16+
## Prerequisite
1717

1818
You must have an OCI account. [Click here](https://docs.oracle.com/en/cloud/paas/content-cloud/administer/create-and-activate-oracle-cloud-account.html) for more information about Oracle Cloud account creation and activation. Free-tier accounts are currently not supported for the deployment of AskME resources.
1919

2020
There are required OCI resources (see the [Terraform documentation](./terraform/README.md) for more information) that are needed for this tutorial.
2121

22+
## Getting Started: answer questions using your documents
23+
24+
### Create a vector table
25+
26+
In the AskME app, it is easy to use your documents to create a new vector table.
27+
28+
<div style="text-align: center;" >
29+
<img src="assets/askme_kb_interface.png" alt="AskME Knowledge Base interface" width="72%" >
30+
</div>
31+
32+
From the `Knowledge Base Management` tab (<span style="color:red">**1**</span>), under `Create Vector Table` (<span style="color:red">**2**</span>), you can choose to upload one or more documents to AskME (<span style="color:red">**3**</span>):
33+
- Here is a sample document you can download and use for that purpose: [Onboarding Checklist for New Hires at Nexus Innovations.pdf](./assets/Onboarding%20Checklist%20for%20New%20Hires%20at%20Nexus%20Innovations.pdf)<br />
34+
- Feel free to use your own documents to try the vector table creation.
35+
36+
After having browsed and selected the relevant files, you can change the vector table name if the default one does not match your needs (<span style="color:red">**4**</span>).<br />
37+
This name will be used to identify the vector table, and may correspond to the common denominator of all selected files.
38+
39+
Then click on the `Upload` button to start the vector table creation process (<span style="color:red">**5**</span>).<br />
40+
For the sample document provided earlier, this process should take 30-60 seconds. It may take several minutes if multiple files/bigger files are selected.
41+
42+
Once the vector table has been created, a green message is displayed, explaining that the table creation was successful, and the new table name should be added to the `Selected Vector Tables` list (<span style="color:red">**6**</span>).
43+
<br />
44+
45+
### Use the vector table to answer questions
46+
47+
Any existing vector table can be used in AskME to generate an accurate answer, with references to the original documents.
48+
49+
<div style="text-align: center;" >
50+
<img src="assets/askme_answer_interface.png" alt="AskME free-style answer" width="72%" >
51+
</div>
52+
53+
From the `Free-style Answer` tab (<span style="color:red">**1**</span>), you can enter your question in the input field (<span style="color:red">**3**</span>).<br />
54+
Here, we choose to ask a question related to the sample document uploaded in the previous section: *What are the onboarding steps for new hires at Nexus Innovation?*
55+
56+
Please make sure that all vector tables needed for the question are selected in the Knowledge Base Selection area (<span style="color:red">**2**</span>), and then you can click on the `Answer Question` button (<span style="color:red">**4**</span>).
57+
58+
The answer should appear under the `Answer Question` button after a few seconds, followed by a clickable list of document references that have been used to generate the answer.
59+
2260
## Contributing
2361

2462
This project is open source. Please submit your contributions by forking this repository and submitting a pull request! Oracle appreciates any contributions that are made by the open source community.
202 KB
Loading
193 KB
Loading
212 KB
Loading

askme/terraform/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Deploy AskME resources with terraform
44

5-
This section explains how to deploy AskME in your tenancy, using the OCI Cloud Shell and terraform. The following resources are created during the process:
5+
This section explains how to deploy AskME in your tenancy, using the OCI Cloud Shell and terraform. The following resources are automatically created during the process:
66
- A dynamic group and a policy in the root compartment
77
- A Compartment for the AskME resources
88
- An Object Storage bucket containing two documents
@@ -21,6 +21,8 @@ You need to have the [Administrator role](https://docs.oracle.com/en-us/iaas/Con
2121

2222
![OCI starting page, developer tools](assets/oci_home_page_dev_tools.png)
2323

24+
![OCI starting page, cloud shell](assets/oci_home_page_cloud_shell.png)
25+
2426
## Step 2: Get the repository archive
2527
In the Cloud Shell interface, fetch the tech-content-heatwave repository archive.
2628

@@ -29,16 +31,12 @@ Command:
2931
wget -O tech-content-heatwave.zip -nv https://github.com/oracle-devrel/tech-content-heatwave/archive/refs/heads/tech-content-heatwave_askme.zip
3032
```
3133

32-
![Cloud Shell: get repository archive](assets/cloud_shell_fetch.png)
33-
3434
## Step 3: Unzip the archive
3535
Command:
3636
```
3737
unzip tech-content-heatwave.zip '*/askme/*' -d tech-content-heatwave
3838
```
3939

40-
![Cloud Shell: unzip repository archive](assets/cloud_shell_unzip.png)
41-
4240
## Step 4: Change directory to the terraform folder
4341
Command:
4442
```
@@ -76,6 +74,8 @@ Set of IPv4 addresses (CIDR notation) allowed to connect to the compute instance
7674

7775
The CIDR notation follows the format: `a.b.c.d/e` where `a`, `b`, `c` and `d` are numbers between 0 and 255, and `e` is a number between 0 and 32. More information about the CIDR block notation in the [Network Overview](https://docs.oracle.com/en-us/iaas/Content/Network/Concepts/overview.htm#:~:text=CIDR%20NOTATION) page.
7876

77+
Use `0.0.0.0/0` to indicate all IP addresses. The prefix is required (for example, include the /32 if specifying an individual IP address). For more information, check the [Security Rules](https://docs.oracle.com/en-us/iaas/Content/Network/Concepts/securityrules.htm) page.
78+
7979
![Deployment script: IPv4 CIDR block input parameter](assets/cloud_shell_script_ip_cidr.png)
8080

8181
### Step 6.c: SSH authorized key
-101 KB
Binary file not shown.
-114 KB
Binary file not shown.
148 KB
Loading

0 commit comments

Comments
 (0)