langchain-neo4j: 0.1.1#

chains#

Classes

chains.graph_qa.cypher.GraphCypherQAChain

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

chains.graph_qa.cypher_utils.CypherQueryCorrector(schemas)

Used to correct relationship direction in generated Cypher statements.

chains.graph_qa.cypher_utils.Schema(...)

Create new instance of Schema(left_node, relation, right_node)

Functions

chains.graph_qa.cypher.construct_schema(...)

Filter the schema based on included or excluded types

chains.graph_qa.cypher.extract_cypher(text)

Extract Cypher code from a text.

chains.graph_qa.cypher.get_function_response(...)

chat_message_histories#

Classes

chat_message_histories.neo4j.Neo4jChatMessageHistory(...)

Chat message history stored in a Neo4j database.

graphs#

Classes

graphs.graph_document.GraphDocument

Represents a graph document consisting of nodes and relationships.

graphs.graph_document.Node

Represents a node in a graph with associated properties.

graphs.graph_document.Relationship

Represents a directed relationship between two nodes in a graph.

graphs.graph_store.GraphStore()

Abstract class for graph operations.

graphs.neo4j_graph.Neo4jGraph([url, ...])

Neo4j database wrapper for various graph operations.

Functions

graphs.neo4j_graph.clean_string_values(text)

Clean string values for schema.

graphs.neo4j_graph.value_sanitize(d)

Sanitize the input dictionary or list.

query_constructors#

Classes

query_constructors.neo4j.Neo4jTranslator()

Translate Neo4j internal query language elements to valid filters.

vectorstores#

Classes

vectorstores.neo4j_vector.IndexType(value[, ...])

Enumerator of the index types.

vectorstores.neo4j_vector.Neo4jVector(...[, ...])

Neo4j vector index.

vectorstores.neo4j_vector.SearchType(value)

Enumerator of the Distance strategies.

vectorstores.utils.DistanceStrategy(value[, ...])

Enumerator of the Distance strategies for calculating distances between vectors.

Functions

vectorstores.neo4j_vector.check_if_not_null(...)

Check if the values are not None or empty string

vectorstores.neo4j_vector.collect_params(...)

Transform the input data into the desired format.

vectorstores.neo4j_vector.combine_queries(...)

Combine multiple queries with an operator.

vectorstores.neo4j_vector.construct_metadata_filter(filter)

Construct a metadata filter.

vectorstores.neo4j_vector.dict_to_yaml_str(...)

Convert a dictionary to a YAML-like string without using external libraries.

vectorstores.neo4j_vector.remove_lucene_chars(text)

Remove Lucene special characters

vectorstores.neo4j_vector.sort_by_index_name(...)

Sort first element to match the index_name if exists