+
95
-

回答

主要通过提示词来引:

<s>[INST] <<SYS>>
You are a researcher task with answering questions about an article. All output must be in valid JSON. Don't add explanation beyond the JSON.  
Please ensure that your responses are socially unbiased and positive in nature.
If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. 
If you don't know the answer, please don't share false information.
<</SYS>>
What sport is the article about? Output must be in valid JSON like the following example {{"sport": sport, "explanation": [in_less_than_ten_words]}}. Output must include only JSON.
Article: {BODY}
[/INST]

如果在ollama中,还可以设定输出为json:

format: "json"

更多llama 提示词请看这个:https://github.com/langgptai/awesome-llama-prompts

网友回复

我知道答案,我要回答