# get_stateful_documents

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_transformers/embeddings_redundant_filter/get_stateful_documents)

Convert a list of documents to a list of documents with state.

## Signature

```python
get_stateful_documents(
    documents: Sequence[Document],
) -> Sequence[_DocumentWithState]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `documents` | `Sequence[Document]` | Yes | The documents to convert. |

## Returns

`Sequence[_DocumentWithState]`

A list of documents with state.

---

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