# VectorStoreRetrieverMemory

> **Class** in `langchain_classic`

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

Vector Store Retriever Memory.

Store the conversation history in a vector store and retrieves the relevant
parts of past conversation based on the input.

## Signature

```python
VectorStoreRetrieverMemory()
```

## Extends

- `BaseMemory`

## Properties

- `retriever`
- `memory_key`
- `input_key`
- `return_docs`
- `exclude_input_keys`
- `memory_variables`

## Methods

- [`load_memory_variables()`](https://reference.langchain.com/python/langchain-classic/memory/vectorstore/VectorStoreRetrieverMemory/load_memory_variables)
- [`aload_memory_variables()`](https://reference.langchain.com/python/langchain-classic/memory/vectorstore/VectorStoreRetrieverMemory/aload_memory_variables)
- [`save_context()`](https://reference.langchain.com/python/langchain-classic/memory/vectorstore/VectorStoreRetrieverMemory/save_context)
- [`asave_context()`](https://reference.langchain.com/python/langchain-classic/memory/vectorstore/VectorStoreRetrieverMemory/asave_context)
- [`clear()`](https://reference.langchain.com/python/langchain-classic/memory/vectorstore/VectorStoreRetrieverMemory/clear)
- [`aclear()`](https://reference.langchain.com/python/langchain-classic/memory/vectorstore/VectorStoreRetrieverMemory/aclear)

## ⚠️ Deprecated

Deprecated since version 0.3.1. Use langchain.agents.create_agent instead. Will be removed in version 2.0.0. For agents that need to remember prior interactions, use `create_agent` with checkpointing or the `Store` API. See https://docs.langchain.com/oss/python/langchain/short-term-memory and https://docs.langchain.com/oss/python/langchain/long-term-memory

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/185119f98e6286253a2326d7cf4f59592678023d/libs/langchain/langchain_classic/memory/vectorstore.py#L15)