# 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/7c10a5fa327f6aaaf7c932822a9e5d144891406e/libs/community/langchain_community/chains/graph_qa/kuzu.py#L37)