# How to import EnhanceLongTermMemory from crewai.memory

**URL:** <https://community.crewai.com/t/how-to-import-enhancelongtermmemory-from-crewai-memory/1786>\
**Category:** CrewAI Community Support\
**Tags:** crewai, memory\
**Created:** [December 3, 2024, 2:46am UTC](https://community.crewai.com/t/how-to-import-enhancelongtermmemory-from-crewai-memory/1786 "2024-12-03T02:46:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![frieda-huang](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/frieda-huang/32/1295_2.png) [@frieda-huang](https://community.crewai.com/u/frieda-huang)\
**Post date:** [December 3, 2024, 2:46am UTC](https://community.crewai.com/t/how-to-import-enhancelongtermmemory-from-crewai-memory/1786/1 "2024-12-03T02:46:13Z")

</div>

Hi, I’m going through the doc on `EnhanceLongTermMemory` [here](https://docs.crewai.com/concepts/memory), but I can’t find a way to import it anywhere. Any ideas?

---

<div class="post-metadata">

**Author:** ![matt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/matt/32/3_2.png) [@matt](https://community.crewai.com/u/matt)\
**Post date:** [December 3, 2024, 12:01pm UTC](https://community.crewai.com/t/how-to-import-enhancelongtermmemory-from-crewai-memory/1786/2 "2024-12-03T12:01:16Z")

</div>

Sorry but what do you mean you cannot find a way to import it anywhere?

Does that mean you don’t know where to import it or you don’t know how to import it?

---

<div class="post-metadata">

**Author:** ![frieda-huang](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/frieda-huang/32/1295_2.png) [@frieda-huang](https://community.crewai.com/u/frieda-huang)\
**Post date:** [December 3, 2024, 1:31pm UTC](https://community.crewai.com/t/how-to-import-enhancelongtermmemory-from-crewai-memory/1786/3 "2024-12-03T13:31:23Z")

</div>

My bad. I tried different ways to import `EnhanceLongTermMemory` and neither seems to work. I also can’t find much documentation about it. For example:

```auto
from crewai.memory.long_term.long_term_memory import EnhanceLongTermMemory
from crewai.memory import EnhanceLongTermMemory

```

---

<div class="post-metadata">

**Author:** ![sevvaalm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/sevvaalm/32/1299_2.png) [@sevvaalm](https://community.crewai.com/u/sevvaalm)\
**Post date:** [December 3, 2024, 1:57pm UTC](https://community.crewai.com/t/how-to-import-enhancelongtermmemory-from-crewai-memory/1786/4 "2024-12-03T13:57:58Z")

</div>

Well, it does not exist in the code base. I guess in the documentation, they tried to show you can create your custom own class for memory by enhancing our long-term memory class, etc.
