|
5 | 5 | > Quick example:
|
6 | 6 | > ```python
|
7 | 7 | > from emd.sdk import bootstrap, deploy, destroy
|
8 |
| -> from emd.sdk.clients import SageMakerClient |
| 8 | +> from emd.sdk.clients.sagemaker_client import SageMakerClient |
9 | 9 | >
|
10 | 10 | > # Bootstrap infrastructure
|
11 | 11 | > bootstrap()
|
@@ -167,7 +167,7 @@ Interact with models deployed on Amazon SageMaker.
|
167 | 167 |
|
168 | 168 | **Initialization:**
|
169 | 169 | ```python
|
170 |
| -from emd.sdk.clients import SageMakerClient |
| 170 | +from emd.sdk.clients.sagemaker_client import SageMakerClient |
171 | 171 |
|
172 | 172 | # Initialize with model ID
|
173 | 173 | client = SageMakerClient(
|
@@ -327,7 +327,7 @@ Work with text embedding models.
|
327 | 327 |
|
328 | 328 | **Python Example:**
|
329 | 329 | ```python
|
330 |
| -from emd.sdk.clients import SageMakerClient |
| 330 | +from emd.sdk.clients.sagemaker_client import SageMakerClient |
331 | 331 |
|
332 | 332 | # Initialize embedding model client
|
333 | 333 | client = SageMakerClient(
|
@@ -362,7 +362,7 @@ Rerank documents based on relevance to a query.
|
362 | 362 |
|
363 | 363 | **Python Example:**
|
364 | 364 | ```python
|
365 |
| -from emd.sdk.clients import SageMakerClient |
| 365 | +from emd.sdk.clients.sagemaker_client import SageMakerClient |
366 | 366 |
|
367 | 367 | # Initialize reranking model client
|
368 | 368 | client = SageMakerClient(
|
@@ -394,7 +394,7 @@ Process images with vision-language models.
|
394 | 394 |
|
395 | 395 | **Python Example:**
|
396 | 396 | ```python
|
397 |
| -from emd.sdk.clients import SageMakerClient |
| 397 | +from emd.sdk.clients.sagemaker_client import SageMakerClient |
398 | 398 | import base64
|
399 | 399 |
|
400 | 400 | # Function to encode image
|
@@ -437,7 +437,7 @@ Use the SDK in AWS Lambda functions.
|
437 | 437 | **Lambda Function Example:**
|
438 | 438 | ```python
|
439 | 439 | import json
|
440 |
| -from emd.sdk.clients import SageMakerClient |
| 440 | +from emd.sdk.clients.sagemaker_client import SageMakerClient |
441 | 441 |
|
442 | 442 | def lambda_handler(event, context):
|
443 | 443 | # Initialize client
|
@@ -493,7 +493,7 @@ Handle common errors when using the SDK.
|
493 | 493 | **Python Example:**
|
494 | 494 | ```python
|
495 | 495 | from emd.sdk import deploy
|
496 |
| -from emd.sdk.clients import SageMakerClient |
| 496 | +from emd.sdk.clients.sagemaker_client import SageMakerClient |
497 | 497 | from botocore.exceptions import ClientError
|
498 | 498 |
|
499 | 499 | try:
|
@@ -530,7 +530,7 @@ End-to-end example of deploying and using a model.
|
530 | 530 | **Python Example:**
|
531 | 531 | ```python
|
532 | 532 | 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 |
534 | 534 | import time
|
535 | 535 |
|
536 | 536 | # 1. Bootstrap infrastructure
|
|
0 commit comments