# ConversationEntityMemory

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/memory/entity/ConversationEntityMemory)

Entity extractor & summarizer memory.

Extracts named entities from the recent chat history and generates summaries.
With a swappable entity store, persisting entities across conversations.
Defaults to an in-memory entity store, and can be swapped out for a Redis,
SQLite, or other entity store.

## Signature

```python
ConversationEntityMemory()
```

## Extends

- `BaseChatMemory`

## Properties

- `human_prefix`
- `ai_prefix`
- `llm`
- `entity_extraction_prompt`
- `entity_summarization_prompt`
- `entity_cache`
- `k`
- `chat_history_key`
- `entity_store`
- `buffer`
- `memory_variables`

## Methods

- [`load_memory_variables()`](https://reference.langchain.com/python/langchain-classic/memory/entity/ConversationEntityMemory/load_memory_variables)
- [`save_context()`](https://reference.langchain.com/python/langchain-classic/memory/entity/ConversationEntityMemory/save_context)
- [`clear()`](https://reference.langchain.com/python/langchain-classic/memory/entity/ConversationEntityMemory/clear)

## ⚠️ Deprecated

Deprecated since version 0.3.1.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/6fb37dba71da807af60aa7b909f71f0625a666bf/libs/langchain/langchain_classic/memory/entity.py#L457)