Skip to content

Conversation

@Mobious
Copy link
Contributor

@Mobious Mobious commented Oct 23, 2025

Description

This change allows API users to provide their own high-level and low-level keywords to the /query endpoints. This prevents the server from having the LLM generate the keywords.

This change allows users to fetch data from LightRAG with 0 LLM calls (by providing hl_keywords, ll_keywords, and setting only_need_prompt or only_need_context to True).

Related Issues

The PR implements feature request #2249

Changes Made

  • add hl_keywords and ll_keywords to the QueryRequest class
  • added usage examples in the endpoint docstrings

Checklist

  • Changes tested locally
  • Code reviewed
  • Documentation updated (if necessary)
  • Unit tests added (if applicable)

@danielaskdd
Copy link
Collaborator

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Breezy!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielaskdd
Copy link
Collaborator

Thanks for sharing.

@danielaskdd danielaskdd merged commit c82485d into HKUDS:main Oct 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants