aws-samples / Serverless-Retrieval-Augmented-Generation-RAG-on-AWS

A full-stack serverless RAG workflow. This is thought for running PoCs, prototypes and bootstrap your MVP.
MIT No Attribution
44 stars 17 forks source link

Enhanced prompt flexibility with SSM parameter integration #14

Closed kirtandudhatra closed 3 months ago

kirtandudhatra commented 3 months ago

Issue #, if available: N/A

Description of changes:

Summary

This pull request introduces dynamic prompt management for the Serverless Retrieval-Augmented Generation (RAG) framework on AWS by integrating AWS Systems Manager (SSM) parameters.

Changes

  1. Integration with AWS Systems Manager (SSM):

    • Added functionality to retrieve and manage prompts dynamically using SSM parameters.
  2. Code Modifications:

    • Updated Lambda functions to fetch prompts from SSM.
    • Modified configuration files to support SSM parameter integration.
    • Added resource creation in AWS CDK for managing SSM parameters.
  3. Benefits:

    • Enables easy updates and management of prompts without code changes.
    • Enhances adaptability and customization for different retrieval-augmented generation scenarios.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.