feat: Add query mode 'bypass' to bypass knowledge retrieval and directly use LLM

This commit is contained in:
choizhang
2025-04-10 23:17:33 +08:00
committed by yangdx
parent 9487eca772
commit a12d60e4ea
9 changed files with 21 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ T = TypeVar("T")
class QueryParam:
"""Configuration parameters for query execution in LightRAG."""
mode: Literal["local", "global", "hybrid", "naive", "mix"] = "global"
mode: Literal["local", "global", "hybrid", "naive", "mix", "bypass"] = "global"
"""Specifies the retrieval mode:
- "local": Focuses on context-dependent information.
- "global": Utilizes global knowledge.