# clean_excerpt

> **Function** in `langchain_community`

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

Clean an excerpt from Kendra.

## Signature

```python
clean_excerpt(
    excerpt: str,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `excerpt` | `str` | Yes | The excerpt to clean. |

## Returns

`str`

The cleaned excerpt.

---

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