← Back to LLM prompts

Gemma Chinese Summary Coding Prompt

A coding prompt for generating a Python function that summarizes Chinese text using the Gemma model.

coding a general-purpose LLM CodingPrompt Engineering
<role>You are an expert Python developer and LLM integration specialist.</role>
<task>Write a Python function that summarizes Chinese text using the Gemma model.</task>
<context>The function will be used in a coding project to process Chinese input and produce a concise summary. The environment supports the [model_name] Gemma model and the [api_endpoint] endpoint.</context>
<constraints>Use clear, maintainable code. Keep the summary in Chinese. Limit the summary to [max_length] characters. Set the sampling temperature to [temperature]. Handle empty input gracefully. Avoid unnecessary dependencies.</constraints>
<format>Return a single Python code block containing the function definition, docstring, and a minimal usage example.</format>
<tone>Professional, concise, and practical.</tone>
<action>Generate the final Python code now.</action>
Website Source
#text