imbajin commented on code in PR #158:
URL: 
https://github.com/apache/incubator-hugegraph-ai/pull/158#discussion_r1913094241


##########
hugegraph-llm/src/hugegraph_llm/operators/index_op/build_semantic_index.py:
##########
@@ -32,6 +32,9 @@ def __init__(self, embedding: BaseEmbedding):
         self.vid_index = VectorIndex.from_index_file(self.index_dir)
         self.embedding = embedding
 
+    def extract_names(self, vertices: list[str]) -> list[str]:
+        return [v.split(":")[1] for v in vertices]

Review Comment:
   we also support a customized string named "1:tom", so we need to check the 
vertex id mode before we format it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to