You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "imbajin (via GitHub)" <gi...@apache.org> on 2025/02/20 07:34:42 UTC
[I] should handle empty keywords case(`keywords = []`), currently we will match **all vertexes** (wrong fallback) [incubator-hugegraph-ai]
imbajin opened a new issue, #168:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/168
(no comment)
--
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: dev-unsubscribe@hugegraph.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] should handle empty keywords case(`keywords = []`), currently we will match **all vertexes** (wrong fallback) [incubator-hugegraph-ai]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin closed issue #168: should handle empty keywords case(`keywords = []`), currently we will match **all vertexes** (wrong fallback)
URL: https://github.com/apache/incubator-hugegraph-ai/issues/168
--
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: dev-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] should handle empty keywords case(`keywords = []`), currently we will match **all vertexes** (wrong fallback) [incubator-hugegraph-ai]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #168:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/168#issuecomment-2670685630
<!-- Answer -->
The code already handles the case where `keywords` is an empty list to prevent matching all vertices. In the `run` method, there is a check:
```python
if not keywords:
context["match_vids"] = []
return context
```
This ensures that if `keywords` is empty, `match_vids` is set to an empty list, effectively preventing any vertices from being matched <sup>[[1]](https://github.com/apache/incubator-hugegraph-ai/blob/main/hugegraph-llm/src/hugegraph_llm/operators/index_op/semantic_id_query.py)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/bf7ebe59-366b-4423-8db9-d8270bd2f3a6?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/bf7ebe59-366b-4423-8db9-d8270bd2f3a6?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/bf7ebe59-366b-4423-8db9-d8270bd2f3a6?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/bf7ebe59-366b-4423-8db9-d8270bd2f3a6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/bf7ebe59-366b-4423-8db9-d8270bd2f3a6?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/bf7ebe59-366b-4423-8db9-d8270bd2f3a6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/bf7ebe59-366b-4423-8db9-d8270bd2f3a6?feedback_type=other)</sup>
--
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: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org