Neo4jPropertyGraphStore
and then the PropertyGraphIndex
object with the from_existing()
function to work with my own KG. __Entity__
and __Node__
for it to work correctly. However, I'm encountering the following error:ValidationError: 1 validation error for EntityNode name Input should be a valid string [type=string_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.8/v/string_type
from_existing
might be misleading -- it means an existing graph created by llama-index π
It requires entities and relations to have some certain structurefrom_existing
and then insert()
as well, but querying will only query the stuff you inserted I think (unless you are using some of the cypher retrievers)insert()
after from_documents
or from_existing
from_documents
is creating a new/fresh index (or at least, thats the intended usage)from_existing
is for loading a graph you createdVectorStoreIndex.from_documents()
vs. VectorStoreIndex.from_vector_store()
if you've used that class beforefrom_documents()
is for creating a new indexfrom_existing()
is for loading/connecting to something existingfrom_documents
, jumping straight into the retrieval phase. This gives the impression that ingestion and retrieval occur together throughout the application's lifecycle, which is often not the case in production environments. Typically, there are distinct phases for ingestion and retrieval. The from_documents
method seems to assume that the location of the documents is already known (e.g., in a folder) and, based on its name, doesnβt appear to support adding more documents after the initial ingestion. Additionally, if I were to set up a separate ingestion endpoint and use from_documents
to load documents into a property graph, it seems like this would create a new property graph index each time I consume the endpoint.PropertyGraphIndex
with SchemaLLMPathExtractor
to create a knowledge graph from certain documents. .from_existing()
it appears the following empty error:AssertionError: