Mark deprecated fields with TODO comments

This commit is contained in:
yangdx 2025-08-04 11:11:57 +08:00
parent 3bac19df5a
commit 223f4cdf62

View file

@ -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.