Fixed s3 vectors memory initialization issue from configuration#3481
Merged
parshvadaftari merged 3 commits intomem0ai:mainfrom Sep 20, 2025
Merged
Conversation
Contributor
Author
|
Please review this issue with top priority to ensure the functioning of the framework aligns with the documentation. I was about to migrate to mem0 from Langchain in my production application before I came across this issue so I wanted to make sure noone else finds themselves in the same situation 😊 |
Contributor
|
@abdullahirfann Thanks for pointing it out. Can you fix the failing tests as well? |
Contributor
Author
@parshvadaftari Waiting for approval on builds |
Contributor
|
Thanks a lot for pointing it out and your contribution. |
jamebobob
pushed a commit
to jamebobob/mem0-vigil-recall
that referenced
this pull request
Mar 29, 2026
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
Support for S3 Vectors was provided in v0.1.117. However, upon testing, it was found that initializing
Memoryvia config withS3VectorConfigthrows anAttributeError. Upon further investigation, turns out thatS3VectorConfigcontains theindex_nameattribute, while initializingMemorywith config requires thecollection_nameattribute to be present in the config object.This fix uses the
collection_nameattribute name to store the index name to be used within the S3 vector bucket. This aligns with the uniformity provided across other vector stores and their interaction with theMemoryclass.Type of change
How Has This Been Tested?
Test Details
tests/vector_stores/test_s3_vectors.pyfiletest_memory_initialization_with_configto ensure anAttributeExceptionexception is not thrown while initializingMemorywith anS3VectorConfigconfig, and confirm successful initialization of theMemoryobjectChecklist:
I have commented my code, particularly in hard-to-understand areasAny dependent changes have been merged and published in downstream modulesMaintainer Checklist