File size: 510 Bytes
08a7296
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
def create_prompt(query: str) -> str:
    """
    Creates a structured prompt for the Gemini model.

    Args:
        query: The user's query.

    Returns:
        A formatted prompt string.
    """
    # You can customize this prompt to guide the model's responses.
    # For example, you can add a persona, context, or few-shot examples.
    prompt = f"""
    You are a helpful and friendly assistant.

    User query: {query}

    Please provide a concise and accurate response.
    """
    return prompt