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

chore: refactor to fix throttle issue #498

Merged
merged 1 commit into from
Dec 31, 2024
Merged

chore: refactor to fix throttle issue #498

merged 1 commit into from
Dec 31, 2024

Conversation

NingLu
Copy link
Collaborator

@NingLu NingLu commented Dec 31, 2024

Fixes #

🤖 AI-Generated PR Description (Powered by Amazon Bedrock)

Description

This pull request introduces a new set of features and enhancements to the API and model management components of the project. The main changes include:

  1. api-stack.ts: Modified to integrate the new API routes and functionality.

  2. chat-history.ts: A new file that handles the management and storage of chat history data.

  3. intention-management.ts: A new file that provides functionality for managing and processing user intentions.

  4. model-management.ts: A new file that handles the management and deployment of machine learning models.

  5. prompt-management.ts: A new file that handles the generation and management of prompts for the conversational AI system.

  6. model-construct.ts: Modified to support the integration of the new model management functionality.

These changes aim to enhance the overall capabilities of the conversational AI system by introducing features for managing chat history, user intentions, machine learning models, and prompts. The new functionality will enable more robust and intelligent interactions with users.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

File Stats Summary

File number involved in this PR: 6, unfold to see the details:

The file changes summary is as follows:

Files
Changes
Change Summary
source/infrastructure/lib/api/prompt-management.ts 82 added, 0 removed This code defines an AWS Lambda function and API Gateway resources to manage prompts, including CRUD operations for prompts, models, and scenes, with authentication and authorization handled through IAM policies and API Gateway authorizer.
source/infrastructure/lib/api/model-management.ts 82 added, 0 removed This code defines a construct called ModelApi that sets up an API Gateway with Lambda integration for managing machine learning models, including deploying, destroying, and checking the status of models, with appropriate IAM permissions and environment variables.
source/infrastructure/lib/api/chat-history.ts 68 added, 0 removed This code defines a ChatHistoryApi construct that sets up API Gateway resources and methods for managing chat sessions and messages, integrating with a Lambda function for handling the logic, and granting necessary permissions to access DynamoDB tables.
source/infrastructure/lib/api/api-stack.ts 58 added, 246 removed This code change introduces new constructs for managing chat history, prompts, intentions, and models in an API Gateway, providing a more modular and organized structure for these functionalities.
source/infrastructure/lib/api/intention-management.ts 245 added, 0 removed This code defines an AWS CDK construct called IntentionApi that creates an API Gateway with various resources and methods to manage intentions (likely related to natural language processing). It integrates with AWS Lambda functions and other AWS services like DynamoDB, S3, and Elastic Search. The API allows operations like scanning indexes, downloading templates, getting execution status, and managing intention executions.
source/infrastructure/lib/model/model-construct.ts 2 added, 32 removed The code changes remove the commented-out section related to creating a custom resource provider and a Lambda function for pipeline monitoring.

@11zhouxuan 11zhouxuan merged commit bde33ef into dev Dec 31, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants