# Mem0ai + graph -\> TypeError: string indices must be integers, not 'str'

**URL:** <https://community.crewai.com/t/mem0ai-graph-typeerror-string-indices-must-be-integers-not-str/5061>\
**Category:** General\
**Created:** [March 31, 2025, 4:07pm UTC](https://community.crewai.com/t/mem0ai-graph-typeerror-string-indices-must-be-integers-not-str/5061 "2025-03-31T16:07:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anna\_saranti](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/anna_saranti/32/3040_2.png) [@anna\_saranti](https://community.crewai.com/u/anna_saranti)\
**Post date:** [March 31, 2025, 4:07pm UTC](https://community.crewai.com/t/mem0ai-graph-typeerror-string-indices-must-be-integers-not-str/5061/1 "2025-03-31T16:07:35Z")

</div>

Hi all,

I’ve configured the use of a neo4j GraphDB for my UserMemory.  
Unfortunately, although I see that everything is stored as expected,

f.e. : {‘id’: ‘b25cf767-6547-45bf-a7f0-7b09606615e9’, ‘memory’: ‘Anna comes from Greece’, ‘hash’: ‘c2979d5465a2d054cc4aa787fb111fc4’, ‘metadata’: {‘country’: ‘Greece’, ‘continent’: ‘Europe’}, ‘score’: 0.7406379807831337, ‘created\_at’: ‘2025-03-31T08:57:25.639023-07:00’, ‘updated\_at’: None, ‘user\_id’: ‘Mona’}

When I try to search with a corresponding query like:  
“Where does Anna come from?”

I get the following "TypeError: string indices must be integers, not ‘str’ " from threading.py, although the results of the search look good.

I appreciate any help.  
Regards,  
Anna
