Skip to content

[Feature Request]: Allow users to provide hl_keywords and ll_kewords as part of the API QueryRequest to avoid having to use the LLM #2249

@Mobious

Description

@Mobious

Do you need to file a feature request?

  • I have searched the existing feature request and this feature request is not already filed.
  • I believe this is a legitimate feature request, not just a question or bug.

Feature Request Description

Right now, as far as I'm aware, there is no way to use any of the /query API endpoints without LightRAG calling the LLM to extract the high-level and low-level keywords. It would be useful to allow end-users to bypass this by providing the keywords themselves instead of having the LLM try to extract them from the query string. This is particularly useful when using the /query/data endpoint, where users may want to just retrieve data without any LLM processing.

The change would be extremely simple, as all that is required is to add hl_keywords and ll_keywords as parameters for the QueryRequest class. QueryRequest.to_query_param already handles passing these along when creating the QueryParam instance, which already supports hl_keywords and ll_keywords.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions