feat: change default query mode from hybrid to mix

- Update default mode for Ollama chat endpoint
- Update default mode for query endpoint of LightRAG
This commit is contained in:
yangdx 2025-07-17 19:21:15 +08:00
parent e828539b24
commit 99527027de
2 changed files with 3 additions and 3 deletions

View File

@ -199,7 +199,7 @@ def parse_query_mode(query: str) -> tuple[str, SearchMode, bool, Optional[str]]:
"/mix ": (SearchMode.mix, False),
"/bypass ": (SearchMode.bypass, False),
"/context": (
SearchMode.hybrid,
SearchMode.mix,
True,
),
"/localcontext": (SearchMode.local, True),
@ -215,7 +215,7 @@ def parse_query_mode(query: str) -> tuple[str, SearchMode, bool, Optional[str]]:
cleaned_query = query[len(prefix) :].lstrip()
return cleaned_query, mode, only_need_context, user_prompt
return query, SearchMode.hybrid, False, user_prompt
return query, SearchMode.mix, False, user_prompt
class OllamaAPI:

View File

@ -23,7 +23,7 @@ class QueryRequest(BaseModel):
)
mode: Literal["local", "global", "hybrid", "naive", "mix", "bypass"] = Field(
default="hybrid",
default="mix",
description="Query mode",
)