File size: 578 Bytes
b063484
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from pydantic import BaseModel, Field
from typing import List

class PokemonEmeraldResponse(BaseModel):
    answer: str = Field(
        description="The concise answer to the user's question."
    )
    citations: List[str] = Field(
        description="Direct quotes from the manual used to answer the question. Make sure the quotes are long enough and at least a few sentences long."
    )
    confidence_score: int = Field(
        description="0 to 100 score of how well the context answered the question. Don't give 100 confidence unless you are absolutely certain."
    )