# KayAiRetriever

> **Class** in `langchain_community`

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

Retriever for Kay.ai datasets.

To work properly, expects you to have KAY_API_KEY env variable set.
You can get one for free at https://kay.ai/.

## Signature

```python
KayAiRetriever()
```

## Extends

- `BaseRetriever`

## Properties

- `client`
- `num_contexts`

## Methods

- [`create()`](https://reference.langchain.com/python/langchain-community/retrievers/kay/KayAiRetriever/create)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/retrievers/kay.py#L10)