Actions11
Query
AI-generatedSummary
Send a query to the LightRAG knowledge base and return its answer. Optionally stream retrieval progress, source excerpts, and answer text to an n8n Chat Trigger.
Inputs
- Request Body (required) — JSON object for the LightRAG query; defaults to the complete current input item. It must include a non-empty
querystring of at least 3 characters. An optionalmodemust be one oflocal,global,hybrid,naive,mix, orbypass; other fields are passed through to LightRAG. - Stream Progress to Chat — Defaults to
false. When enabled, calls LightRAG’s/query/streamendpoint and streams retrieval progress, source excerpts, and answer text to the chat. Requires an n8n Chat Trigger configured for Streaming Response and a LightRAG server supporting/query/streamandinclude_progress.
Output shape
A list of items, normally one per input item, each containing the LightRAG response object.
With streaming enabled, the response object contains the accumulated
responsetext and may includereferences,llm_generated, andresponse_time. Errors stop execution unless Continue On Fail is enabled, in which case an item with anerrorfield is returned.