# NanoPQRetriever

> **Class** in `langchain_community`

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

`NanoPQ retriever.

## Signature

```python
NanoPQRetriever()
```

## Extends

- `BaseRetriever`

## Properties

- `embeddings`
- `index`
- `texts`
- `metadatas`
- `k`
- `relevancy_threshold`
- `subspace`
- `clusters`
- `model_config`

## Methods

- [`from_texts()`](https://reference.langchain.com/python/langchain-community/retrievers/nanopq/NanoPQRetriever/from_texts)
- [`from_documents()`](https://reference.langchain.com/python/langchain-community/retrievers/nanopq/NanoPQRetriever/from_documents)

---

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