From 40b338d3ca8a2ce9cfa7750a942435a7cef6031a Mon Sep 17 00:00:00 2001 From: Woody Date: Mon, 4 May 2026 16:38:58 +0800 Subject: [PATCH] chore: gitignore .research, switch to flash, tighten sub-questions Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- .gitignore | 3 +++ backend/app/core/config.py | 2 +- backend/app/models/decompose.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 10e105b..0f4e531 100644 --- a/.gitignore +++ b/.gitignore @@ -82,6 +82,9 @@ htmlcov/ # Package 3 — SQLite databases data/ +# Research +.research/ + # Misc *.bak *.tmp diff --git a/backend/app/core/config.py b/backend/app/core/config.py index 7009ff1..ee9eb4d 100644 --- a/backend/app/core/config.py +++ b/backend/app/core/config.py @@ -18,7 +18,7 @@ class Settings(BaseSettings): # Deepseek API (decompose step only, Package 6) dp_base_url: str = "https://api.deepseek.com" dp_api_key: str = "" - dp_model_name: str = "deepseek-v4-pro" + dp_model_name: str = "deepseek-v4-flash" # Embeddings embedding_model: str = "qwen/qwen3-embedding-4b" diff --git a/backend/app/models/decompose.py b/backend/app/models/decompose.py index d10dcdd..d745e78 100644 --- a/backend/app/models/decompose.py +++ b/backend/app/models/decompose.py @@ -9,7 +9,7 @@ class SubQuestions(BaseModel): """ questions: list[str] = Field( - description="1-3 simplified sub-questions, each focused on one aspect並總格成以下格式 '標籤式主題: 具體提問/要求' ", + description="請將問題/任務拆解成 1-3 個簡化子問題,標籤式主題必須清楚、簡潔、具體,一看就明白(建議 3-8 個字),若涉及地點、地區、人物、時間、金額/財政 等關鍵資訊,必須包含在標籤中 。具體提問/要求要精準、完整 並全部轉換成以下固定格式:\n「標籤式主題:具體提問/要求」", min_length=1, max_length=3, )