From 7098e05e44bb0ea2f7c8f091cdfd72b31b879144 Mon Sep 17 00:00:00 2001 From: Simone Date: Fri, 24 Oct 2025 16:52:00 +0200 Subject: [PATCH] Update .gitignore and configuration for model adjustments; refine query classification prompt --- .gitignore | 3 +++ configs.yaml | 6 +++--- src/app/agents/prompts/query_check.txt | 13 +++---------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 609ad99..a940c3c 100644 --- a/.gitignore +++ b/.gitignore @@ -178,3 +178,6 @@ cython_debug/ # Gradio .gradio/ + +# chat +chat.json diff --git a/configs.yaml b/configs.yaml index b619b98..c8cc8a7 100644 --- a/configs.yaml +++ b/configs.yaml @@ -40,7 +40,7 @@ api: agents: strategy: Conservative - team_model: qwen3:1.7b + team_model: qwen3:8b team_leader_model: qwen3:8b - query_analyzer_model: qwen3:4b - report_generation_model: qwen3:8b + query_analyzer_model: qwen3:8b # query check + report_generation_model: qwen3:8b # ex predictor diff --git a/src/app/agents/prompts/query_check.txt b/src/app/agents/prompts/query_check.txt index 8ab4765..30557a5 100644 --- a/src/app/agents/prompts/query_check.txt +++ b/src/app/agents/prompts/query_check.txt @@ -3,7 +3,7 @@ **CONTEXT:** Current date is {{CURRENT_DATE}}. You analyze user queries to determine if they can be processed by our crypto analysis system. **CORE PRINCIPLE:** This is a **crypto-only application**. Resolve ambiguity in favor of cryptocurrency. -- Generic financial queries ("analyze the market", "give me a portfolio") → classify as crypto +- Generic financial queries ("analyze the market", "give me a portfolio") will be classified as crypto - Only reject queries that *explicitly* mention non-crypto assets **CLASSIFICATION RULES:** @@ -22,16 +22,9 @@ - Data requests without specifying which asset: "What's the price?", "Show me the volume" - Examples: "What are the trends?", "Tell me the market cap" -**OUTPUT:** Respond with ONLY a valid JSON object (no markdown, no extra text): +**OUTPUT:** no markdown, no extra text + -```json -{ - "status": "IS_CRYPTO | NOT_CRYPTO | AMBIGUOUS", - "language": "en|it|es|...", - "reasoning": "Brief classification reason", - "response_message": "User message (empty for IS_CRYPTO)" -} -``` **RESPONSE MESSAGES:** - `IS_CRYPTO`: `response_message` = `""`