Fix documentation for user_prompt parameter in QueryParam

This commit is contained in:
yangdx 2025-09-27 23:41:17 +08:00
parent 91be53ffd2
commit 2ce6a022ac
3 changed files with 6 additions and 3 deletions

View file

@ -352,7 +352,8 @@ class QueryParam:
user_prompt: str | None = None
"""User-provided prompt for the query.
If proivded, this will be use instead of the default vaulue from prompt template.
Addition instructions for LLM. If provided, this will be inject into the prompt template.
It's purpose is the let user customize the way LLM generate the response.
"""
enable_rerank: bool = True

View file

@ -353,7 +353,8 @@ class QueryParam:
user_prompt: str | None = None
"""User-provided prompt for the query.
If proivded, this will be use instead of the default vaulue from prompt template.
Addition instructions for LLM. If provided, this will be inject into the prompt template.
It's purpose is the let user customize the way LLM generate the response.
"""
enable_rerank: bool = True

View file

@ -154,7 +154,8 @@ class QueryParam:
user_prompt: str | None = None
"""User-provided prompt for the query.
If proivded, this will be use instead of the default vaulue from prompt template.
Addition instructions for LLM. If provided, this will be inject into the prompt template.
It's purpose is the let user customize the way LLM generate the response.
"""
enable_rerank: bool = os.getenv("RERANK_BY_DEFAULT", "true").lower() == "true"