chains#

Functions

chains.graph_qa.neptune_cypher.create_neptune_opencypher_qa_chain(...)

Chain for question-answering against a Neptune graph by generating openCypher statements.

chains.graph_qa.neptune_cypher.extract_cypher(text)

Extract Cypher code from text using Regex.

chains.graph_qa.neptune_cypher.get_prompt(llm)

Selects the final prompt

chains.graph_qa.neptune_cypher.trim_query(query)

Trim the query to only include Cypher keywords.

chains.graph_qa.neptune_cypher.use_simple_prompt(llm)

Decides whether to use the simple prompt

chains.graph_qa.neptune_sparql.create_neptune_sparql_qa_chain(...)

Chain for question-answering against a Neptune graph by generating SPARQL statements.

chains.graph_qa.neptune_sparql.extract_sparql(query)

Extract SPARQL code from a text.

chains.graph_qa.neptune_sparql.get_prompt(...)

Selects the final prompt.