Skip to content

Commit 0df6ddf

Browse files
author
Daniel Lorch
committed
feat: update dynamic-few-shot Lambda to implement Custom Prompt Lambda interface
1 parent 718ad3a commit 0df6ddf

File tree

6 files changed

+440
-289
lines changed

6 files changed

+440
-289
lines changed

plugins/dynamic-few-shot-lambda/GENAIIDP-dynamic-few-shot.py

Lines changed: 0 additions & 284 deletions
This file was deleted.

plugins/dynamic-few-shot-lambda/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ flowchart TD
6767

6868
```bash
6969
# Navigate to the dynamic-few-shot-lambda directory
70-
cd notebooks/examples/dynamic-few-shot-lambda
70+
cd plugins/dynamic-few-shot-lambda
7171

7272
# Deploy using AWS SAM
7373
sam deploy --guided
@@ -86,15 +86,15 @@ aws cloudformation describe-stacks \
8686

8787
### Step 3: Populate the Examples Dataset
8888

89-
Use the [fewshot_dataset_import.ipynb](../../misc/fewshot_dataset_import.ipynb) notebook to import a dataset into S3 Vectors, or manually upload your example documents and metadata to the S3 bucket and vector index created by the stack.
89+
Use the [fewshot_dataset_import.ipynb](notebooks/fewshot_dataset_import.ipynb) notebook to import a dataset into S3 Vectors, or manually upload your example documents and metadata to the S3 bucket and vector index created by the stack.
9090

9191
### Step 4: Configure IDP to Use Dynamic-few shot
9292

9393
Add the Lambda ARN to your IDP extraction configuration:
9494

9595
```yaml
9696
extraction:
97-
dynamic_few_shot_lambda_arn: "arn:aws:lambda:region:account:function:GENAIIDP-dynamic-few-shot"
97+
custom_prompt_lambda_arn: "arn:aws:lambda:region:account:function:GENAIIDP-dynamic-few-shot"
9898
```
9999
100100
## Lambda Interface

plugins/dynamic-few-shot-lambda/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)