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

feat: update npm run build and packaging #568

Merged
merged 1 commit into from
Mar 11, 2025
Merged

feat: update npm run build and packaging #568

merged 1 commit into from
Mar 11, 2025

Conversation

IcyKallen
Copy link
Contributor

@IcyKallen IcyKallen commented Mar 11, 2025

Fixes #

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

Description

This pull request includes several changes to the codebase:

  1. source/infrastructure/lib/knowledge-base/knowledge-base-stack.ts: This file has been modified, likely to update the infrastructure configuration related to the knowledge base component.

  2. source/lambda/job/build_whl.sh: This script file has been modified, which is responsible for building the Python wheel package for the project.

  3. source/lambda/shared/langchain_integration/retrievers/databases/opensearch.py: This Python file has been modified, which is part of the Langchain integration and handles retrieving data from the OpenSearch database.

  4. source/script/build.sh: This script file has been modified, which is likely related to the project's build process.

  5. There are errors reported for the following files:

    • source/lambda/job/dep/dist/llm_bot_dep-0.1.0-py3-none-any.whl: This appears to be a Python wheel package file that has encountered an error during the build process.
    • source/lambda/shared/init.py: This is a Python file that has encountered an error.
    • source/lambda/shared/utils/init.py: This is another Python file that has encountered an error.

The motivation behind these changes is to update the infrastructure configuration, improve the build process, and potentially address issues or add new features related to the Langchain integration and OpenSearch database retrieval.

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: 4, unfold to see the details:

The file changes summary is as follows:

Files
Changes
Change Summary
source/lambda/shared/langchain_integration/retrievers/databases/opensearch.py 15 added, 15 removed The code changes refactor the class name from "OpenSearceBase" to "OpenSearchBase" and update the corresponding class references throughout the code, fixing a typo.
source/infrastructure/lib/knowledge-base/knowledge-base-stack.ts 1 added, 3 removed The code changes involve modifying the S3 bucket deployment configuration for deploying Lambda job dependencies, removing the exclusion filter and including all files in the specified directory.
source/lambda/job/build_whl.sh 15 added, 1 removed The code changes copy files from a shared directory to a target directory, create the target directory if it doesn't exist, build a wheel using Python's setuptools, and then remove the copied files after the build process.
source/script/build.sh 36 added, 24 removed The code changes include adding functions to build Lambda assets, frontend, client frontend, ETL package, and preparing ETL and online models. It also modifies the order of building modules based on certain conditions and adds a condition to build the ETL package if knowledge base and IntelliAgent are enabled.

@IcyKallen IcyKallen merged commit 7955b62 into dev Mar 11, 2025
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.

1 participant