Skip to content

Commit 1db216e

Browse files
authored
doc:fixed sagemaker client import api (#163)
1 parent 5bc7a6a commit 1db216e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/en/sdk_api.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
> Quick example:
66
> ```python
77
> from emd.sdk import bootstrap, deploy, destroy
8-
> from emd.sdk.clients import SageMakerClient
8+
> from emd.sdk.clients.sagemaker_client import SageMakerClient
99
>
1010
> # Bootstrap infrastructure
1111
> bootstrap()
@@ -167,7 +167,7 @@ Interact with models deployed on Amazon SageMaker.
167167
168168
**Initialization:**
169169
```python
170-
from emd.sdk.clients import SageMakerClient
170+
from emd.sdk.clients.sagemaker_client import SageMakerClient
171171
172172
# Initialize with model ID
173173
client = SageMakerClient(
@@ -327,7 +327,7 @@ Work with text embedding models.
327327
328328
**Python Example:**
329329
```python
330-
from emd.sdk.clients import SageMakerClient
330+
from emd.sdk.clients.sagemaker_client import SageMakerClient
331331
332332
# Initialize embedding model client
333333
client = SageMakerClient(
@@ -362,7 +362,7 @@ Rerank documents based on relevance to a query.
362362
363363
**Python Example:**
364364
```python
365-
from emd.sdk.clients import SageMakerClient
365+
from emd.sdk.clients.sagemaker_client import SageMakerClient
366366
367367
# Initialize reranking model client
368368
client = SageMakerClient(
@@ -394,7 +394,7 @@ Process images with vision-language models.
394394
395395
**Python Example:**
396396
```python
397-
from emd.sdk.clients import SageMakerClient
397+
from emd.sdk.clients.sagemaker_client import SageMakerClient
398398
import base64
399399
400400
# Function to encode image
@@ -437,7 +437,7 @@ Use the SDK in AWS Lambda functions.
437437
**Lambda Function Example:**
438438
```python
439439
import json
440-
from emd.sdk.clients import SageMakerClient
440+
from emd.sdk.clients.sagemaker_client import SageMakerClient
441441
442442
def lambda_handler(event, context):
443443
# Initialize client
@@ -493,7 +493,7 @@ Handle common errors when using the SDK.
493493
**Python Example:**
494494
```python
495495
from emd.sdk import deploy
496-
from emd.sdk.clients import SageMakerClient
496+
from emd.sdk.clients.sagemaker_client import SageMakerClient
497497
from botocore.exceptions import ClientError
498498
499499
try:
@@ -530,7 +530,7 @@ End-to-end example of deploying and using a model.
530530
**Python Example:**
531531
```python
532532
from emd.sdk import bootstrap, deploy, get_model_status, destroy
533-
from emd.sdk.clients import SageMakerClient
533+
from emd.sdk.clients.sagemaker_client import SageMakerClient
534534
import time
535535
536536
# 1. Bootstrap infrastructure

0 commit comments

Comments
 (0)