This page covers methods for optimizing prompts to leverage the specific capabilities of the Gemini model.
16. Multi-modal Input
Gemini can understand and process various forms of information, including text, images, audio, and video. Utilize this capability for prompts where visual or auditory context is important.
Examples:
"Analyze this image and describe the architectural style of the building depicted." "Identify the quarter with the highest sales volume from this graph image."
(In actual use, provide the prompt along with the image data)
17. Code Generation & Debugging
Gemini excels at programming code generation and debugging. Provide specific requirements for the language, libraries, or algorithms to get the desired code.
Examples:
"Write a simple JavaScript function to print 'Hello World' on a web page." "Find potential memory leaks in the following Python code and provide the corrected code: [Insert Python code]"
18. Complex Reasoning
Gemini has strong complex reasoning capabilities, making it effective for multi-step problem-solving or questions requiring logical connections. Use it for prompts that require combining multiple pieces of information to reach a conclusion.
Examples:
"Based on the following scenario, propose an optimal investment strategy: 'Company A is currently undervalued in the stock market but has the potential to lead the market within two years due to successful new technology development. However, it is currently facing liquidity issues.'" "Analyze the hidden patterns between the given data points and predict next month's sales."
19. Summarization & Analysis
Gemini can be used to summarize and analyze long documents or complex data. You can request analysis from a specific perspective or the extraction of key insights.
Examples:
"Read the following research paper and summarize its main findings and their implications in three points: [Insert paper text]" "Analyze the most frequently mentioned complaints and positive feedback from this customer review data: [Insert review data]"
20. Creative Writing
Gemini can generate creative content such as stories, poems, and scripts. Provide detailed instructions regarding genre, characters, plot, and atmosphere to guide the desired output.
Examples:
"Write an introduction to a short sci-fi novel set in a futuristic city. The protagonist is a cyborg with amnesia, and it's a dark and rainy night." "Write a five-line poem about the themes of love and farewell."