You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2024/09/27 15:25:37 UTC

(incubator-hugegraph-ai) branch test updated: TODO: only fetch vid rather than all vertex data

This is an automated email from the ASF dual-hosted git repository.

jin pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-ai.git


The following commit(s) were added to refs/heads/test by this push:
     new 9483100  TODO: only fetch vid rather than all vertex data
9483100 is described below

commit 9483100b74e71a773ad6f42ecc765e9c5dfe8aa2
Author: imbajin <ji...@apache.org>
AuthorDate: Fri Sep 27 23:25:31 2024 +0800

    TODO: only fetch vid rather than all vertex data
---
 .../src/hugegraph_llm/operators/hugegraph_op/fetch_graph_data.py        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hugegraph-llm/src/hugegraph_llm/operators/hugegraph_op/fetch_graph_data.py b/hugegraph-llm/src/hugegraph_llm/operators/hugegraph_op/fetch_graph_data.py
index 77233f0..ab61e36 100644
--- a/hugegraph-llm/src/hugegraph_llm/operators/hugegraph_op/fetch_graph_data.py
+++ b/hugegraph-llm/src/hugegraph_llm/operators/hugegraph_op/fetch_graph_data.py
@@ -30,7 +30,7 @@ class FetchGraphData:
             context = {}
         if "vertices" not in context:
             context["vertices"] = []
-        vertices = self.graph.gremlin().exec("g.V()")["data"]
+        vertices = self.graph.gremlin().exec("g.V().id()")["data"]
         for vertex in vertices:
             context["vertices"].append({
                 "id": vertex["id"],