Skip to content

Commit

Permalink
Jupyter notebook and DT questions updated Solution ID : SO9409
Browse files Browse the repository at this point in the history
  • Loading branch information
gtraja committed Nov 27, 2024
1 parent 7c60530 commit 487bbf3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 10 deletions.
7 changes: 4 additions & 3 deletions src/genai-chatbot-app/app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ class AppConfig:
##### Supplier Quality
1. Who are the suppliers for the part Turbo-Motor-11234?
2. Which supplier is recommended for part Turbo-Motor-11234 based on highest quality score?
3. What is the lead time and corrective action response time for Max Holdings?
4. Do you have a SOP? please provide me the SOP url.
3. Can you provide some information about the supplier Max Holdings?
4. What is the lead time and corrective action response time for Max Holdings?
5. Do you have a SOP? please provide me the SOP url.
##### Sustainability
1. Can you provide the lca, pcf and scope3 emissions data for the part Turbo-Motor-11234?
Expand All @@ -93,7 +94,7 @@ class AppConfig:
##### Predictive Maintenance
1. When is the next scheduled maintenance for the part Turbo-Motor-11234?
2. Are there any anomalies detected for the turbo motor?
2. Are there any anomalies detected for the part Turbo-Motor-11234?
3. Any historical trend suggestions for the part Turbo-Motor-11234?
'''
Expand Down
38 changes: 31 additions & 7 deletions src/knowledge-graph/mfg-neptune-bulk-import.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"id": "6d4a6f0f",
"metadata": {},
"source": [
"Let's start by first validating the connection by checking the status API endpoint of your graph."
"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."
]
},
{
Expand Down Expand Up @@ -93,7 +93,7 @@
"metadata": {},
"source": [
"## Set data source s3 bucket\n",
"The cell below list buckets in your Amazon S3. Please input the s3 bukcet location for the Neptune s3 bulk import."
"The cell below list the Amazon S3 buckets. "
]
},
{
Expand All @@ -109,6 +109,14 @@
"!aws s3 ls"
]
},
{
"cell_type": "markdown",
"id": "c68a7a0f",
"metadata": {},
"source": [
"Before running the below command, please replace '<account_id>' with the aws account id. Refer the Amazon S3 bucket name from previous list command."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -118,7 +126,7 @@
},
"outputs": [],
"source": [
"# input your neptune bulk import data source in Amazon S3 (e.g. mfg-digitalthread-data-<account_id>)\n",
"# 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",
"s3_bucket = \"mfg-digitalthread-data-<account_id>\"\n",
"s3_source = f\"s3://{s3_bucket}/sample_data\""
]
Expand All @@ -142,7 +150,7 @@
"metadata": {},
"source": [
"## Load data \n",
"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."
"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."
]
},
{
Expand All @@ -158,6 +166,14 @@
"%load -f csv -s {s3_source}/vertices --run "
]
},
{
"cell_type": "markdown",
"id": "8dc4f646",
"metadata": {},
"source": [
"Please wait until the vertices are loaded successfully!!!!"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -171,6 +187,14 @@
"%load -f csv -s {s3_source}/edges --run"
]
},
{
"cell_type": "markdown",
"id": "7b5d7c62",
"metadata": {},
"source": [
"Please wait until the edges are loaded successfully!!!!"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -188,7 +212,7 @@
"metadata": {},
"source": [
"# Verify data\n",
"The cell below list the summary of the Neptune Graph database. Suppose the nodes and edges are successfully imported into it."
"Please wait for 2 minutes before running the summary command. Summary command lists the nodes and edges imported into the Neptune Graph database. "
]
},
{
Expand All @@ -209,7 +233,7 @@
"metadata": {},
"source": [
"# Visualize the graph\n",
"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."
"The cell below displays the graph with the vertices and edges along with the properties. Please click on \"Graph\" tab to view the graph."
]
},
{
Expand All @@ -235,7 +259,7 @@
"metadata": {},
"source": [
"# Query the graph\n",
"The cells below try to query the graph using OpenCypher."
"The below opencypher queries are just sample queries. It is not mandatory to run these queries as part of this workshop."
]
},
{
Expand Down

0 comments on commit 487bbf3

Please sign in to comment.