Find answers from the community

Updated 3 months ago

Neo4j

Question, is there any way to load an existing knowledge graph index from neo4j? I have created and persisted one but it doesn't seem like there are any suitable loading methods...
E
q
5 comments
Plain Text
index_name = "existing_index"
text_node_property = "text"
existing_vector = Neo4jVectorStore(
    username,
    password,
    url,
    embed_dim,
    index_name=index_name,
    text_node_property=text_node_property,
)

loaded_index = VectorStoreIndex.from_vector_store(existing_vector)
isn't something like this you're looking for?
Plain Text
index = KnowledgeGraphIndex.from_vector_store(existing_vector)
I don't think you can load a kg index from a vector store. The class doesn't have that method.
Add a reply
Sign up and join the conversation on Discord