run-llama / llama_index

LlamaIndex is a data framework for your LLM applications
https://docs.llamaindex.ai
MIT License
37.13k stars 5.33k forks source link

[Question]: Issues with GraphRAG Implementation with LlamaIndex - V2 #16874

Open Buzeg opened 3 weeks ago

Buzeg commented 3 weeks ago

Question Validation

Question

My code just sets the LLM to Dashscope on the basis of the original code, but when I run index.property_graph_store.get_triplets() it ends up with an empty list[]. image

dosubot[bot] commented 3 weeks ago

Hey @Buzeg! 👋 I'm here to help you with any bugs, questions, or contributions while you wait for a human maintainer.

index.property_graph_store.get_triplets() returns an empty list when no filtering parameters are provided. To retrieve triplets, you need to specify at least one of the following parameters: ids, properties, entity_names, or relation_names. Without these, the method is designed to return an empty list [1].

To continue talking to Dosu, mention @dosu.

Buzeg commented 3 weeks ago

index.property_graph_store.get_triplets() That's the origin code! I didn't change anything.@Dosu

Buzeg commented 3 weeks ago

index.property_graph_store.get_triplets()这是源代码!我没有更改任何内容。

index.property_graph_store.get_triplets()这是源代码!我没有更改任何内容。

嘿 !👋 在您等待人工维护者时,我在这里帮助您解决任何错误、问题或贡献。

index.property_graph_store.get_triplets()如果未提供筛选参数,则返回空列表。要检索三元组,您需要至少指定以下参数之一:、、 或 。如果没有这些,该方法将返回一个空列表ids``properties``entity_names``relation_names[1].

要继续与 Dosu 交谈,请提及 。

index.property_graph_store.get_triplets()这是源代码!我没有更改任何内容。

Valdanitooooo commented 2 weeks ago

Same here

Buzeg commented 2 weeks ago

Same here

I've solved this problem. You need to focus on re_pattern, That's the place where cause this problem. @Valdanitooooo