Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition from working repo #2

Merged
merged 11 commits into from
Mar 29, 2024
Merged
127 changes: 0 additions & 127 deletions 00_[PLEASE READ] Contributing to Solution Accelerators.py

This file was deleted.

10 changes: 5 additions & 5 deletions 01_introduction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Databricks notebook source
# MAGIC %md
# MAGIC You may find this series of notebooks at https://github.com/databricks-industry-solutions/sfdc-byom. For more information about this solution accelerator, visit https://www.databricks.com/solutions/accelerators/sfdc-byom.

# COMMAND ----------

# MAGIC %md
# MAGIC # Set Up, Build, Train, and Deploy model in Databricks

Expand All @@ -21,8 +26,3 @@
# MAGIC
# MAGIC The dataset comprises 1 million records, each containing observations and information about potential predictors and the products historically purchased by customers.
# MAGIC

# COMMAND ----------

# MAGIC %md
# MAGIC
5 changes: 5 additions & 0 deletions 02_ingest_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Databricks notebook source
# MAGIC %md
# MAGIC You may find this series of notebooks at https://github.com/databricks-industry-solutions/sfdc-byom. For more information about this solution accelerator, visit https://www.databricks.com/solutions/accelerators/sfdc-byom.

# COMMAND ----------

# MAGIC %md
# MAGIC # Data Ingestion
# MAGIC
Expand Down
5 changes: 5 additions & 0 deletions 02_ingest_data_bulk.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Databricks notebook source
# MAGIC %md
# MAGIC You may find this series of notebooks at https://github.com/databricks-industry-solutions/sfdc-byom. For more information about this solution accelerator, visit https://www.databricks.com/solutions/accelerators/sfdc-byom.

# COMMAND ----------

# MAGIC %md
# MAGIC # Distributed bulk load example (optional)
# MAGIC
Expand Down
5 changes: 5 additions & 0 deletions 03_exploratory_data_analysis.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Databricks notebook source
# MAGIC %md
# MAGIC You may find this series of notebooks at https://github.com/databricks-industry-solutions/sfdc-byom. For more information about this solution accelerator, visit https://www.databricks.com/solutions/accelerators/sfdc-byom.

# COMMAND ----------

# MAGIC %md
# MAGIC # Exploratory Data Analysis
# MAGIC
Expand Down
5 changes: 5 additions & 0 deletions 04_feature_engineering.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Databricks notebook source
# MAGIC %md
# MAGIC You may find this series of notebooks at https://github.com/databricks-industry-solutions/sfdc-byom. For more information about this solution accelerator, visit https://www.databricks.com/solutions/accelerators/sfdc-byom.

# COMMAND ----------

# MAGIC %md
# MAGIC
# MAGIC # Feature Engineering
Expand Down
5 changes: 5 additions & 0 deletions 05_build_and_train_model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Databricks notebook source
# MAGIC %md
# MAGIC You may find this series of notebooks at https://github.com/databricks-industry-solutions/sfdc-byom. For more information about this solution accelerator, visit https://www.databricks.com/solutions/accelerators/sfdc-byom.

# COMMAND ----------

# MAGIC %md
# MAGIC # Build and Train Model
# MAGIC
Expand Down
5 changes: 5 additions & 0 deletions 06_deploy_serving_endpoint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Databricks notebook source
# MAGIC %md
# MAGIC You may find this series of notebooks at https://github.com/databricks-industry-solutions/sfdc-byom. For more information about this solution accelerator, visit https://www.databricks.com/solutions/accelerators/sfdc-byom.

# COMMAND ----------

# MAGIC %md
# MAGIC # Deploy Serving Endpoint
# MAGIC
Expand Down
5 changes: 5 additions & 0 deletions 07_test_model_inference.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Databricks notebook source
# MAGIC %md
# MAGIC You may find this series of notebooks at https://github.com/databricks-industry-solutions/sfdc-byom. For more information about this solution accelerator, visit https://www.databricks.com/solutions/accelerators/sfdc-byom.

# COMMAND ----------

# MAGIC %md
# MAGIC # Test Model Inference
# MAGIC
Expand Down
5 changes: 5 additions & 0 deletions 08_monitoring.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Databricks notebook source
# MAGIC %md
# MAGIC You may find this series of notebooks at https://github.com/databricks-industry-solutions/sfdc-byom. For more information about this solution accelerator, visit https://www.databricks.com/solutions/accelerators/sfdc-byom.

# COMMAND ----------

# MAGIC %md-sandbox
# MAGIC
# MAGIC # Inference Table Monitoring
Expand Down
25 changes: 12 additions & 13 deletions CONNECTED_APP.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ To be able to access SalesForce Data Cloud via the connector, you'll first need

Log in to Salesforce and go to setup

![image](files/sfdc_byom/images/connected_app_01.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/connected_app_01.png)


### 2. Open up App Manager

Search for App Manager

![image](files/sfdc_byom/images/connected_app_02.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/connected_app_02.png)

When you open it, it should look like this

![image](files/sfdc_byom/images/connected_app_03.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/connected_app_03.png)


### 3. Create Connected App

Click on New Connected App

![image](files/sfdc_byom/images/connected_app_04.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/connected_app_04.png)

1. Give the app a name
2. Enter email
Expand All @@ -35,45 +35,44 @@ Click on New Connected App
2. Access all datacloud resources
3. Perform ANSI SQL queries on DataCloud

![image](files/sfdc_byom/images/connected_app_05.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/connected_app_05.png)

Click on Save.

![image](files/sfdc_byom/images/connected_app_06.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/connected_app_06.png)


### 4. Update policies

In set up go to Manage Connected App

![image](files/sfdc_byom/images/connected_app_07.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/connected_app_07.png)

Click on the newly created connected app and then click on Edit Policies.

![image](files/sfdc_byom/images/connected_app_08.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/connected_app_08.png)

Make sure that under oauth policies we have "Relax IP restrictions" and "Allow all users to self authorize" and then click Save.

![image](files/sfdc_byom/images/connected_app_09.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/connected_app_09.png)


### 5. Set up customer keys (optional)

Click on Manage Customer Keys and provide validation code if applicable.

![image](files/sfdc_byom/images/connected_app_10.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/connected_app_10.png)

Copy the keys.

![image](files/sfdc_byom/images/connected_app_11.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/connected_app_11.png)


%md
### 6. Ensure Oauth and OpenId are enabled

In setup, go to Oauth and OpenId settings. Ensure all the options are turned on.

![image](files/sfdc_byom/images/connected_app_12.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/connected_app_12.png)

**Note:** If you want to restrict IP's, you can set it up in the connected app. See the article [Restrict Access to Trusted IP Ranges for a Connected App](https://help.salesforce.com/s/articleView?id=sf.connected_app_edit_ip_ranges.htm&type=5) for more details.

Expand Down
18 changes: 9 additions & 9 deletions DATA_STREAM.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,44 +24,44 @@ Here are the steps to create Data Streams from S3 in Salesforce:

Log in to the org

![image](files/sfdc_byom/images/create_data_stream_01.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/create_data_stream_01.png)


Navigate to "Data Streams" and click "New"

![image](files/sfdc_byom/images/create_data_stream_02.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/create_data_stream_02.png)


Select "Amazon S3" and click on Next

![image](files/sfdc_byom/images/create_data_stream_03.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/create_data_stream_03.png)


Enter S3 bucket and file details

![image](files/sfdc_byom/images/create_data_stream_04.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/create_data_stream_04.png)


Click Next

![image](files/sfdc_byom/images/create_data_stream_05.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/create_data_stream_05.png)


Click Next

![image](files/sfdc_byom/images/create_data_stream_06.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/create_data_stream_06.png)


Click on Full Refresh

![image](files/sfdc_byom/images/create_data_stream_07.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/create_data_stream_07.png)


Select Frequency = "None"

![image](files/sfdc_byom/images/create_data_stream_08.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/create_data_stream_08.png)


Click Deploy to create data stream

![image](files/sfdc_byom/images/create_data_stream_09.png)
![image](https://github.com/coreyabs-db/sfdc-byom-images/raw/main/images/create_data_stream_09.png)
Loading
Loading