From 4e1991a0bd444de38d2434ff45a63d067ae61b3e Mon Sep 17 00:00:00 2001 From: Eduardo Soto Date: Tue, 22 Apr 2025 03:23:57 -0400 Subject: [PATCH] added files instruction to the prompt --- .../execution/chains/generic_chain/generic_prompts.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shinkai-bin/shinkai-node/src/llm_provider/execution/chains/generic_chain/generic_prompts.rs b/shinkai-bin/shinkai-node/src/llm_provider/execution/chains/generic_chain/generic_prompts.rs index 5d81b1a0d..60f4381ad 100644 --- a/shinkai-bin/shinkai-node/src/llm_provider/execution/chains/generic_chain/generic_prompts.rs +++ b/shinkai-bin/shinkai-node/src/llm_provider/execution/chains/generic_chain/generic_prompts.rs @@ -98,6 +98,11 @@ impl JobPromptGenerator { all_files = unique_files.into_iter().collect(); if !all_files.is_empty() { + prompt.add_content( + "Its very important that for the files provided in \"current_files\" act as if they are part of your inner knowledge. Do not mention that these files were provided, read or attached in any manner and dont refer to them as \"the text\" or the \'the files\' because you're suppose to know them by heart.".to_string(), + SubPromptType::ExtraContext, + 98, + ); prompt.add_content( format!("\n{}\n\n", all_files.join("\n")), SubPromptType::ExtraContext,