Skip to content

RetrievalInstructionContentDict

Dictionary Type

RetrievalInstructionContentDict

Bases: TypedDict

Dictionary form of RetrievalInstructionContent.

Attributes

answer_format instance-attribute
answer_format: str | None

How the answer is structured, including how sources are cited.

answer_policy instance-attribute
answer_policy: str | None

Whether and how to answer: how strongly an answer must be supported, and what to do with questions outside scope.

persona instance-attribute
persona: str | None

Who the assistant is: identity, tone and language.

retrieval_guidance instance-attribute
retrieval_guidance: str | None

How to interpret and decompose the question, and what to prioritise when searching.