# ZepCloudRetriever

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/retrievers/zep_cloud/ZepCloudRetriever)

`Zep Cloud` MemoryStore Retriever.

Search your user's long-term chat history with Zep.

Zep offers both simple semantic search and Maximal Marginal Relevance (MMR)
reranking of search results.

Note: You will need to provide the user's `session_id` to use this retriever.

## Signature

```python
ZepCloudRetriever()
```

## Description

Zep - Recall, understand, and extract data from chat histories.
Power personalized AI experiences.
=========
Zep is a long-term memory service for AI Assistant apps.
With Zep, you can provide AI assistants with the ability
to recall past conversations,
no matter how distant, while also reducing hallucinations, latency, and cost.

see Zep Cloud Docs: https://help.getzep.com

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `api_key` | `unknown` | Yes | Your Zep API key |
| `session_id` | `unknown` | Yes | Identifies your user or a user's session (required) |
| `top_k` | `unknown` | Yes | Number of documents to return (default: 3, optional) |
| `search_type` | `unknown` | Yes | Type of search to perform (similarity / mmr) (default: similarity, optional) |
| `mmr_lambda` | `unknown` | Yes | Lambda value for MMR search. Defaults to 0.5 (optional) |

## Extends

- `BaseRetriever`

## Properties

- `api_key`
- `zep_client`
- `zep_client_async`
- `session_id`
- `top_k`
- `search_scope`
- `search_type`
- `mmr_lambda`

## Methods

- [`create_client()`](https://reference.langchain.com/python/langchain-community/retrievers/zep_cloud/ZepCloudRetriever/create_client)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/retrievers/zep_cloud.py#L18)