feat: add native AsyncDynavec client - #270
Merged
Kaap10 merged 17 commits intoOct 1, 2026
Merged
Conversation
Kaap10
approved these changes
Oct 1, 2026
Kaap10
left a comment
Collaborator
There was a problem hiding this comment.
LGTM! @Isha-Zaka.
Key highlights:
- Clean, non-blocking
AsyncDynavecclient with proper async context manager lifecycle (async with/aclose()). - Robust
aioboto3backends for both DynamoDB and S3 Vectors with zero code duplication on shared logic. - Full
pytest-asynciocoverage (39 tests passed) and 100% clean typecheck and CI runs.
Merging this now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a native
AsyncDynavecclient backed byaioboto3for high-concurrency async workloads while keeping the existing synchronousDynavecAPI unchanged.Related issue
Fixes #50
Changes
aclose().aupsert(),asearch(), andasearch_stream()usingaembed_documents()/aembed_query(), including concurrent S3 and DynamoDB writes.asyncextra, publicAsyncDynavecexport, async retry/rate-limit support, shared sync/async write preparation, and async/Moto integration coverage.developmentchanges for TTL and request rate limiting so sync and async behavior stay consistent.Testing
Notes
Assume-role credentials currently reuse the existing synchronous STS resolution once during client construction, then pass the temporary credentials into the async session. AWS I/O performed by
AsyncDynavecuses the async stores.Checklist