Can the Neo4jGraph have an input of schema? #27939
IvanReznikov
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked
Feature request
Pass schema to Neo4jGraph
Motivation
Every time a user connects to a Neo4jGraph is initialized. If the graph is large, in order to generate a schema, a refresh_schema=True is passed and calls a refresh_schema() method, that for a large graph takes sometime to run. For a static graph, would be nice instead of initializing a schema like that, pass it as optional parameter.
I can do the pr myself
Proposal (If applicable)
#in Neo4jGraph from langchain_community.graphs
def init( ..., schema: str = "", ...)
if schema:
self.schema: str = schema
Beta Was this translation helpful? Give feedback.
All reactions