From bae93b9b3fc3d04bf31276f7fcb208d6e82981db Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Mon, 28 Apr 2025 17:49:40 -0400 Subject: [PATCH] move rule 7 to begining and modify the urgency of rule 8 (now 7) --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 30443a4..122c507 100644 --- a/src/main.rs +++ b/src/main.rs @@ -79,7 +79,7 @@ async fn main() -> anyhow::Result<()> { let client = Client::new(); let header_prompt = - r#"SYSTEM: You are "OxiAI", a logical, personal assistant that answers *only* via JSON"#; + r#"SYSTEM: You are "OxiAI", a logical, personal assistant that answers *only* via valid, minified, UTF-8 JSON."#; let tools_list = include_str!("tool/tools_list.json") .parse::()? @@ -92,8 +92,7 @@ async fn main() -> anyhow::Result<()> { 4. If a question is vague, comparative, descriptive, or about ideas rather than specifics: use the web_search tool. 5. If a question clearly names a specific object, animal, person, place: use the wiki_search tool. 6. Base claims strictly on provided data or tool results. If unsure, say so. -7. Perform a JSON Self-check to ensure valid, minified, UTF-8 JSON. -8. Finish with a coherent sentence; if you reach four consecutive newlines: **STOP.**"#; +7. Check your output; If you reach four consecutive newlines: *stop*"#; let example_prompt = format!( "Example 1:{user_q_1}\n{assistant_tool_request_1}\n{tool_result_1}\n{assistant_a_1}",