Skip to content

[fix] list' object has no attribute 'id' - Id fault with chroma pinecone and other providers#3693

Merged
parthshr370 merged 2 commits intomainfrom
getall_id_fault
Oct 31, 2025
Merged

[fix] list' object has no attribute 'id' - Id fault with chroma pinecone and other providers#3693
parthshr370 merged 2 commits intomainfrom
getall_id_fault

Conversation

@parthshr370
Copy link
Copy Markdown
Contributor

@parthshr370 parthshr370 commented Oct 30, 2025

Description

#3674

Apart from basic config of OPENAI + QDRANT
like Pinecone Chroma expect -

  • Function expects: actual_memories = [mem1, mem2, mem3]
  • Reality: actual_memories = [[mem1, mem2, mem3]] (nested list!)
  • When code does: for mem in actual_memories
  • It gets: mem = [mem1, mem2, mem3] (a list, not a memory object!)
  File "/home/Downloads/mem0/mem0/memory/main.py", line 731, in _get_all_from_vector_store
    id=mem.id,
       ^^^^^^
AttributeError: 'list' object has no attribute 'id'

fix -

Screenshot_20251030_163032

Check first element - if list of tuple ( earlier it just considered tuples ) , then move to next element and start iterating that as - [ mem1 , mem2 etc ]

Type of change

Please delete options that are not relevant.

  • 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)
  • Refactor (does not change functionality, e.g. code style improvements, linting)
  • Documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Please delete options that are not relevant.

  • Unit Test
  • Test Script (please provide)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Maintainer Checklist

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Made sure Checks passed

@parthshr370 parthshr370 merged commit 84687fc into main Oct 31, 2025
8 checks passed
garciaba79 pushed a commit to garciaba79/mem0 that referenced this pull request Feb 12, 2026
@deshraj deshraj deleted the getall_id_fault branch February 23, 2026 02:02
jamebobob pushed a commit to jamebobob/mem0-vigil-recall that referenced this pull request Mar 29, 2026
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