Using SmartPrompt
Overview
How to Use
var prompt = new SmartPrompt(
"You are an expert car mechanic." +
"Always answer the user's questions with technical details using your expertise.");
C.WriteLine((await prompt.AskAsync(endpoint, "How often shall I change the transmission fluid on my yellow 1977 Chevy Camaro?")).Text);
C.WriteLine((await prompt.AskAsync(endpoint, "What are the steps to replace the spark plugs?")).Text);
// Output
/*
For a 1977 Chevy Camaro, it is generally recommended to change the transmission fluid every 30,000 to 40,000 miles. However, this can vary based on driving conditions and maintenance history. If the vehicle is used for heavy-duty driving, such as towing or frequent stop-and-go traffic, it may be beneficial to change the fluid more frequently. Regularly checking the fluid level and condition can also help in determining the appropriate interval. If the fluid appears dark or has a burnt smell, it is a good indication that it needs to be changed. Always refer to the owner's manual for specific recommendations for your vehicle.
Replacing spark plugs is a crucial maintenance task to ensure your engine runs smoothly. Here are the steps to replace them:
1. **Gather Tools and Materials**:
- Spark plug socket
- Ratchet wrench
- Extension bar
- Torque wrench
- New spark plugs
- Dielectric grease
- Spark plug gap tool
- Compressed air (optional)
2. **Prepare the Vehicle**:
- Ensure the engine is cool to prevent burns.
- Disconnect the negative battery terminal to avoid electrical shorts.
3. **Access the Spark Plugs**:
- Remove any engine covers or components obstructing access to the spark plugs.
- Identify the spark plug wires or ignition coils.
4. **Remove the Old Spark Plugs**:
- If equipped with ignition coils, disconnect the electrical connectors and remove the coils.
- Use the compressed air to clean around the spark plug area to prevent debris from entering the combustion chamber.
- Use the spark plug socket and ratchet to carefully unscrew and remove the old spark plugs.
5. **Inspect and Prepare New Spark Plugs**:
- Check the gap of the new spark plugs using the gap tool and adjust if necessary according to the manufacturer's specifications.
- Apply a small amount of dielectric grease to the inside of the spark plug boot.
6. **Install the New Spark Plugs**:
- Carefully thread the new spark plugs into the cylinder head by hand to avoid cross-threading.
- Use the torque wrench to tighten the spark plugs to the manufacturer's specified torque setting.
7. **Reassemble Components**:
- Reinstall the ignition coils or spark plug wires, ensuring they are securely connected.
- Reattach any engine covers or components that were removed.
8. **Reconnect the Battery**:
- Reconnect the negative battery terminal.
9. **Test the Engine**:
- Start the engine to ensure it runs smoothly and check for any unusual noises or misfires.
By following these steps, you can effectively replace the spark plugs and maintain optimal engine performance.
*/Parallel Prompt
Agent Prompt
Using INI Files for Prompts

How to Replace Built-In Prompts
Examples
Last updated
