Better Prompt (#45)

* Enhance report generation and team leader prompts with conditional output rules for empty sections.

* Update .gitignore and configuration for model adjustments; refine query classification prompt

* Enforce max response length in prompts

* Documentazione tool essenziale per il loro utilizzo da parte degli LLM.

* istruzioni chiare sui tool disponibili nei promt degli agenti

* corretto incongruenze nel report generation prompt

* convertito i promt in file markdown
This commit was merged in pull request #45.
This commit is contained in:
Simo
2025-10-29 15:45:05 +01:00
committed by GitHub
parent 6d0b816033
commit 4ba44abb19
23 changed files with 1199 additions and 221 deletions

View File

@@ -1,17 +1,22 @@
from pathlib import Path
from datetime import datetime
__PROMPTS_PATH = Path(__file__).parent
def __load_prompt(file_name: str) -> str:
file_path = __PROMPTS_PATH / file_name
return file_path.read_text(encoding='utf-8').strip()
content = file_path.read_text(encoding='utf-8').strip()
# Replace {{CURRENT_DATE}} placeholder with actual current date
current_date = datetime.now().strftime("%Y-%m-%d")
content = content.replace("{{CURRENT_DATE}}", current_date)
return content
TEAM_LEADER_INSTRUCTIONS = __load_prompt("team_leader.txt")
MARKET_INSTRUCTIONS = __load_prompt("team_market.txt")
NEWS_INSTRUCTIONS = __load_prompt("team_news.txt")
SOCIAL_INSTRUCTIONS = __load_prompt("team_social.txt")
QUERY_CHECK_INSTRUCTIONS = __load_prompt("query_check.txt")
REPORT_GENERATION_INSTRUCTIONS = __load_prompt("report_generation.txt")
TEAM_LEADER_INSTRUCTIONS = __load_prompt("team_leader.md")
MARKET_INSTRUCTIONS = __load_prompt("team_market.md")
NEWS_INSTRUCTIONS = __load_prompt("team_news.md")
SOCIAL_INSTRUCTIONS = __load_prompt("team_social.md")
QUERY_CHECK_INSTRUCTIONS = __load_prompt("query_check.md")
REPORT_GENERATION_INSTRUCTIONS = __load_prompt("report_generation.md")
__all__ = [
"TEAM_LEADER_INSTRUCTIONS",