# extract_cypher

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/chains/graph_qa/kuzu/extract_cypher)

Extract Cypher code from a text.

## Signature

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

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | Text to extract Cypher code from. |

## Returns

`str`

Cypher code extracted from the text.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/chains/graph_qa/kuzu.py#L37)