Find answers from the community

Updated 3 months ago

Nodes

Hi, question about construction of a property graph index. Right now, the docs mention only this:
Plain Text
index = PropertyGraphIndex.from_documents(
    documents,
    kg_extractors=[extractor1, extractor2, ...],
)

With the normal vector store index I can generate the nodes first (ie. per document)
Plain Text
nodes_A = pipeline.run(documents=[DocumentOne])
nodes_B = pipeline.run(documents=[DocumentTwo])
index = VectorStoreIndex(nodes_A + nodes_B)

Is there an analogous way to do the same thing with the property graph index? where you can do it document by document before constructing the full index?
L
1 comment
You can use the kg extractors in an ingestion pipeline

But if you do this, I think you'll want to set kg_extractors in the index to an empty list, otherwise it will run them again
Add a reply
Sign up and join the conversation on Discord