From 4d5a532b231b869ef3266e784b2480a975552a83 Mon Sep 17 00:00:00 2001 From: martin legrand Date: Thu, 10 Apr 2025 16:39:50 +0200 Subject: [PATCH] mistalke in prompt --- prompts/base/file_agent.txt | 1 - sources/router.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/prompts/base/file_agent.txt b/prompts/base/file_agent.txt index 2e802b7..0da3c78 100644 --- a/prompts/base/file_agent.txt +++ b/prompts/base/file_agent.txt @@ -45,7 +45,6 @@ rules: - Do not ever use editor such as vim or nano. - Make sure to always cd your work folder before executing commands, like cd && - only use file name with file_finder, not path -- remember to use :read when reading file. Example Interaction User: "I need to find the file config.txt and read its contents." diff --git a/sources/router.py b/sources/router.py index b16b616..242fdf9 100644 --- a/sources/router.py +++ b/sources/router.py @@ -356,7 +356,7 @@ class AgentRouter: llm_router, confidence_llm_router = result_llm_router[0], result_llm_router[1] final_score_bart = confidence_bart / (confidence_bart + confidence_llm_router) final_score_llm = confidence_llm_router / (confidence_bart + confidence_llm_router) - self.logger.info(f"Routing Vote: BART: {bart} ({final_score_bart}) LLM-router: {llm_router} ({final_score_llm})") + self.logger.info(f"Routing Vote for text {text}: BART: {bart} ({final_score_bart}) LLM-router: {llm_router} ({final_score_llm})") if log_confidence: pretty_print(f"Agent choice -> BART: {bart} ({final_score_bart}) LLM-router: {llm_router} ({final_score_llm})") return bart if final_score_bart > final_score_llm else llm_router