This is an automated email from the ASF dual-hosted git repository.
jin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-ai.git
The following commit(s) were added to refs/heads/main by this push:
new 030fd2e fix(llm): extract_graph_data use wrong method (#145)
030fd2e is described below
commit 030fd2e58754652f00504e13ba00e6bf7312bd09
Author: SoJGooo <[email protected]>
AuthorDate: Thu Dec 26 12:58:23 2024 +0800
fix(llm): extract_graph_data use wrong method (#145)
---
hugegraph-llm/src/hugegraph_llm/utils/graph_index_utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hugegraph-llm/src/hugegraph_llm/utils/graph_index_utils.py
b/hugegraph-llm/src/hugegraph_llm/utils/graph_index_utils.py
index f44fff8..ace61c0 100644
--- a/hugegraph-llm/src/hugegraph_llm/utils/graph_index_utils.py
+++ b/hugegraph-llm/src/hugegraph_llm/utils/graph_index_utils.py
@@ -76,7 +76,7 @@ def extract_graph(input_file, input_text, schema,
example_prompt) -> str:
error_message = parse_schema(schema, builder)
if error_message:
return error_message
- builder.chunk_split(texts, "document", "zh").extract_info(example_prompt,
"triples")
+ builder.chunk_split(texts, "document", "zh").extract_info(example_prompt,
"property_graph")
try:
context = builder.run()