index = PropertyGraphIndex.from_documents(documents=[document], llm=llm_model, embed_model=embedding_model, kg_extractors=[ ImplicitPathExtractor(), LLM_extractor, ], show_progress=True, )
from llama_index.core.ingestion import arun_transformations # this will insert the kg nodes into the metadata of each text node nodes = await arun_transformations([document], transformations=[SentenceSplitter(), ImplicitPathExtractor(), LLM_extractor]) # need some dummy extractor I think, but then throw it into the index from llama_index.core.schema import TransformComponent class DummyTransform(TransformComponent): def __call__(self, nodes, **kwargs): return nodes index = PropertyGraphIndex(nodes=nodes, kg_extractors=[DummyTransform()], ...)
Coroutine[Any, Any, PropertyGraphIndex]
'coroutine' object has no attribute 'property_graph_store'
asyncio.run() cannot be called from a running event loop
this event loop is already running
uvicorn.run(..., loop="asyncio")