mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-30 18:33:40 +00:00
parent
ea2616ae23
commit
2bef45074d
@ -286,11 +286,17 @@
|
|||||||
"## Gemini Prompting FAQs\n",
|
"## Gemini Prompting FAQs\n",
|
||||||
"\n",
|
"\n",
|
||||||
"As of the time this doc was written (2024/12/12), Gemini has some restrictions on the types and structure of prompts it accepts. Specifically:\n",
|
"As of the time this doc was written (2024/12/12), Gemini has some restrictions on the types and structure of prompts it accepts. Specifically:\n",
|
||||||
|
"\n",
|
||||||
"1. When providing multimodal (image) inputs, you are restricted to at most 1 message of \"human\" (user) type. You cannot pass multiple messages (though the single human message may have multiple content entries)\n",
|
"1. When providing multimodal (image) inputs, you are restricted to at most 1 message of \"human\" (user) type. You cannot pass multiple messages (though the single human message may have multiple content entries)\n",
|
||||||
"2. System messages are not accepted.\n",
|
"2. System messages are not accepted.\n",
|
||||||
"3. For regular chat conversations, messages must follow the human/ai/human/ai alternating pattern. You may not provide 2 AI or human messages in sequence.\n",
|
"3. For regular chat conversations, messages must follow the human/ai/human/ai alternating pattern. You may not provide 2 AI or human messages in sequence.\n",
|
||||||
"4. Message may be blocked if they violate the safety checks of the LLM. In this case, the model will return an empty response."
|
"4. Message may be blocked if they violate the safety checks of the LLM. In this case, the model will return an empty response."
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"metadata": {},
|
||||||
|
"source": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
Loading…
Reference in New Issue
Block a user