# 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/7c10a5fa327f6aaaf7c932822a9e5d144891406e/libs/community/langchain_community/retrievers/kay.py#L10)