From 223f4cdf625ed3e534240550b2f4e5f0efa187c0 Mon Sep 17 00:00:00 2001 From: yangdx Date: Mon, 4 Aug 2025 11:11:57 +0800 Subject: [PATCH] Mark deprecated fields with TODO comments --- lightrag/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lightrag/base.py b/lightrag/base.py index 045bcb07..9e88fb12 100644 --- a/lightrag/base.py +++ b/lightrag/base.py @@ -133,17 +133,19 @@ class QueryParam: ll_keywords: list[str] = field(default_factory=list) """List of low-level keywords to refine retrieval focus.""" + # TODO: Deprecated - history message have negtive effect on query performance conversation_history: list[dict[str, str]] = field(default_factory=list) """Stores past conversation history to maintain context. Format: [{"role": "user/assistant", "content": "message"}]. """ - # Deprecated: history message have negtive effect on query performance + # TODO: Deprecated - history message have negtive effect on query performance history_turns: int = int(os.getenv("HISTORY_TURNS", str(DEFAULT_HISTORY_TURNS))) """Number of complete conversation turns (user-assistant pairs) to consider in the response context.""" + # TODO: TODO: Deprecated - ID-based filtering only applies to chunks, not entities or relations, and implemented only in PostgreSQL storage ids: list[str] | None = None - """List of ids to filter the results.""" + """List of doc ids to filter the results.""" model_func: Callable[..., object] | None = None """Optional override for the LLM model function to use for this specific query.