extract_cypher#

langchain_community.chains.graph_qa.cypher.extract_cypher(text: str) str[source]#

Deprecated since version 0.3.8: Use :meth:`~langchain_neo4j.chains.graph_qa.cypher.extract_cypher` instead. It will be removed in None==1.0.

Extract Cypher code from a text.

Parameters:

text (str) – Text to extract Cypher code from.

Returns:

Cypher code extracted from the text.

Return type:

str