Skip to content

Commit af14088

Browse files
committed
Jupyter notebook and DT questions updated Solution ID : SO9409
1 parent 7c60530 commit af14088

File tree

2 files changed

+35
-10
lines changed

2 files changed

+35
-10
lines changed

src/genai-chatbot-app/app_config.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ class AppConfig:
7979
##### Supplier Quality
8080
1. Who are the suppliers for the part Turbo-Motor-11234?
8181
2. Which supplier is recommended for part Turbo-Motor-11234 based on highest quality score?
82-
3. What is the lead time and corrective action response time for Max Holdings?
83-
4. Do you have a SOP? please provide me the SOP url.
82+
3. Can you provide some information about the supplier Max Holdings?
83+
4. What is the lead time and corrective action response time for Max Holdings?
84+
5. Do you have a SOP? please provide me the SOP url.
8485
8586
##### Sustainability
8687
1. Can you provide the lca, pcf and scope3 emissions data for the part Turbo-Motor-11234?
@@ -93,7 +94,7 @@ class AppConfig:
9394
9495
##### Predictive Maintenance
9596
1. When is the next scheduled maintenance for the part Turbo-Motor-11234?
96-
2. Are there any anomalies detected for the turbo motor?
97+
2. Are there any anomalies detected for the part Turbo-Motor-11234?
9798
3. Any historical trend suggestions for the part Turbo-Motor-11234?
9899
99100
'''

src/knowledge-graph/mfg-neptune-bulk-import.ipynb

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"id": "6d4a6f0f",
4949
"metadata": {},
5050
"source": [
51-
"Let's start by first validating the connection by checking the status API endpoint of your graph."
51+
"Run the below commands one at a time. Let's start by first validating the connection by checking the status API endpoint of your graph."
5252
]
5353
},
5454
{
@@ -93,7 +93,7 @@
9393
"metadata": {},
9494
"source": [
9595
"## Set data source s3 bucket\n",
96-
"The cell below list buckets in your Amazon S3. Please input the s3 bukcet location for the Neptune s3 bulk import."
96+
"The cell below list the Amazon S3 buckets. "
9797
]
9898
},
9999
{
@@ -109,6 +109,14 @@
109109
"!aws s3 ls"
110110
]
111111
},
112+
{
113+
"cell_type": "markdown",
114+
"id": "c68a7a0f",
115+
"metadata": {},
116+
"source": [
117+
"Before running the below command, please replace '<account_id>' with the aws account id. Refer the Amazon S3 bucket name from previous list command."
118+
]
119+
},
112120
{
113121
"cell_type": "code",
114122
"execution_count": null,
@@ -118,7 +126,7 @@
118126
},
119127
"outputs": [],
120128
"source": [
121-
"# input your neptune bulk import data source in Amazon S3 (e.g. mfg-digitalthread-data-<account_id>)\n",
129+
"# input your neptune bulk import data source in Amazon S3 (e.g. mfg-digitalthread-data-<account_id>). Make sure to replace the <account_id>\n",
122130
"s3_bucket = \"mfg-digitalthread-data-<account_id>\"\n",
123131
"s3_source = f\"s3://{s3_bucket}/sample_data\""
124132
]
@@ -142,7 +150,7 @@
142150
"metadata": {},
143151
"source": [
144152
"## Load data \n",
145-
"The cell below loads the sample into your Neptune cluster. When you run the cell it will automatically install the `mfg_digital_thread` dataset into your graph which takes a few minutes."
153+
"The cell below loads the sample digital thread data into your Neptune cluster. When you run the cell it will automatically install the `mfg_digital_thread` dataset into your graph which takes a few seconds."
146154
]
147155
},
148156
{
@@ -158,6 +166,14 @@
158166
"%load -f csv -s {s3_source}/vertices --run "
159167
]
160168
},
169+
{
170+
"cell_type": "markdown",
171+
"id": "8dc4f646",
172+
"metadata": {},
173+
"source": [
174+
"Please wait until the vertices are loaded successfully!!!!"
175+
]
176+
},
161177
{
162178
"cell_type": "code",
163179
"execution_count": null,
@@ -171,6 +187,14 @@
171187
"%load -f csv -s {s3_source}/edges --run"
172188
]
173189
},
190+
{
191+
"cell_type": "markdown",
192+
"id": "7b5d7c62",
193+
"metadata": {},
194+
"source": [
195+
"Please wait until the edges are loaded successfully!!!!"
196+
]
197+
},
174198
{
175199
"cell_type": "code",
176200
"execution_count": null,
@@ -188,7 +212,7 @@
188212
"metadata": {},
189213
"source": [
190214
"# Verify data\n",
191-
"The cell below list the summary of the Neptune Graph database. Suppose the nodes and edges are successfully imported into it."
215+
"Please wait for 2 minutes before running the summary command. Summary command lists the nodes and edges imported into the Neptune Graph database. "
192216
]
193217
},
194218
{
@@ -209,7 +233,7 @@
209233
"metadata": {},
210234
"source": [
211235
"# Visualize the graph\n",
212-
"The cell below try to figure out the graph with all vertices and edges with node properties. Please click on \"Graph\" tab to view the graph."
236+
"The cell below displays the graph with the vertices and edges along with the properties. Please click on \"Graph\" tab to view the graph."
213237
]
214238
},
215239
{
@@ -235,7 +259,7 @@
235259
"metadata": {},
236260
"source": [
237261
"# Query the graph\n",
238-
"The cells below try to query the graph using OpenCypher."
262+
"The below opencypher queries are just sample queries. It is not mandatory to run these queries as part of this workshop."
239263
]
240264
},
241265
{

0 commit comments

Comments
 (0)