any best practices for adding/inserting data into a
Property Graph
?
if i run this twice (with different documents), it does seem that the 2nd set of documents is inserted into my neo4j knowledge graph, and the resulting query-engine can still answer questions about information from first set of documents. so at least with the underlying neo4j KG, it seems like the default is to insert the new entities, but not delete what is there.
index = PropertyGraphIndex.from_documents(
documents[:NUMBER_OF_ARTICLES],
kg_extractors=[kg_extractor],
llm=llm,
embed_model=embed_model,
property_graph_store=graph_store,
show_progress=True,
)
that said, i'm still a bit traumatized from the normal vector database document persist/load caching stuff that is required, and i just want to make sure i know how to add docs to an existing property graph without any risk of deleting what is already there.
and related - how do i properly compute the new relationships, if i'm inserting stuff into an existing property graph?
this would be a super helpful example to have, i'm sure a lot of people aren't going to want to re-build the whole property graph every time they think of a new doc to add....