const userInput = "how do i turn off an instance?" const promptPrefix = "assume the following input is related to AWS:" const prompt = `${promptPrefix} ${userInput}`; console.log(prompt);
To stop an Amazon Elastic Compute Cloud (Amazon EC2) instance in Amazon Web Services (AWS), follow these steps: 1. Sign in to the AWS Management Console and open the Amazon EC2 console at https://console.aws.amazon.com/ec2/. 2. In the navigation pane, choose "Instances." 3. Select the check box next to the name of the instance you want to stop. The Actions pane appears on the right side of the page. 4. Choose "Instance State > Stop Instances" from the Actions dropdown list. 5. In the Stop Instances dialog box, confirm that the correct instance is selected and review any associated warnings or notes. You can also choose an option for how to handle any associated Elastic IP addresses and IMDSv2 instance metadata options. 6. Choose "Yes, Stop Now" to stop the instance. The instance's state changes to "shutting down." Once the instance is no longer running, it will be in the "stopped" state and you will not be charged for any usage.
const promptPrefix = `assume the following input is related to ${provider}:`
query_str
like this:query_str = f"assume the following input is related to AWS: {query_str}"
context_str = "AWS" query_str = "how do i turn off an instance?" prompt_prefix = f"assume the following input is related to {context_str}:" qa_prompt_str = f"{prompt_prefix} {query_str}"
context_str = "AWS" prompt_prefix = f"Assume the following input is related to {context_str}:" qa_prompt_str = "You are User assistant. Context information is given below. \n" "------------\n" f"{prompt_prefix}\n" "------------\n" "Given the context information and not prior knowledge, " "answer the query in detailed manner and point wise if required. \n" "Query: {query_str}\n" "Answer: " )