# hash_text

> **Function** in `langchain_community`

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

Hash a text using SHA256.

## Signature

```python
hash_text(
    text: str,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | Text to hash. |

## Returns

`str`

Hashed text.

---

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