From 4d806a1263f2ba6f119a3b82fcd7cd0093f704e9 Mon Sep 17 00:00:00 2001 From: yumpyy Date: Wed, 21 May 2025 15:50:05 +0530 Subject: [PATCH] feat(api): update endpoint to support new parameter Update the API server to support the new parameter from the core library (PR #1032). --- lightrag/api/routers/query_routes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lightrag/api/routers/query_routes.py b/lightrag/api/routers/query_routes.py index 6fe86f79..6ac8943d 100644 --- a/lightrag/api/routers/query_routes.py +++ b/lightrag/api/routers/query_routes.py @@ -78,6 +78,11 @@ class QueryRequest(BaseModel): description="Number of complete conversation turns (user-assistant pairs) to consider in the response context.", ) + ids: list[str] | None = Field( + default=None, + description="List of ids to filter the results." + ) + user_prompt: Optional[str] = Field( default=None, description="User-provided prompt for the query. If provided, this will be used instead of the default value from prompt template.",