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(constructs): bug fixes from joyride testing #48

Merged
merged 11 commits into from
Oct 25, 2023

Conversation

krokoko
Copy link
Collaborator

@krokoko krokoko commented Oct 24, 2023

Fixes #

Fixes multiple issues related to testing of the constructs:

  • fix embeddings creation for ingestion and qa related to an issue with Langchain
  • move lambda functions to dedicated folders
  • fix typos and make code consistent with the documentation
  • reduce embeddings creation time
  • remove unused graphql field
  • add fixes from @dineshSajwan for summarization

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

@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
...patterns/gen-ai/aws-qa-appsync-opensearch/index.ts 97.62% <100.00%> (ø)
.../gen-ai/aws-rag-appsync-stepfn-opensearch/index.ts 97.69% <100.00%> (ø)
...s/gen-ai/aws-summarization-appsync-stepfn/index.ts 97.85% <ø> (-0.01%) ⬇️

📢 Thoughts on this report? Let us know!.

logger.info(f"_retriever={handler_type} does not match _current_retriever={_current_doc_index}, "
f"resetting retriever")
_doc_index = None

if _doc_index is None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when will be _doc_index not null

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

statically initialized before the method signature

requests==2.31.0
requests-aws4auth==1.2.3
opensearch-py==2.3.1
numpy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we using numpy, couldn't find any import for this.

)
sts_client = boto3.client("sts")

def get_bedrock_client(service_name="bedrock-runtime"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't this function be imported from opensearch_helper.py

Copy link
Contributor

@dineshSajwan dineshSajwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some small questions , nothing blocking hence approving.

@krokoko krokoko merged commit 109dcef into main Oct 25, 2023
15 checks passed
@krokoko krokoko deleted the bugfix/joyride_bug_fix branch October 25, 2023 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants