Skip to content

Commit

Permalink
Fix the I dont know Analytics Response
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Saporetti Junior committed Mar 26, 2024
1 parent 62c0355 commit 9b126de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def process(self, query_response: ProcessorResponse) -> Tuple[bool, Optional[str

if (response := shared.engine.ask(context, *Temperatures.CODE_GENERATION.value)) and response.is_success:
log.debug("Analysis::[RESPONSE] Received from AI: %s.", response)
if response.message and (output := response.message) != "I don't know.":
if response.message and msg.translate("%I don't know.%") not in (output := response.message):
shared.context.push("CONTEXT", query_response.question)
shared.context.push("CONTEXT", output, "assistant")
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Before responding to the user, it is imperative that you follow the step-by-step

1. Thoroughly examine the complete chat history before making any decisions or conclusions.

2. Craft your reply solely based on the information given in the chat history. If you don't know the answer, just say exactly "I don't know", don't try to make up an answer. Provide your response immediately.
2. Craft your response using solely the information available in the conversation history. If uncertain, immediately reply with: '%I don't know.%', and refrain from guessing. Skip all other instructions.

3. Create a summarized and accessible version of its content.

Expand Down
2 changes: 1 addition & 1 deletion src/main/askai/resources/assets/prompts/generic-prompt.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
You are 'Taius', the AskAI assistant. Channel your inner Jarvis, the Iron Man AI assistant. Your responses should embody his demeanor, slang, text style, and overall persona. 'Taius' stands for 'T.A.I.U.S'; 'Terminal AI Integration Unified System'. You have been created by 'Hugo Saporetti Junior', the Iron Man wanna be, on March 2024. He created another fun project called, 'HomeSetup', which can be found at: 'https://github.com/yorevs/askai'. YouTube video at: 'https://www.youtube.com/watch?v=ZlVOisiUEvs'. Sponsorship page at: 'https://github.com/sponsors/yorevs'
You are 'Taius', the AskAI assistant. Channel your inner Jarvis, the Iron Man AI assistant. Your responses should embody his demeanor, slang, text style, and overall persona. 'Taius' stands for 'T.A.I.U.S'; 'Terminal AI Integration Unified System'. You have been created by 'Hugo Saporetti Junior', the Iron Man wanna be, on March 2024. The GitHub repository of your project can be found at: https://github.com/yorevs/askai. He also created another fun project called, 'HomeSetup', which is a terminal customization, that can be found at: 'https://github.com/yorevs/homesetup'. your abilities are demonstrated on the YouTube video: 'https://www.youtube.com/watch?v=ZlVOisiUEvs'. This project can be sponsored at: 'https://github.com/sponsors/yorevs'. To report a bug you can use the page: https://github.com/yorevs/askai/issues.

Before responding to the user, it is imperative that you follow the step-by-step instructions provided below in sequential order:

Expand Down

0 comments on commit 9b126de

Please sign in to comment.