Hi, I have been trying to make a vector index in from an existing graph in my neo4j desktop, but have been unable to do so, can someone please help out. Thanks.
This is my code:-
os.environ['OPENAI_API_KEY'] = "API_KEY"
vector_index = Neo4jVector.from_existing_graph(
OpenAIEmbeddings(),
url=url,
username=username,
password=password,
index_name='tasks',
node_label="Task",
text_node_properties=['name', 'description', 'status'],
embedding_node_property='embedding',
)
and the error I get is:-
AttributeError: type object 'Neo4jVector' has no attribute 'from_existing_graph'
Why is this happening only to me while others can still use this method. or is this deprecated??