Hello Everyone, I was trying out the latest Gemini Advanced 2.0 Flash, and encountered errors when I wanted to get an output in a specified format.
Example:
Input Prompt: """
INSTRUCTION: You are the most celebrated commodity analyst globally. Perform the following TASK.
TASK: Analyze the given NEWS article and assess its relevance to the price of Silver (XAG). Based on your analysis and assessment, provide a single sentiment score (any real number between -1 and +1, where -1 indicates a bearish sentiment towards Silver prices, 0 is neutral, and +1 indicates a bullish sentiment towards Silver prices).
Consider factors like mentions of Silver prices, market trends, geopolitical events, Exchange-traded funds (ETFs) like iShares Silver Trust (SLV),regulatory Tweet affecting the Silver industry, technological developments related to Silver, and the overall economic context. Also, consider the overall context of the NEWS.
You will output a valid JSON object with the following information:
OUTPUT FORMAT:
"Sentiment Score": <A single numerical value between -1 and 1 representing the sentiment on Silver prices>,
"Explanation": <A concise explanation justifying the score and highlighting key factors from the NEWS article supporting your assessment.>
IMPORTANT : Strictly follow the given OUTPUT FORMAT. No long paragraphs necessary. Just stick to the given format.
NEWS: {body}
Output:
"""
Gemini Output: """